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

Function convertQueryPredicate

packages/compiler/src/jit_compiler_facade.ts:505–513  ·  view source on GitHub ↗
(
  predicate: OpaqueValue | string[],
)

Source from the content-addressed store, hash-verified

503}
504
505function convertQueryPredicate(
506 predicate: OpaqueValue | string[],
507): MaybeForwardRefExpression | string[] {
508 return Array.isArray(predicate)
509 ? // The predicate is an array of strings so pass it through.
510 predicate
511 : // The predicate is a type - assume that we will need to unwrap any `forwardRef()` calls.
512 createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), ForwardRefHandling.Wrapped);
513}
514
515function convertDirectiveFacadeToMetadata(facade: R3DirectiveMetadataFacade): R3DirectiveMetadata {
516 const inputsFromMetadata = parseInputsArray(facade.inputs || []);

Callers 2

convertToR3QueryMetadataFunction · 0.85

Calls 2

isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…