angular-cn/packages/compiler/test
Tobias Bosch edd5f5a333 perf(compiler): make the creation of `ts.Program` faster. (#19275)
We now create 2 programs with exactly the same fileNames and
exactly the same `import` / `export` declarations,
allowing TS to reuse the structure of first program
completely. When passing in an oldProgram and the files didn’t change,
TS can also reuse the old program completely.

This is possible buy adding generated files to TS
in `host.geSourceFile` via `ts.SourceFile.referencedFiles`.

This commit also:
- has a minor side effect on how we generate shared stylesheets:
  - previously every import in a stylesheet would generate a new
    `.ngstyles.ts` file.
  - now, we only generate 1 `.ngstyles.ts` file per entry in `@Component.styleUrls`.
  This was required as we need to be able to determine the program files
  without loading the resources (which can be async).
- makes all angular related methods in `CompilerHost`
  optional, allowing to just use a regular `ts.CompilerHost` as `CompilerHost`.
- simplifies the logic around `Compiler.analyzeNgModules` by introducing `NgAnalyzedFile`.

Perf impact: 1.5s improvement in compiling angular io
PR Close #19275
2017-09-19 16:55:23 -07:00
..
aot perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
css_parser fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
expression_parser feat(compiler): adds support for quoted object keys in the parser 2017-07-07 16:17:33 -07:00
i18n feat(compiler): deprecate i18n comments in favor of `ng-container` (#18998) 2017-09-05 15:33:29 -05:00
ml_parser perf(core): add option to remove blank text nodes from compiled templates 2017-08-14 13:26:16 -07:00
output perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
schema feat(compiler): update the schema by extracting from latest chrome (#17858) 2017-07-06 12:11:34 -07:00
template_parser feat(compiler): reuse the TypeScript typecheck for template typechecking. (#19152) 2017-09-14 13:37:08 -04:00
core_spec.ts refactor(compiler): add missing test to compare core and compiler metadata (#18739) 2017-08-17 18:00:55 -05:00
directive_lifecycle_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
directive_normalizer_spec.ts perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
directive_resolver_mock_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
directive_resolver_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
integration_spec.ts perf(core): add option to remove blank text nodes from compiled templates 2017-08-14 13:26:16 -07:00
metadata_resolver_fixture.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
metadata_resolver_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
ng_module_resolver_mock_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
ng_module_resolver_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
parse_util_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
pipe_resolver_mock_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
pipe_resolver_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
resource_loader_mock_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
runtime_compiler_spec.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
selector_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
shadow_css_spec.ts feat(compiler): add support `::ng-deep` 2017-06-23 14:43:42 -07:00
spies.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
style_url_resolver_spec.ts fix(compiler): Don't strip CSS source maps 2017-08-15 16:30:09 -07:00
test_bindings.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
url_resolver_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
util_spec.ts refactor(compiler): allow sync AOT compilation (#16832). 2017-05-23 10:41:23 -06:00