MCPcopy Index your code
hub / github.com/angular/components / _validateMember

Method _validateMember

tools/tslint-rules/memberNamingRule.ts:80–84  ·  view source on GitHub ↗

* Validates that a class member matches the pattern configured for the particular modifier. * @param node Class member to be validated. * @param modifier Modifiers against which to validate.

(node: ts.ClassElement, modifier: 'public' | 'private' | 'protected')

Source from the content-addressed store, hash-verified

78 * @param modifier Modifiers against which to validate.
79 */
80 private _validateMember(node: ts.ClassElement, modifier: 'public' | 'private' | 'protected') {
81 if (ts.isMethodDeclaration(node) || ts.isPropertyDeclaration(node)) {
82 this._validateNode(node, modifier);
83 }
84 }
85
86 /**
87 * Validates that a node matches the pattern for the corresponding modifier.

Callers 1

visitClassDeclarationMethod · 0.95

Calls 1

_validateNodeMethod · 0.95

Tested by

no test coverage detected