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

Function isStringLiteralArray

packages/localize/tools/src/source_file_utils.ts:400–404  ·  view source on GitHub ↗
(
  node: t.Node,
)

Source from the content-addressed store, hash-verified

398 * @param node The node to test.
399 */
400export function isStringLiteralArray(
401 node: t.Node,
402): node is t.Expression & {elements: t.StringLiteral[]} {
403 return t.isArrayExpression(node) && node.elements.every((element) => t.isStringLiteral(element));
404}
405
406/**
407 * Are all the given `nodes` expressions?

Callers 2

unwrapStringLiteralArrayFunction · 0.85

Calls 1

isStringLiteralMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…