(context: Lint.WalkContext<RegExp>)
| 17 | } |
| 18 | |
| 19 | function checkSourceFile(context: Lint.WalkContext<RegExp>) { |
| 20 | context.sourceFile.forEachChild(function walk(node) { |
| 21 | if ( |
| 22 | (ts.isClassDeclaration(node) || |
| 23 | ts.isInterfaceDeclaration(node) || |
| 24 | ts.isTypeAliasDeclaration(node)) && |
| 25 | node.name && |
| 26 | !context.options.test(node.name.text) |
| 27 | ) { |
| 28 | context.addFailureAtNode(node.name, `Symbol name must match pattern ${context.options}`); |
| 29 | } |
| 30 | |
| 31 | node.forEachChild(walk); |
| 32 | }); |
| 33 | } |
nothing calls this directly
no outgoing calls
no test coverage detected