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

Function isNamedIdentifier

packages/localize/tools/src/source_file_utils.ts:43–48  ·  view source on GitHub ↗
(
  expression: NodePath,
  name: string,
)

Source from the content-addressed store, hash-verified

41 * @param name The name of the identifier we are looking for.
42 */
43export function isNamedIdentifier(
44 expression: NodePath,
45 name: string,
46): expression is NodePath<t.Identifier> {
47 return expression.isIdentifier() && expression.node.name === name;
48}
49
50/**
51 * Is the given `identifier` declared globally.

Callers 4

CallExpressionFunction · 0.90
TaggedTemplateExpressionFunction · 0.90
isLocalizeFunction · 0.85

Calls 1

isIdentifierMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…