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

Method getValue

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

* Returns an `AstValue` that wraps the value of the property called `propertyName`. * * Throws an error if there is no such property.

(propertyName: K)

Source from the content-addressed store, hash-verified

166 * Throws an error if there is no such property.
167 */
168 getValue<K extends PropertyKey<T>>(propertyName: K): AstValue<T[K], TExpression> {
169 return new AstValue<T[K], TExpression>(this.getRequiredProperty(propertyName), this.host);
170 }
171
172 /**
173 * Converts the AstObject to a raw JavaScript object, mapping each property value (as an

Callers 15

ast_value_spec.tsFile · 0.45
toR3PipeMetaFunction · 0.45
toR3InjectorMetaFunction · 0.45
toR3ComponentMetaMethod · 0.45
toR3NgModuleMetaFunction · 0.45
toR3InjectableMetaFunction · 0.45
toR3ServiceMetaFunction · 0.45
toR3DirectiveMetaFunction · 0.45
toInputMappingFunction · 0.45
toControlCreateFunction · 0.45
toQueryMetadataFunction · 0.45
toHostDirectivesMetadataFunction · 0.45

Calls 1

getRequiredPropertyMethod · 0.95

Tested by

no test coverage detected