fixup! feat(ivy): Add AOT handling for bare classes with Input and Output decorators

This commit is contained in:
Ben Lesh 2018-08-13 14:48:48 -07:00
parent 70b1b8385f
commit a2efa0691a

View File

@ -81,7 +81,7 @@ export class Analyzer {
this.handlers this.handlers
.map(handler => ({ .map(handler => ({
handler, handler,
decorator: handler.detect(clazz.declaration, clazz.decorators), match: handler.detect(clazz.declaration, clazz.decorators),
})) }))
.filter(isMatchingHandler); .filter(isMatchingHandler);
@ -93,8 +93,8 @@ export class Analyzer {
return undefined; return undefined;
} }
const {handler, decorator} = matchingHandlers[0]; const {handler, match} = matchingHandlers[0];
const {analysis, diagnostics} = handler.analyze(clazz.declaration, decorator); const {analysis, diagnostics} = handler.analyze(clazz.declaration, match);
let compilation = handler.compile(clazz.declaration, analysis, pool); let compilation = handler.compile(clazz.declaration, analysis, pool);
if (!Array.isArray(compilation)) { if (!Array.isArray(compilation)) {
compilation = [compilation]; compilation = [compilation];