MCPcopy Index your code
hub / github.com/angular/angular / isNamedDeclaration

Function isNamedDeclaration

packages/compiler-cli/src/ngtsc/testing/src/utils.ts:128–131  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

126}
127
128export function isNamedDeclaration(node: ts.Node): node is ts.Declaration & {name: ts.Identifier} {
129 const namedNode = node as {name?: ts.Identifier};
130 return namedNode.name !== undefined && ts.isIdentifier(namedNode.name);
131}
132
133const COMPLETE_REUSE_FAILURE_MESSAGE =
134 'The original program was not reused completely, even though no changes should have been made to its structure';

Callers 1

walkForDeclarationsFunction · 0.70

Calls 1

isIdentifierMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…