-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add compiler diagnostics (#33)
- Loading branch information
Showing
8 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "rules_scala.workers.zinc.diagnostics"; | ||
option java_outer_classname = "Diagnostics"; | ||
|
||
enum Severity { | ||
UNKNOWN = 0; | ||
ERROR = 1; | ||
WARNING = 2; | ||
INFORMATION = 3; | ||
HINT = 4; | ||
} | ||
|
||
message Position { | ||
// 1-indexed | ||
int32 line = 1; | ||
// 1-indexed | ||
int32 character = 2; | ||
} | ||
|
||
message Range { | ||
Position start = 1; | ||
Position end = 2; | ||
} | ||
|
||
message Location { | ||
string path = 1; | ||
Range range = 2; | ||
} | ||
|
||
message DiagnosticRelatedInformation { | ||
Location location = 1; | ||
string message = 2; | ||
} | ||
|
||
message Diagnostic { | ||
Range range = 1; | ||
Severity severity = 2; | ||
int64 code = 3; | ||
string message = 5; | ||
repeated DiagnosticRelatedInformation related_information = 6; | ||
} | ||
|
||
message FileDiagnostics { | ||
string path = 1; | ||
repeated Diagnostic diagnostics = 2; | ||
} | ||
|
||
message TargetDiagnostics { | ||
repeated FileDiagnostics diagnostics = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters