MCPcopy Create free account
hub / github.com/angular/components / visitNode

Function visitNode

tools/tslint-rules/lightweightTokensRule.ts:45–51  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

43function checkSourceFileForLightweightTokens(ctx: Context, typeChecker: ts.TypeChecker): void {
44 const [disabledFileGlobs] = ctx.options;
45 const visitNode = (node: ts.Node) => {
46 if (ts.isClassDeclaration(node)) {
47 checkClassDeclarationForLightweightToken(node, ctx, typeChecker);
48 } else {
49 ts.forEachChild(node, visitNode);
50 }
51 };
52
53 if (!disabledFileGlobs.some(g => minimatch(ctx.sourceFile.fileName, g))) {
54 ts.forEachChild(ctx.sourceFile, visitNode);

Callers

nothing calls this directly

Tested by

no test coverage detected