fix(ivy): jit compilation should support content queries with type predicates (#27068)
PR Close #27068
This commit is contained in:

committed by
Andrew Kushnir

parent
e6e590479e
commit
bc652a2943
@ -185,6 +185,7 @@ function convertDirectiveFacadeToMetadata(facade: R3DirectiveMetadataFacade): R3
|
||||
host: extractHostBindings(facade.host, facade.propMetadata),
|
||||
inputs: {...inputsFromMetadata, ...inputsFromType},
|
||||
outputs: {...outputsFromMetadata, ...outputsFromType},
|
||||
queries: facade.queries.map(convertToR3QueryMetadata),
|
||||
providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
|
||||
};
|
||||
}
|
||||
@ -291,4 +292,4 @@ function parseInputOutputs(values: string[]): StringMap {
|
||||
export function publishFacade(global: any) {
|
||||
const ng: ExportedCompilerFacade = global.ng || (global.ng = {});
|
||||
ng.ɵcompilerFacade = new CompilerFacadeImpl();
|
||||
}
|
||||
}
|
||||
|
@ -442,7 +442,7 @@ function createQueryDefinition(
|
||||
query: R3QueryMetadata, constantPool: ConstantPool, idx: number | null): o.Expression {
|
||||
const predicate = getQueryPredicate(query, constantPool);
|
||||
|
||||
// e.g. r3.Q(null, somePredicate, false) or r3.Q(0, ['div'], false)
|
||||
// e.g. r3.query(null, somePredicate, false) or r3.query(0, ['div'], false)
|
||||
const parameters = [
|
||||
o.literal(idx, o.INFERRED_TYPE),
|
||||
predicate,
|
||||
|
Reference in New Issue
Block a user