fix(compiler-cli): do not fold errors past calls in the collector (#21708)

Folding errors passed calls prevented the static reflector from
begin able to ignore errors in annotations it doesn't know as
the call to the unknown annotation was elided from the metadata.

Fixes: #21273

PR Close #21708
This commit is contained in:
Chuck Jazdzewski
2018-01-22 11:30:58 -08:00
committed by Miško Hevery
parent e82812b9a9
commit dd8679037e
5 changed files with 52 additions and 10 deletions

View File

@ -1054,10 +1054,20 @@ describe('Collector', () => {
expect(metadata.metadata.MyComponent).toEqual({
__symbolic: 'class',
decorators: [{
__symbolic: 'error',
message: 'Expression form not supported',
line: 5,
character: 55
__symbolic: 'call',
expression: {
__symbolic: 'reference',
module: '@angular/core',
name: 'Component',
line: 4,
character: 9
},
arguments: [{
__symbolic: 'error',
message: 'Expression form not supported',
line: 5,
character: 55
}]
}]
});
});