Make Diagnostics usage a pointer
This commit is contained in:
@@ -11,6 +11,10 @@ Script Script::Create(string script) {
|
||||
return s;
|
||||
}
|
||||
|
||||
Script::~Script() {
|
||||
delete this -> Diagnostics;
|
||||
}
|
||||
|
||||
void Script::Parse(string script) {
|
||||
auto lexer = Lexer(std::move(script), this);
|
||||
auto lexResult = lexer.Lex();
|
||||
@@ -21,3 +25,4 @@ void Script::Parse(string script) {
|
||||
}
|
||||
lexResult.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user