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

Method constructor

tools/tslint-rules/noZoneDependenciesRule.ts:23–35  ·  view source on GitHub ↗
(
    private _sourceFile: ts.SourceFile,
    options: Lint.IOptions,
    private _typeChecker: ts.TypeChecker,
  )

Source from the content-addressed store, hash-verified

21 private _enabled: boolean;
22
23 constructor(
24 private _sourceFile: ts.SourceFile,
25 options: Lint.IOptions,
26 private _typeChecker: ts.TypeChecker,
27 ) {
28 super(_sourceFile, options);
29
30 // Globs that are used to determine which files to lint.
31 const fileGlobs: string[] = options.ruleArguments[0];
32
33 // Whether the file should be checked at all.
34 this._enabled = !fileGlobs.some(p => minimatch(_sourceFile.fileName, p));
35 }
36
37 override visitIdentifier(node: ts.Identifier): void {
38 if (!this._enabled) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected