Skip to content

feat(parser): TemplateParser.tryParse() returns both the AST and errors#7858

Closed
chuckjaz wants to merge 1 commit into
angular:masterfrom
chuckjaz:try-parse
Closed

feat(parser): TemplateParser.tryParse() returns both the AST and errors#7858
chuckjaz wants to merge 1 commit into
angular:masterfrom
chuckjaz:try-parse

Conversation

@chuckjaz
Copy link
Copy Markdown
Contributor

Adds tryParse() to TemplateParser that always returns an AST even if there are errors.

  • What is the current behavior? (You can also link to an open issue here)

TemplateParser has a method parse() that throws when the template has errors.

  • What is the new behavior (if this is a feature change)?

TemplateParser as a method tryParse() that always returns an AST even if there are errors.

The language service (#7482) needs the AST even if there are errors.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No.

The language service (angular#7482) always needs the AST even if there are errors
in the template.
@mary-poppins
Copy link
Copy Markdown

Merging PR #7858 on behalf of @mhevery to branch presubmit-mhevery-pr-7858.

@mhevery mhevery closed this in 226e662 Apr 7, 2016
@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 8, 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 cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants