Address review comments to #1650#1665
Conversation
|
@swift-ci Please test |
| } | ||
|
|
||
| if node.leftSquareBracket.presence == .missing && node.rightSquareBracket.presence == .present { | ||
| if node.leftSquareBracket.isMissing && node.rightSquareBracket.presence == .present { |
There was a problem hiding this comment.
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.
369b18f to
fea8c9a
Compare
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
fea8c9a to
d9f839c
Compare
|
@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"]), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Changed it in a separate commit to this PR.
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
c8928df to
1aaffd5
Compare
1aaffd5 to
6ca17a4
Compare
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
This addresses the review comments I made on swiftlang#1650. Co-Authored-By: Rintaro Ishizaki <rintaro@apple.com>
6ca17a4 to
8bd739d
Compare
|
@swift-ci Please test |
1 similar comment
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
|
@swift-ci Please clean test Windows |
This addresses the review comments I made on #1650.