Chuck Jazdzewski
f194f18dbd
fix(language-service): infer `any` `ngForOf` of type `any`
...
Fixes : #17611
2017-06-20 12:04:51 -07:00
Chuck Jazdzewski
4e6be15069
fix(language-service): rollup `tslib` into the language service package
...
Fixes : #17614
2017-06-20 11:50:20 -07:00
Jason Aden
fa809ec8cf
build: import tslib rather than output TS helpers ( #16901 )
2017-05-23 14:01:39 -06:00
Tobias Bosch
50abca4583
refactor(compiler): don’t rely on global reflector ( #16832 )
...
Using the global reflector made it impossible
to compile multiple programs at the same time.
2017-05-23 10:41:23 -06:00
Chuck Jazdzewski
9a7f5d580f
ci: update build to use TypeScript 2.3.2 ( #16707 )
2017-05-16 13:29:38 -07:00
Chuck Jazdzewski
b9521b568f
feat(compiler): support a non-null postfix assert ( #16672 )
...
Template expressions can now use a post-fix `!` operator
that asserts the target of the operator is not null. This is
similar to the TypeScript non-null assert operator. Expressions
generated in factories will be generated with the non-null assert
operator.
Closes : #10855
2017-05-11 10:15:54 -07:00
Chuck Jazdzewski
bb0902c592
refactor(compiler-cli): move the expression expression type checker ( #16562 )
...
The expression type checker moved from the language service
to the compiler-cli in preparation to using it to check
template expressions.
2017-05-09 16:16:50 -07:00
Tobias Bosch
547c363473
feat: add .ngsummary.ts files to support AOT unit tests
...
Design doc: https://docs.google.com/document/d/1VmTkz0EbEVSWfEEWEvQ5sXyQXSCvtMOw4t7pKU-jOwc/edit?usp=sharing
2017-05-05 13:23:53 -04:00
Chuck Jazdzewski
253345c0c0
fix(language-service): remove asserts for non-null expressions ( #16422 )
...
Reworked some of the code so asserts are no longer necessary.
Added additional and potentially redundant checks
Added checks where the null checker found real problems.
PR Close #16422
2017-04-28 22:50:31 -05:00
Chuck Jazdzewski
f4b771a0c6
feat(language-service): provide external file list to TypeScript ( #16417 )
...
Also ensures that it only calls base language service for files
that it contains.
PR Close #16417
2017-04-28 18:11:18 -05:00
Miško Hevery
5293794316
fix: turn on nullability in the code base.
2017-04-18 12:07:33 -07:00
Victor Berchet
014594fe8f
feat: add support for TS 2.3
2017-04-18 08:28:55 -07:00
Victor Berchet
3c8a61e40c
feat: add support for TS 2.2
2017-04-18 08:28:55 -07:00
Chuck Jazdzewski
f21ff904c2
fix(language-service): respect baseUrl compiler option
...
Fixes #15974
2017-04-17 14:36:49 -07:00
Chuck Jazdzewski
2ddf3bcdd1
fix(language-service): look for type constructors on canonical symbol
2017-04-17 09:49:31 -07:00
Chuck Jazdzewski
0a3a9afe58
fix(language-service): infer correct type of `?.` expressions
...
Fixes #15885
2017-04-17 09:48:52 -07:00
Chuck Jazdzewski
5a88d2f68b
fix(language-service): only use canonical symbols
...
Language service was treating some alias TypeScript symbols as if
they where the canonical symbol. If the symbol in scope is an alias
of another symbol the symbol should be converted to the canonical
symbol.
2017-04-17 09:24:31 -07:00
Victor Berchet
fdb3f26448
refactor(compiler): cleanup ( #15960 )
2017-04-13 11:56:00 -07:00
Miško Hevery
540581da3e
fix(language-service): Update types for TypeScript nullability support
2017-04-12 11:36:19 -07:00
Chuck Jazdzewski
258d5392d5
fix(language-service): detect when there isn't a tsconfig.json
...
Fixes #15874
2017-04-10 16:01:05 -06:00
Miško Hevery
09d9f5fe54
fix(compiler): Update types for TypeScript nullability support
2017-04-10 15:26:33 -06:00
Chuck Jazdzewski
bde9771991
fix(language-service): parse extended i18n forms
2017-04-04 15:34:12 -06:00
Chuck Jazdzewski
fe0d02fc47
fix(language-service): initialize static reflector correctly
...
Fixes #15768
2017-04-04 15:00:46 -06:00
Chuck Jazdzewski
7764c5c697
fix(language-service): avoid throwing exceptions when reporting metadata errors
2017-04-04 14:11:51 -06:00
Chuck Jazdzewski
5fbb0d050c
fix(language-service): resolve any parameter types to any result
2017-03-31 11:37:39 -07:00
Chuck Jazdzewski
71a8627c5d
fix(language-service): improve resilience to incomplete information
2017-03-31 11:37:39 -07:00
Tobias Bosch
8ef621ad2a
fix(compiler): fix inheritance for AOT with summaries ( #15583 )
...
Allows to inherit ctor args, lifecycle hooks and statics from a class
in another compilation unit.
Will error if trying to inherit from a class in another compilation unit
that has an `@Component` / `@Directive` / `@Pipe` / `@NgModule`.
2017-03-30 14:51:29 -07:00
Chuck Jazdzewski
a9321b1387
fix(language-service): correctly determine base members of types ( #15600 )
...
Fixes #15460
2017-03-29 16:14:37 -07:00
Chuck Jazdzewski
331b9f6425
fix(language-service): don't require `reflect-metadata` module to be provided ( #15569 )
...
Fixes #15568
2017-03-29 09:34:21 -07:00
Chuck Jazdzewski
6269d28bb0
fix(language-service): improve performance of `updateModuleAnalysis()` ( #15543 )
2017-03-28 13:32:46 -07:00
Chuck Jazdzewski
a5c972aa8b
fix(language-service): be resilient to invalidate ordering ( #15470 )
...
Fixes #15466
2017-03-28 09:37:24 -07:00
Chuck Jazdzewski
920bf373fe
fix(language-service): guard access to `Symbol.members` ( #15529 )
...
Fixes #15528
What is the current behavior?
The language service access TypeScript's Symbol.members without checking for null or undefined.
What is the new behavior?
The access is guarded.
2017-03-27 17:40:48 -07:00
Jason Aden
410aa33005
build: fix paths to typings files so tsickle resolves imports correctly
...
Fixes #15080
2017-03-16 17:34:29 -07:00
Tobias Bosch
5c34066058
fix(compiler): only warn for `@Injectable` classes with invalid args.
...
In v2.x, users had to annotate classes that they intended to use as tokens with `@Injectable`. This is no longer required in v4.x for tokens,
and we now require the constructor parameters of classes annotated
with `@Injectable` to be statically analyzable by ngc.
This commit reduces the error into a warning
if the constructor parameters do not meet this condition.
DEPRECATION:
- Classes annotated with `@Injectable` but whose constructor’s parameter types
are not statically analyzable by ngc will produce a warning.
Closes #15003
2017-03-14 19:52:53 -07:00
Jason Aden
b74ab83d2c
refactor: update paths from modules/@angular to packages
2017-03-08 16:29:28 -08:00
Jason Aden
da8ea350b2
refactor: More generic build.sh file
2017-03-08 16:29:28 -08:00
Jason Aden
72563b61fb
build: fix rollup config file paths
2017-03-08 16:29:28 -08:00
Jason Aden
8573e36574
build: fix file paths after moving modules/@angular/* to packages/*
2017-03-08 16:29:28 -08:00
Jason Aden
3e51a19983
refactor: move angular source to /packages rather than modules/@angular
2017-03-08 16:29:27 -08:00