angular/packages/compiler/src
Andrew Scott 1bce51c0ed fix(compiler-cli): Handle ng-template with structural directive in indexer (#44788)
An `ng-template` with an inline template (i.e. has a structural
directive) would previously not get an `undefined` `tagName` because the
logic assumed the element would be `t.Element` or `t.Content` and read
the tag name from the `name` property. For a `t.Template`, this exists
instead on the `t.tagName`. The final result would be an `tagName` of `undefined`
for the parent `t.Template`, causing failures in the indexer downstream.

This `undefined` value is actually expected in the renderer code, even
though the type does not specify this possibility. This change updates
the type of `tagName` to be `string|null` and explicitly handles the
case where there is a structural directive on an `ng-template`. You can
see how the two are differentiated in the compliance code that was
modified in this commit.

PR Close #44788
2022-01-25 14:15:44 -08:00
..
compiler_util feat(compiler): add support for safe calls in templates (#44580) 2022-01-11 17:32:47 +00:00
expression_parser fix(compiler): correct spans when parsing bindings with comments (#44785) 2022-01-24 10:41:53 -08:00
i18n refactor(compiler): delete View Engine components of @angular/compiler (#44368) 2021-12-06 13:12:36 -05:00
ml_parser refactor(compiler): remove unused AstPath (#44411) 2022-01-04 15:54:09 -08:00
output refactor(compiler): store modifiers in a bitmask instead of an array (#44731) 2022-01-18 14:51:08 -08:00
render3 fix(compiler-cli): Handle ng-template with structural directive in indexer (#44788) 2022-01-25 14:15:44 -08:00
schema fix(language-service): provide dom event completions (#43299) 2021-09-27 10:45:58 -07:00
template_parser refactor(compiler): remove unused method from binding parser (#44411) 2022-01-04 15:54:10 -08:00
assertions.ts refactor(compiler): remove unused assertion function (#44411) 2022-01-04 15:54:09 -08:00
chars.ts refactor(compiler): share isQuote() via chars.ts (#43129) 2021-08-16 13:07:23 -07:00
compiler.ts refactor(compiler): store modifiers in a bitmask instead of an array (#44731) 2022-01-18 14:51:08 -08:00
compiler_facade_interface.ts fix(core): handle invalid constructor parameters in partial factory declarations (#43619) 2021-10-01 12:24:31 -04:00
config.ts refactor(compiler): remove extra imports (#37246) 2020-06-11 19:00:33 -07:00
constant_pool.ts refactor(compiler): store modifiers in a bitmask instead of an array (#44731) 2022-01-18 14:51:08 -08:00
core.ts refactor(compiler): remove unused type declarations (#44411) 2022-01-04 15:54:09 -08:00
identifiers.ts refactor(compiler): delete View Engine components of @angular/compiler (#44368) 2021-12-06 13:12:36 -05:00
injectable_compiler_2.ts fix(compiler): ensure that partially compiled queries can handle forward references (#44113) 2021-11-10 18:25:16 +00:00
jit_compiler_facade.ts refactor(compiler): store modifiers in a bitmask instead of an array (#44731) 2022-01-18 14:51:08 -08:00
parse_util.ts refactor(compiler): remove syntax error logic (#44411) 2022-01-04 15:54:09 -08:00
resource_loader.ts refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
selector.ts feat(compiler): support directive selectors with attributes containing $ (#41567) 2021-05-04 21:06:58 -07:00
shadow_css.ts refactor(compiler): improve regular expression for stripping comments (#43456) 2021-09-16 16:50:49 +00:00
style_url_resolver.ts refactor(compiler): make template preparser null-safe (#44411) 2022-01-04 15:54:10 -08:00
util.ts refactor(compiler): cleanup AST fixup of listener instructions (#44411) 2022-01-04 15:54:09 -08:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00