-
Notifications
You must be signed in to change notification settings - Fork 441
Use a token name for diagnostics to generate diagnostic messages #737
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
Use a token name for diagnostics to generate diagnostic messages #737
Conversation
@swift-ci Please test |
@@ -612,8 +611,7 @@ final class DeclarationTests: XCTestCase { | |||
diagnostics: [ | |||
DiagnosticSpec(locationMarker: "MISSING_COLON", message: "Expected ':' in function parameter"), | |||
DiagnosticSpec(locationMarker: "MISSING_RPAREN", message: "Expected ')' to end parameter clause"), | |||
// FIXME: We should issues something like "Expected identifier in declaration" | |||
DiagnosticSpec(locationMarker: "MISSING_IDENTIFIER", message: "Expected '' in struct"), | |||
DiagnosticSpec(locationMarker: "MISSING_IDENTIFIER", message: "Expected identifier in struct"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"in struct" sounds a little weird to me, but the change to give them names looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be changed to Expected name of struct
in one of my future PRs. I can’t find it right now, so it looks like I haven’t put it up yet.
4a50ae5
to
f657b60
Compare
@swift-ci Please test |
f657b60
to
fbd3d19
Compare
@swift-ci Please test |
fbd3d19
to
39e2b9a
Compare
@swift-ci Please test |
This allows us to generate improved error messages: