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

Method constructor

tools/tslint-rules/noLifecycleInvocationRule.ts:28–32  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile, options: Lint.IOptions)

Source from the content-addressed store, hash-verified

26 private _enabled: boolean;
27
28 constructor(sourceFile: ts.SourceFile, options: Lint.IOptions) {
29 super(sourceFile, options);
30 const fileGlobs: string[] = options.ruleArguments[0];
31 this._enabled = !fileGlobs.some(p => minimatch(sourceFile.fileName, p));
32 }
33
34 override visitPropertyAccessExpression(node: ts.PropertyAccessExpression) {
35 // Flag any accesses of the lifecycle hooks that are

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected