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

Function isLocalize

packages/localize/tools/src/source_file_utils.ts:30–35  ·  view source on GitHub ↗
(
  expression: NodePath,
  localizeName: string,
)

Source from the content-addressed store, hash-verified

28 * @param localizeName The configured name of `$localize`.
29 */
30export function isLocalize(
31 expression: NodePath,
32 localizeName: string,
33): expression is NodePath<t.Identifier> {
34 return isNamedIdentifier(expression, localizeName) && isGlobalIdentifier(expression);
35}
36
37/**
38 * Is the given `expression` an identifier with the correct `name`?

Callers 4

TaggedTemplateExpressionFunction · 0.90
CallExpressionFunction · 0.90
MemberExpressionFunction · 0.90
isLocalizeGuardFunction · 0.90

Calls 2

isNamedIdentifierFunction · 0.85
isGlobalIdentifierFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…