feat(ivy): implement ngtsc's route analysis (#27697)

This commit introduces the NgModuleRouteAnalyzer & friends, which given
metadata about the NgModules in a program can extract the list of lazy
routes in the same format that the ngtools API uses.

PR Close #27697
This commit is contained in:
Alex Rickabaugh
2018-11-16 17:52:55 +01:00
parent 2fc5f002e0
commit da85cee07c
6 changed files with 318 additions and 1 deletions

View File

@ -2543,7 +2543,7 @@ describe('compiler compliance', () => {
@Directive({selector: '[some-directive]', exportAs: 'someDir, otherDir'})
export class SomeDirective {}
@NgModule({declarations: [SomeDirective, MyComponent]})
@NgModule({declarations: [SomeDirective]})
export class MyModule{}
`
}