Skip to content

refactor(compiler): Move the attribute comment to the HTML AST#69463

Open
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:html-comment-ast
Open

refactor(compiler): Move the attribute comment to the HTML AST#69463
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:html-comment-ast

Conversation

@JeanMeche

Copy link
Copy Markdown
Member

This is to help the support for comment formating by third-party tools like prettier.

@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jun 22, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 22, 2026
@JeanMeche JeanMeche marked this pull request as ready for review June 22, 2026 12:45
@JeanMeche JeanMeche requested a review from crisbeto June 22, 2026 12:45
Comment thread packages/compiler/src/ml_parser/ast.ts Outdated
}
}

export class AttributeComment implements BaseNode {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AttributeComment sounds a bit like the comment is inside an attribute. Maybe something like ElementStartComment or StartTagComment?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You're right, let's go with StartTagComment

Comment thread packages/core/test/resource/resource_snapshot_spec.ts Outdated
This is to help the support for comment formating by third-party tools like prettier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants