Implement defining functions
This commit is contained in:
@@ -25,6 +25,11 @@ namespace Upsilon
|
||||
Log(DiagnosticLevel.Error, message, location);
|
||||
}
|
||||
|
||||
public void LogBadCharacter(TextSpan location, SyntaxKind expectedToken, SyntaxKind currentKind)
|
||||
{
|
||||
LogError($"Invalid character found. Expected: '{expectedToken}', Got: '{currentKind}'", location);
|
||||
}
|
||||
|
||||
public void LogBadCharacter(TextSpan location, SyntaxKind expectedToken)
|
||||
{
|
||||
LogError($"Invalid character found. Expected: '{expectedToken}'", location);
|
||||
|
||||
Reference in New Issue
Block a user