Skip to content

Backport of #28055 commits - #28736

Closed
petebacondarwin wants to merge 3 commits into
angular:7.2.xfrom
petebacondarwin:sourcemaps-patch
Closed

petebacondarwin wants to merge 3 commits into
angular:7.2.xfrom
petebacondarwin:sourcemaps-patch

Conversation

@petebacondarwin

Copy link
Copy Markdown
Contributor

A back port of some of the commits from #28055

@petebacondarwin
petebacondarwin requested review from a team February 14, 2019 18:12
@petebacondarwin petebacondarwin changed the title Sourcemaps patch Backport of #28055 commits Feb 14, 2019
@petebacondarwin petebacondarwin added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer refactoring Issue that involves refactoring or code-cleanup area: core Issues related to the framework runtime labels Feb 14, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Feb 14, 2019

@kyliau kyliau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for language service

@IgorMinar IgorMinar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but needs rebase. thanks

This commit consolidates the options that can modify the
parsing of text (e.g. HTML, Angular templates, CSS, i18n)
into an AST for further processing into a single `options`
hash.

This makes the code cleaner and more readable, but also
enables us to support further options to parsing without
triggering wide ranging changes to code that should not
be affected by these new options.  Specifically, it will let
us pass information about the placement of a template
that is being parsed in its containing file, which is essential
for accurate SourceMap processing.

PR Close angular#28055
…lar#28055)

When we added the strict null checks, the lexer had some `!`
operators added to prevent the compilation from failing.

This commit resolves this problem correctly and removes the
hacks.

Also the comment

```
// Note: this is always lowercase!
```

has been removed as it is no longer true.

See angular#24571

PR Close angular#28055
…ngular#28055)

There were a number of typos and some of the sentences did not
read well.

PR Close angular#28055
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

Rebased.

@petebacondarwin petebacondarwin added action: merge The PR is ready for merge by the caretaker PR target: patch-only and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 4, 2019
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2019
This commit consolidates the options that can modify the
parsing of text (e.g. HTML, Angular templates, CSS, i18n)
into an AST for further processing into a single `options`
hash.

This makes the code cleaner and more readable, but also
enables us to support further options to parsing without
triggering wide ranging changes to code that should not
be affected by these new options.  Specifically, it will let
us pass information about the placement of a template
that is being parsed in its containing file, which is essential
for accurate SourceMap processing.

PR Close #28055

PR Close #28736
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2019
…) (#28736)

When we added the strict null checks, the lexer had some `!`
operators added to prevent the compilation from failing.

This commit resolves this problem correctly and removes the
hacks.

Also the comment

```
// Note: this is always lowercase!
```

has been removed as it is no longer true.

See #24571

PR Close #28055

PR Close #28736
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2019
…28055) (#28736)

There were a number of typos and some of the sentences did not
read well.

PR Close #28055

PR Close #28736
@AndrewKushnir

Copy link
Copy Markdown
Contributor

Merged into 7.2.x branch.

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes refactoring Issue that involves refactoring or code-cleanup type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants