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

Method constructor

tools/tslint-rules/memberNamingRule.ts:26–38  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile, options: Lint.IOptions)

Source from the content-addressed store, hash-verified

24 };
25
26 constructor(sourceFile: ts.SourceFile, options: Lint.IOptions) {
27 super(sourceFile, options);
28
29 const args = options.ruleArguments[0] || {};
30
31 this._config = Object.keys(args).reduce(
32 (config, key) => {
33 config[key] = new RegExp(args[key]);
34 return config;
35 },
36 {} as {[key: string]: RegExp},
37 );
38 }
39
40 override visitClassDeclaration(node: ts.ClassDeclaration) {
41 node.members.forEach(member => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected