angular-cn/packages/compiler/test/render3/view
Ayaz Hafiz f65db20c6d feat(ivy): record absolute position of template expressions (#31391)
Currently, template expressions and statements have their location
recorded relative to the HTML element they are in, with no handle to
absolute location in a source file except for a line/column location.
However, the line/column location is also not entirely accurate, as it
points an entire semantic expression, and not necessarily the start of
an expression recorded by the expression parser.

To support record of the source code expressions originate from, add a
new `sourceSpan` field to `ASTWithSource` that records the absolute byte
offset of an expression within a source code.

Implement part 2 of [refactoring template parsing for
stability](https://hackmd.io/@X3ECPVy-RCuVfba-pnvIpw/BkDUxaW84/%2FMA1oxh6jRXqSmZBcLfYdyw?type=book).

PR Close #31391
2019-07-22 09:48:35 -07:00
..
binding_spec.ts fix(ivy): match microsyntax template directives correctly (#29698) 2019-04-19 11:15:25 -07:00
i18n_spec.ts feat(ivy): record absolute position of template expressions (#31391) 2019-07-22 09:48:35 -07:00
util.ts refactor(compiler): use `options` argument for parsers (#28055) 2019-02-12 20:58:27 -08:00