Skip to content

[SyntaxParse] Assert that the children of syntax tree nodes have contiguous ranges #27789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 21, 2019

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Oct 19, 2019

Re-apply #27406 by @nathawes
Also apply the assertion to node creations from SyntaxParsingContext::createSyntaxAs() API.

(Disabled syntax tree creation for syntax-ide-test -code-completion because code completion skips some portion of the source text)

Nathan Hawes and others added 2 commits October 18, 2019 17:22
… source ranges

This should help us catch syntax tree round-tripping issues.
ParsedRawSyntaxRecorder::recordRawSyntax() and
ParsedRawSyntaxNode::makeDeferred()
@rintaro
Copy link
Member Author

rintaro commented Oct 19, 2019

@swift-ci Please test

@rintaro rintaro requested a review from nathawes October 21, 2019 17:53
@rintaro rintaro merged commit fea97d2 into swiftlang:master Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants