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

Method applyWithProgram

tools/tslint-rules/noZoneDependenciesRule.ts:12–16  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile, program: ts.Program)

Source from the content-addressed store, hash-verified

10/** Rule to prevent adding code that depends on using zones. */
11export class Rule extends Lint.Rules.TypedRule {
12 applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[] {
13 return this.applyWithWalker(
14 new Walker(sourceFile, this.getOptions(), program.getTypeChecker()),
15 );
16 }
17}
18
19class Walker extends Lint.RuleWalker {

Callers

nothing calls this directly

Calls 1

getOptionsMethod · 0.45

Tested by

no test coverage detected