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

Method apply

tools/tslint-rules/noLifecycleInvocationRule.ts:19–21  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile)

Source from the content-addressed store, hash-verified

17/** Rule that prevents direct calls of the Angular lifecycle hooks */
18export class Rule extends Lint.Rules.AbstractRule {
19 apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
20 return this.applyWithWalker(new Walker(sourceFile, this.getOptions()));
21 }
22}
23
24class Walker extends Lint.RuleWalker {

Callers

nothing calls this directly

Calls 1

getOptionsMethod · 0.45

Tested by

no test coverage detected