-
Notifications
You must be signed in to change notification settings - Fork 558
~? annotation type is special #2403
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,7 +192,7 @@ They have several forms, but generally are a comment with the diagnostic level | |
to write out the entire message, just make sure to include the important part of | ||
the message to make it self-documenting. | ||
|
||
The error annotation needs to match with the line of the diagnostic. There are | ||
Most error annotations need to match with the line of the diagnostic. There are | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if we need this change; There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that does not sound right... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah,
|
||
several ways to match the message with the line (see the examples below): | ||
|
||
* `~`: Associates the error level and message with the *current* line | ||
|
@@ -205,9 +205,6 @@ several ways to match the message with the line (see the examples below): | |
* `~v`: Associates the error level and message with the *next* error | ||
annotation line. Each symbol (`v`) that you add adds a line to this, so `~vvv` | ||
is three lines below the error annotation line. | ||
* `~?`: Used to match error levels and messages with errors not having line | ||
information. These can be placed on any line in the test file, but are | ||
conventionally placed at the end. | ||
|
||
Example: | ||
|
||
|
@@ -222,6 +219,10 @@ The space character between `//~` (or other variants) and the subsequent text is | |
negligible (i.e. there is no semantic difference between `//~ ERROR` and | ||
`//~ERROR` although the former is more common in the codebase). | ||
|
||
`~? <diagnostic kind>` (example being `~? ERROR`) | ||
is used to match diagnostics without line information. | ||
These can be placed on any line in the test file, but are conventionally placed at the end. | ||
|
||
### Error annotation examples | ||
|
||
Here are examples of error annotations on different lines of UI test source. | ||
|