refactor(compiler): convert metadata classes used in summaries into interfaces (#13123)
Part of #12787
This commit is contained in:

committed by
Alex Rickabaugh

parent
42cf06fa12
commit
3e73bea3e7
@ -30,12 +30,10 @@ class _ValueOutputAstTransformer implements ValueTransformer {
|
||||
visitPrimitive(value: any, type: o.Type): o.Expression { return o.literal(value, type); }
|
||||
|
||||
visitOther(value: any, type: o.Type): o.Expression {
|
||||
if (value instanceof CompileIdentifierMetadata) {
|
||||
return o.importExpr(value);
|
||||
} else if (value instanceof o.Expression) {
|
||||
if (value instanceof o.Expression) {
|
||||
return value;
|
||||
} else {
|
||||
throw new Error(`Illegal state: Don't now how to compile value ${value}`);
|
||||
return o.importExpr({reference: value});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user