-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map parser and tokenizer errors to the source files.
- Loading branch information
1 parent
656ee61
commit acefb1d
Showing
5 changed files
with
74 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace PythonSourceGenerator; | ||
|
||
public class GeneratorError | ||
{ | ||
|
||
public string Message { get; } | ||
|
||
public int StartLine { get; } | ||
|
||
public int StartColumn { get; } | ||
|
||
public int EndLine { get; } | ||
|
||
public int EndColumn { get; } | ||
|
||
public string Code { get; } | ||
|
||
public GeneratorError(int startLine, int endLine, int startColumn, int endColumn, string message) | ||
{ | ||
Message = message; | ||
StartLine = startLine; | ||
StartColumn = startColumn; | ||
EndLine = endLine; | ||
EndColumn = endColumn; | ||
Code = "hello"; | ||
} | ||
} |
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