Skip to content

[Syntax] Include leading/trailing trivia size to the cache ID #27822

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 1 commit into from
Oct 22, 2019

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Oct 21, 2019

(Re-apply 33e561a after reverting ASTGen)

We have to differentiate cache IDs between:

  (Token l_brace
    (trivia space 1)
    (text="{"))

and:

  (Token l_brace
    (text="{")
    (trivia space 1))

This might caused roundtrip failures. But I haven't been able to find reproducer for the failure.

We have to differenciate cache IDs between:
  (Token l_brace
    (trivia space 1)
    (text="{"))
and:
  (Token l_brace
    (text="{")
    (trivia space 1))
@rintaro rintaro requested a review from nathawes October 21, 2019 22:46
@rintaro
Copy link
Member Author

rintaro commented Oct 21, 2019

@swift-ci Please smoke test

@rintaro rintaro merged commit e5b48cd into swiftlang:master Oct 22, 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