Skip to content

Address review comments to #1650 #1665

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 3 commits into from
Jun 3, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 15, 2023

This addresses the review comments I made on #1650.

@ahoppen ahoppen requested a review from rintaro May 15, 2023 21:32
@ahoppen
Copy link
Member Author

ahoppen commented May 15, 2023

@swift-ci Please test

@@ -431,7 +457,7 @@ public class ParseDiagnosticsGenerator: SyntaxAnyVisitor {
return .skipChildren
}

if node.leftSquareBracket.presence == .missing && node.rightSquareBracket.presence == .present {
if node.leftSquareBracket.isMissing && node.rightSquareBracket.presence == .present {
Copy link
Contributor

Choose a reason for hiding this comment

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

Personally I'm not a huge fan of introducing an accessor here. If you really want it then I'd also want a isPresent. Or if we've decided there's only ever going to be two values here, then changing the .presence == .present to !isMissing would be another option.

@ahoppen ahoppen force-pushed the ahoppen/rintaro-review-comments branch from 369b18f to fea8c9a Compare May 15, 2023 23:55
@ahoppen
Copy link
Member Author

ahoppen commented May 15, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 15, 2023

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/rintaro-review-comments branch from fea8c9a to d9f839c Compare May 25, 2023 14:55
@ahoppen
Copy link
Member Author

ahoppen commented May 25, 2023

@swift-ci Please test

""",
diagnostics: [
DiagnosticSpec(message: "expected identifier in macro expansion", fixIts: ["insert identifier"])
DiagnosticSpec(locationMarker: "1️⃣", message: "extraneous whitespace after '#' is not permitted", fixIts: ["remove whitespace"]),
Copy link
Contributor

Choose a reason for hiding this comment

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

Bit weird to have both (1) and (2). Ideally we'd just have (2) with the trivia transferred to the trailing of the inserted identifier.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed it in a separate commit to this PR.

@ahoppen
Copy link
Member Author

ahoppen commented May 25, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 26, 2023

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/rintaro-review-comments branch from c8928df to 1aaffd5 Compare June 1, 2023 18:03
@ahoppen ahoppen enabled auto-merge June 1, 2023 18:35
@ahoppen ahoppen force-pushed the ahoppen/rintaro-review-comments branch from 1aaffd5 to 6ca17a4 Compare June 2, 2023 21:29
@ahoppen
Copy link
Member Author

ahoppen commented Jun 2, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 2, 2023

@swift-ci Please test Windows

ahoppen and others added 2 commits June 2, 2023 14:45
This addresses the review comments I made on swiftlang#1650.

Co-Authored-By: Rintaro Ishizaki <rintaro@apple.com>
@ahoppen ahoppen force-pushed the ahoppen/rintaro-review-comments branch from 6ca17a4 to 8bd739d Compare June 2, 2023 21:46
@ahoppen
Copy link
Member Author

ahoppen commented Jun 2, 2023

@swift-ci Please test

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2023

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2023

@swift-ci Please clean test Windows

@ahoppen ahoppen merged commit 13f688e into swiftlang:main Jun 3, 2023
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