Skip to content

Verify incremental parsing merged EqualsGreaterThanToken in ParseLambdaExpression() #60002

@cston

Description

@cston

Consider adding a note to MergeAdjacent to mention this method should be updated when used.

It looks LanguageParser.ParseLambdaExpression() also uses MergeAdjacent() for SyntaxKind.EqualsGreaterThanToken. If there's a potential incremental parsing bug there, we should open an issue.

Originally posted by @cston in #59977 (comment)

Consider adding an assert to MergeAdjacent(): Debug.Assert(IsFabricatedToken(kind));

Originally posted by @cston in #59977 (comment)

Metadata

Metadata

Assignees

Labels

Area-CompilersTest-GapDescribes a specific feature or scenario that does not have test coverage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions