angular-cn/packages/compiler-cli/src
Alex Rickabaugh 96d6b79ada feat(ivy): resolve references to vars in .d.ts files (#25775)
Previously, if ngtsc encountered a VariableDeclaration without an
initializer, it would assume that the variable was undefined, and
return that result.

However, for symbols exported from external modules that resolve to
.d.ts files, variable declarations are of the form:

export declare let varName: Type;

This form also lacks an initializer, but indicates the presence of an
importable symbol which can be referenced. This commit changes the
static resolver to understand variable declarations with the 'declare'
keyword and to generate references when it encounters them.

PR Close #25775
2018-09-11 06:53:21 -07:00
..
diagnostics build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
metadata feat: add TypeScript 3 support (#25275) 2018-08-27 21:07:53 -04:00
ngcc feat(ivy): implement ngcc build marker (#25557) 2018-09-05 11:35:47 -07:00
ngtsc feat(ivy): resolve references to vars in .d.ts files (#25775) 2018-09-11 06:53:21 -07:00
transformers fix(ivy): add @nocollapse when writing closure-annotated code (#25775) 2018-09-11 06:53:21 -07:00
extract_i18n.ts refactor(compiler): remove all source-level traces to tsc-wrapped (#18966) 2017-09-13 20:47:37 -04:00
language_services.ts refactor(compiler): remove old ngtools api and add listLazyRoutes to new api (#19836) 2017-10-23 18:46:04 -04:00
main.ts feat(ivy): produce contextual diagnostics in ngtsc mode (#25647) 2018-08-31 09:43:31 -07:00
ngtools_api.ts build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -07:00
ngtools_api2.ts feat(ivy): output diagnostics for many errors in ngtsc (#25647) 2018-08-31 09:43:30 -07:00
perform_compile.ts fix(compiler): don't typecheck all inputs (#22899) 2018-03-21 18:29:18 -04:00
perform_watch.ts fix(compiler-cli): use the oldProgram option in watch mode (#21364) 2018-08-07 11:58:38 -07:00
version.ts style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00