MCPcopy Create free account
hub / github.com/angular/dev-infra / apply

Method apply

lint-rules/tslint/validateImportForEsmCjsInteropRule.ts:58–61  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile)

Source from the content-addressed store, hash-verified

56 */
57export class Rule extends AbstractRule {
58 override apply(sourceFile: ts.SourceFile): RuleFailure[] {
59 const options = this.getOptions().ruleArguments[0];
60 return this.applyWithFunction(sourceFile, (ctx) => visitNode(sourceFile, ctx, options));
61 }
62}
63
64function visitNode(node: ts.Node, ctx: WalkContext, options: RuleOptions) {

Callers

nothing calls this directly

Calls 1

visitNodeFunction · 0.70

Tested by

no test coverage detected