Misko Hevery
3c2842be96
refactor: remove unneeded output_emitter_utils ( #14160 )
2017-02-07 19:17:58 -06:00
Chuck Jazdzewski
69e14b500b
feat(compiler): generate type parameters for generic type references ( #14104 )
2017-02-01 09:29:51 -06:00
Victor Berchet
eed83443b8
chore(tslint): update tslint to 4.x ( #13603 )
2016-12-27 14:55:58 -08:00
Tobias Bosch
9c697030e6
feat(compiler): generate proper reexports in `.ngfactory.ts` files to not need transitive deps for compiling `.ngfactory.ts` files. ( #13524 )
...
Note: This checks the constructors of `@Injectable` classes more strictly.
E.g this will fail now as the constructor argument has no `@Inject` nor is
the type of the argument a DI token.
```
@Injectable()
class MyService {
constructor(dep: string) {}
}
```
Last part of #12787
Closes #12787
2016-12-27 09:36:47 -08:00
Matias Niemelä
f49ab56160
fix(animations): always quote string map key values in AOT code ( #13602 )
2016-12-20 18:17:58 -08:00
Tobias Bosch
33910ddfc9
refactor(compiler): store metadata of top level symbols also in summaries ( #13289 )
...
This allows a build using summaries to not need .metadata.json files at all
any more.
Part of #12787
2016-12-15 09:12:40 -08:00
Chuck Jazdzewski
dd0519abad
fix(compiler): emit quoted object literal keys if the source is quoted
...
feat(tsc-wrapped): recored when to quote a object literal key
Collecting quoted literals is off by default as it introduces
a breaking change in the .metadata.json file. A follow-up commit
will address this.
Fixes #13249
Closes #13356
2016-12-14 12:58:41 -08:00
Tobias Bosch
3e73bea3e7
refactor(compiler): convert metadata classes used in summaries into interfaces ( #13123 )
...
Part of #12787
2016-11-30 10:52:51 -08:00
Tobias Bosch
2f7492c986
refactor(compiler): remove unneeded fields from metadata
...
Removes `CompileIdentifierMetadata.name` / `.moduleUrl`,
as well as `CompileTypeMetadata.name / moduleUrl` and
`CompileFactoryMetadata.name / moduleUrl`.
2016-11-28 15:19:23 -08:00
Tobias Bosch
2452cd14e0
refactor(compiler): drop old codegen tests that run inside of `test.sh`
...
These tests were hard to maintain and only yielded little value,
now that we have the full integration with TypeScript.
2016-11-28 15:19:23 -08:00
Tobias Bosch
adeea5d86a
refactor(compiler): renames
...
- `NgHost` to `CompilerHost`
- `AotCompilerHost.resolveFileToImport` to `AotCompilerHost.fileNameToModuleName`
- `AotCompilerHoset.resolveImportToFile` to `AotCompilerHost.moduleNameToFileName`
2016-11-18 10:04:14 -08:00
Tobias Bosch
2235048432
refactor(compiler): add `createAotCompiler` factory
...
Also adds 2 more methods to the `AotCompilerHost`:
- `loadResource`
- `resolveFileToImport`
2016-11-18 10:04:14 -08:00
Tobias Bosch
484119e59f
refactor(compiler): remove `asset:` urls
...
These urls were just relicts from Dart.
2016-11-18 10:04:14 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Chuck Jazdzewski
a965d11cce
fix(compiler): generate safe access strictNullChecks compatible code ( #12800 )
...
fixes #12795
2016-11-11 17:12:17 -08:00
Pawel Kozlowski
f0cdb428f5
fix(compiler): don't convert undefined to null literals ( #11503 )
...
Fixes #11493
2016-11-04 10:55:21 -07:00
Tobias Bosch
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
Victor Berchet
bdcf46f82e
refactor(compiler): improve types, misc
2016-10-10 09:20:58 -07:00
Alex Eagle
0286956107
refactor(facade): Inline isBlank called with object-type argument ( #11992 )
2016-09-30 09:26:53 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Tobias Bosch
d7de5c4f8e
refactor(compiler): replace `CompileIdentifierMap` with regular `Map`
...
closes #11145
Also rename `CompileIdentifierMetadata.runtime` into `CompileIdentifierMetadata.reference`.
Also remove `CompileIdentifierMetadata.equalsTo` as
now it is enough to just check the `reference` fields for equality.
2016-08-29 12:45:27 -07:00
Alex Eagle
abad6673e6
fix(ngc): don't quote properties in literal maps ( #11110 )
...
Closure compiler treats quoted properties specially, and doesn't rename them.
Fixes #11050
2016-08-26 15:54:34 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
Alex Eagle
01111b04ff
fix(ngc): codegen allows --strictNullChecks ( #10991 )
2016-08-22 15:30:18 -07:00
Alex Eagle
8560e1e4bf
fix(ngc): comment out a private keyword in codegen. ( #10949 )
...
Workaround for b/30775898
2016-08-22 14:28:09 -07:00
Victor Berchet
e9479b30e8
refactor(OutputAst): BuiltinMethod.bind renamed to Bind ( #10739 )
2016-08-14 10:04:37 -07:00
Alex Eagle
6f4ee6101c
chore(imports): don't import ExceptionHandler from facade ( #10620 )
...
This lets us skip src/facade/exception* when compiling modules other than core.
It prevents having many conflicting declarations
2016-08-10 15:55:18 -07:00
Jason Choi
99989f5d3f
chore(facade): remove most facade/async functions
2016-08-05 12:26:28 -07:00
Victor Berchet
2dfc9c653b
refactor: dart
2016-08-01 11:34:51 -07:00
Victor Berchet
106db0aba8
refactor: IS_DART === false
2016-08-01 11:34:51 -07:00
Jason Choi
64fc4648b7
fix(testing): correctly import NgMatchers ( #10077 )
...
Some test cases incorrectly rely on the side effect of other test cases
importing `NgMatchers`. This commit fixes this by making `expect` in
`core/testing_internal` properly typed.
2016-07-22 09:20:51 -07:00
Victor Berchet
00aa7a76b6
chore(tests): enable lint, make it green. ( #10224 )
2016-07-21 17:12:00 -07:00
Chuck Jazdzewski
9229bbbc80
Revert "fix(compiler): Generates function expressions as returning any ( #9980 )"
...
This reverts commit eb5763c23f
.
2016-07-13 15:41:30 -07:00
Chuck Jazdzewski
eb5763c23f
fix(compiler): Generates function expressions as returning any ( #9980 )
...
Function expressions are used in an expression context so untyped
function expressions should have any as the result type.
Fixes : #9877
2016-07-11 17:19:38 -07:00
Tobias Bosch
17e4cfc748
feat(core): introduce `@AppModule`
...
Main part for #9726
Closes #9730
2016-06-30 11:34:40 -07:00
Julie Ralph
3d8eb8cbca
fix(platform-browser/testing): clean up public api for platform-browser/testing ( #9519 )
...
Mostly, removing things that were never intended to be exported publicy.
BREAKING CHANGE:
The following are no longer publicly exported APIs. They were intended as internal
utilities and you should use your own util:
```
browserDetection,
dispatchEvent,
el,
normalizeCSS,
stringifyElement,
expect (and custom matchers for Jasmine)
```
2016-06-23 16:42:25 -07:00
ScottSWu
ae75e3640a
chore(lint): Added license headers to most TypeScript files
...
Relates to #9380
2016-06-23 09:47:54 -07:00
Alex Eagle
f39c9c9e75
style(lint): re-format modules/@angular
2016-06-09 17:00:15 -07:00
ScottSWu
86fbd50c3d
refactor(TypeScript): Add noImplicitAny
...
We automatically insert explicit 'any's where needed. These need to be
addressed as in #9100 .
Fixes #4924
2016-06-08 16:20:50 -07:00
Alex Eagle
817ddfa847
fix(compiler): allow --noImplicitAny
2016-05-11 16:56:12 -07:00
Tobias Bosch
00d3b6083c
fix(compiler): support css stylesheets in offline compiler
2016-05-02 15:06:46 -07:00
Misko Hevery
3e17c99f4e
chore: clang-reformat
2016-05-01 22:59:41 -07:00
Igor Minar
a66cdb469f
repackaging: all the repackaging changes squashed
2016-05-01 20:51:00 -07:00
Igor Minar
505da6c0a8
repackaging: all the file moves
2016-05-01 20:51:00 -07:00