ba52f2f252
Revert "refactor(compiler): remove asset:
urls"
...
This reverts commit 0c98f45105
.
2016-11-23 12:09:08 -08:00
e122f6bf0f
Revert "refactor(compiler): add createAotCompiler
factory"
...
This reverts commit 170525a225
.
2016-11-23 12:09:07 -08:00
f32e287812
Revert "refactor(tsc-wrapped): collect all exported functions and classes and bump metadata version from 1 to 2"
...
This reverts commit 39a71eb0ec
.
2016-11-23 12:08:46 -08:00
9946ac5cc7
Revert "refactor(compiler): renames"
...
This reverts commit 38be2b81c6
.
2016-11-23 12:08:45 -08:00
593e05dc97
Revert "refactor(comiler): various cleanups"
...
This reverts commit ef38676091
.
2016-11-23 12:08:44 -08:00
da77b580c9
Revert "refactor(compiler): Reintroduce ReflectorHost
and move Extractor
into @angular/compiler
"
...
This reverts commit 64bd672e3a
.
2016-11-23 12:08:42 -08:00
64bd672e3a
refactor(compiler): Reintroduce ReflectorHost
and move Extractor
into @angular/compiler
2016-11-22 14:26:19 -08:00
ef38676091
refactor(comiler): various cleanups
2016-11-22 14:26:19 -08:00
38be2b81c6
refactor(compiler): renames
...
- `NgHost` to `CompilerHost`
- `AotCompilerHost.resolveFileToImport` to `AotCompilerHost.fileNameToModuleName`
- `AotCompilerHoset.resolveImportToFile` to `AotCompilerHost.moduleNameToFileName`
2016-11-22 14:26:19 -08:00
39a71eb0ec
refactor(tsc-wrapped): collect all exported functions and classes and bump metadata version from 1 to 2
...
This is needed to resolve symbols without `.d.ts` files.
This bumps the version of the metadata from 1 to 2.
This adds logic into `ng_host.ts` to automatically upgrade
version 1 to version 2 metadata by adding the exported symbols
from the `.d.ts` file.
2016-11-22 14:26:19 -08:00
170525a225
refactor(compiler): add createAotCompiler
factory
...
Also adds 2 more methods to the `AotCompilerHost`:
- `loadResource`
- `resolveFileToImport`
2016-11-22 14:26:19 -08:00
0c98f45105
refactor(compiler): remove asset:
urls
...
These urls were just relicts from Dart.
2016-11-22 14:26:19 -08:00
e7025c9423
refactor(compiler): move findDeclaration
into the StaticReflector
...
Previously, this was part of the `AotCompilerHost`.
The `AotCompilerHost` is now also greatly simplified.
2016-11-22 14:26:18 -08:00
8f295287a2
refactor(compiler): move static_reflector
into @angular/compiler
and rename files
...
- `src/runtime_compiler.ts` -> `src/jit/compiler.ts`
- `src/compiler.ts` -> `src/jit/compiler_factory.ts`
- `src/offline_compiler` -> `src/aot/compiler.ts`
Part of #12867
2016-11-22 14:26:18 -08:00
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
a965d11cce
fix(compiler): generate safe access strictNullChecks compatible code ( #12800 )
...
fixes #12795
2016-11-11 17:12:17 -08:00
fcb4e66493
refactor(compiler): introduce summaries for metadata ( #12799 )
...
This does not yet introduce loading / serialization of summaries.
Part of #12787
2016-11-10 16:27:53 -08:00
79383ce150
refactor(compiler): never create CompileDirectiveMetadata with not loaded resources ( #12788 )
...
Part of #12787
2016-11-10 14:07:30 -08:00
c3c0e2e2a2
refactor(compiler): add span
to TemplateBinding
( #12792 )
...
fix(compiler): corrected error location for implicit templates expressions
2016-11-10 13:15:09 -08:00
a0e9fde653
fix(animations): always normalize style properties and values during compilation ( #12755 )
...
Closes #11582
Closes #12481
Closes #12755
2016-11-08 15:45:30 -08:00
778e6ad3b4
refactor: cleanup ICU message syntax
2016-11-08 15:44:18 -08:00
55dc0e4a5f
fix(compiler): use the other case by default in ICU messages
2016-11-08 15:44:18 -08:00
acbf1d859c
fix(core): fix pseudo-selector shimming ( #12754 )
...
fixes #12730
fixes #12354
2016-11-07 13:56:04 -08:00
ec92f4b198
refactor: remove keys()
and values()
from MapWrapper
2016-11-04 13:27:38 -07:00
f0cdb428f5
fix(compiler): don't convert undefined to null literals ( #11503 )
...
Fixes #11493
2016-11-04 10:55:21 -07:00
d1035da85c
refactor(compiler): don’t use AppElement
s for creating component views
2016-11-02 17:06:27 -07:00
a178bc6c83
fix(compiler): dedupe NgModule declarations, …
...
This is important so that we don’t generate things multiple times.
2016-10-31 14:43:50 -07:00
e9fd8645ed
fix(core): improve error when multiple components match the same element
...
Closes #7067
2016-10-31 11:28:03 -07:00
d321b0ebf5
fix(selectors): use Maps instead of objects
2016-10-26 14:55:59 -07:00
178fb79b5c
refactor(compiler): move host properties into DirectiveWrapper
...
Part of #11683
2016-10-26 14:32:24 -07:00
fe299f4dfc
refactor(compiler): minor cleanups
2016-10-26 14:32:24 -07:00
faa3478514
refactor(compiler): set element attributes via one call
...
This makes the cost of using directives that have host attributes
smaller.
Part of #11683
2016-10-26 14:32:23 -07:00
867494a060
fix(compiler): don't access view local variables nor pipes in host expressions ( #12396 )
...
Fixes #12004
Closes #12071
2016-10-20 15:24:58 -07:00
b0a03fcab3
refactor(compiler): introduce directive wrappers to generate less code
...
- for now only wraps the `@Input` properties and calls
to `ngOnInit`, `ngDoCheck` and `ngOnChanges` of directives.
- also groups eval sources by NgModule.
Part of #11683
2016-10-20 10:41:43 -07:00
76dd026447
refactor: remove some facades ( #12335 )
2016-10-19 13:42:39 -07:00
df1718d624
fix(compiler): allow WS as <ng-content>
content ( #12225 )
2016-10-12 07:58:06 -07:00
7275e1beb3
refactor(compiler): add optional visit()
to TemplateAstVisitor
( #12209 )
2016-10-11 15:46:11 -07:00
e6e007e2f1
refactor(core): cleanup SpyObject ( #12221 )
2016-10-11 15:44:48 -07:00
d972d82354
refactor: simplify isPresent(x) ? x : y
to x || y
( #12166 )
...
Closes #12166
2016-10-10 09:20:58 -07:00
bdcf46f82e
refactor(compiler): improve types, misc
2016-10-10 09:20:58 -07:00
aa92512ac6
fix(compiler): properly shim :host:before
and :host(:before)
( #12171 )
...
fixes #12165
2016-10-10 09:15:15 -07:00
4202936bbf
refactor(compiler): add optional visit()
to html AST Visitor
( #12135 )
2016-10-10 09:13:50 -07:00
e1faca6386
refactor(compiler): template element ast has endSourceSpan ( #12138 )
2016-10-10 09:12:05 -07:00
13ecc140e8
fix(compiler): validate @HostBinding
name ( #12139 )
...
relates to #7500
2016-10-07 13:53:53 -07:00
709a6dea06
refactor(compiler): attribute ast records span of the value ( #12132 )
2016-10-07 13:53:29 -07:00
d641c36a45
fix(compiler): interpolation expressions report the correct offset ( #12125 )
2016-10-06 15:22:10 -07:00
8c975ed156
refactor(facade): inline StringWrapper ( #12051 )
2016-10-06 15:10:27 -07:00
50c37d45dc
refactor: simplify arrow functions ( #12057 )
2016-10-04 15:57:37 -07:00
a63359689f
fix(ShadowCss): fix attribute selectors in :host and :host-context ( #12056 )
...
Fix a regression introduced in #11917 while fixing #6249
2016-10-04 15:40:31 -07:00
b64b5ece65
refactor(facade): Remove most of StringMapWrapper facade. ( #12022 )
...
This change mostly automated by
12012b07a2
with some manual fixes.
2016-10-03 16:46:05 -07:00