Skip to content
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

[SyntaxParse] Parse break statement syntax #28209

Open
wants to merge 1 commit into
base: syntax-parse
Choose a base branch
from

Conversation

kitasuke
Copy link
Contributor

Overview

Apply new changes on syntax-parse branch to BreakStmtSyntax

@rintaro rintaro self-assigned this Nov 12, 2019
Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

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

Thanks for continuing working on this! The change itself looks good to me.
Could you add a test case for break statement with try and code labels in test/Syntax/round_trip_parse_gen.swift? like:

switch foo {
case let a:
  try break
case let b:
  LABEL: break
}

I believe this is parsed as UnknownStmt syntax that contains BreakStmt, but just to make sure.

lib/Parse/ParseStmt.cpp Outdated Show resolved Hide resolved
@rintaro rintaro removed their assignment Nov 13, 2019
@kitasuke
Copy link
Contributor Author

Addressed your feedbacks

[SyntaxParse] Parse break statement syntax

Fix docs
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.

None yet

2 participants