(node: ts.Node)
| 43 | function 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); |
nothing calls this directly
no test coverage detected