MCPcopy Create free account
hub / github.com/angular/angular / getArray

Method getArray

packages/compiler-cli/linker/src/ast/ast_value.ts:308–311  ·  view source on GitHub ↗

* Parse this value into an array of `AstValue` objects, or error if it is not an array literal.

(this: ConformsTo<this, T, unknown[]>)

Source from the content-addressed store, hash-verified

306 * Parse this value into an array of `AstValue` objects, or error if it is not an array literal.
307 */
308 getArray(this: ConformsTo<this, T, unknown[]>): AstValue<ArrayValueType<T>, TExpression>[] {
309 const arr = this.host.parseArrayLiteral(this.expression);
310 return arr.map((entry) => new AstValue<ArrayValueType<T>, TExpression>(entry, this.host));
311 }
312
313 /**
314 * Is this value a function expression?

Callers 12

ast_value_spec.tsFile · 0.45
toR3InjectorMetaFunction · 0.45
makeDirectiveMetadataFunction · 0.45
toR3ComponentMetaMethod · 0.45
wrapReferencesFunction · 0.45
toR3InjectableMetaFunction · 0.45
toR3DirectiveMetaFunction · 0.45
toQueryMetadataFunction · 0.45
toHostDirectivesMetadataFunction · 0.45
getDependenciesFunction · 0.45

Calls 2

mapMethod · 0.80
parseArrayLiteralMethod · 0.65

Tested by

no test coverage detected