Make Diagnostics usage a pointer
This commit is contained in:
@@ -60,7 +60,7 @@ IToken* Lexer::LexNext(char c){
|
||||
if (isalpha(c)){
|
||||
return LexIdentifierOrKeyword(c);
|
||||
}
|
||||
this -> ScriptData->Diagnostics.LogError(DiagnosticCode::UnexpectedCharacter, this -> Position - 1, 1);
|
||||
this -> ScriptData -> Diagnostics -> LogError(DiagnosticCode::UnexpectedCharacter, this -> Position - 1, 1);
|
||||
return new SimpleToken(TokenKind::BadToken, this -> Position - 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user