function printWarnings()

in src/cdk-schema.ts [58:80]


function printWarnings(node: SchemaContext, indent = '') {
  if (!node.hasWarningsOrErrors) {
    return;
  }

  console.error(indent + node.name);

  for (const warning of node.warnings) {
    console.error(chalk.yellow(indent + '  ' + warning));
  }

  for (const error of node.errors) {
    console.error(chalk.red(indent + '  ' + error));
  }

  if (!node.root) {
    indent += '  ';
  }

  for (const child of node.children) {
    printWarnings(child, indent);
  }
}