11 Commits

Author SHA1 Message Date
Joey Perrott
d1ea1f4c7f build: update license headers to reference Google LLC ()
Update the license headers throughout the repository to reference Google LLC
rather than Google Inc, for the required license headers.

PR Close 
2020-05-26 14:26:58 -04:00
Pete Bacon Darwin
7bc5bcde34 test(compiler): check extracted translations for line endings ()
When there are `CRLF` line endings some translations get different
message ids. This commit adds tests to track this in ViewEngine.

PR Close 
2020-04-28 12:22:40 -07:00
Pete Bacon Darwin
aa0dd0d5ff test(compiler): fix unwanted ! operators ()
The `I18nComponent` was using `!` for some of its properties
because it had not initialized them. This is now resolved by explictly
marking them as optional.

PR Close 
2020-04-28 12:22:40 -07:00
Alex Rickabaugh
83a9159063 style(compiler): reformat of codebase with new clang-format version ()
This commit reformats the packages/compiler tree using the new version of
clang-format.

PR Close 
2020-04-08 14:51:08 -07:00
Rado Kirov
c95437f15d build(bazel): Turning on strictPropertyInitialization for Angular. ()
All errors for existing fields have been detected and suppressed with a
`!` assertion.

Issue/24571 is tracking proper clean up of those instances.

One-line change required in ivy/compilation.ts, because it appears that
the new syntax causes tsickle emitted node to no longer track their
original sourceFiles.

PR Close 
2018-06-25 07:57:13 -07:00
Victor Berchet
28058b784b fix(compiler): fix support for html-like text in translatable attributes ()
PR Close 
2018-03-29 08:58:27 -07:00
Victor Berchet
cb5090cdc8 fix(compiler): fix ICU select messages to use male/female/other ()
related to 

PR Close 
2018-01-23 16:32:23 -08:00
Miško Hevery
fcadbf4bf6 perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.

Code savings for HelloWorld using Closure:

Reflective: bundle.js:  105,864(34,190 gzip)
    Static: bundle.js:  154,889(33,555 gzip)
                            645( 2%)

BREAKING CHANGE:

`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.

Example:
Before:
```
[
  MyClass,
  {provide: ClassA, useClass: SubClassA}
]

```

After:
```
[
  {provide: MyClass, deps: [Dep1,...]},
  {provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```

NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.

Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.

DEPRECATION:

- `ReflectiveInjector` is now deprecated as it will be remove. Use
  `Injector.create` as a replacement.

closes 
2017-08-07 15:42:34 -07:00
Olivier Combe
b3085e96c2 feat(compiler): add representation of placeholders to xliff & xmb
Closes 
2017-07-25 15:58:53 -05:00
Olivier Combe
a3a54299af fix(compiler): allow numbers for ICU message cases in lexer ()
Closes 
Fixes 
2017-07-20 17:41:54 -05:00
Marc Laval
95afaf495b test(compiler): refactor i18n integration test 2017-03-24 14:35:10 -07:00