AST refactoring
This commit is contained in:
@@ -312,7 +312,7 @@ begin
|
||||
result := root.Accept(visitor);
|
||||
sw.Stop;
|
||||
|
||||
if not result.IsUndefined then
|
||||
if not result.IsVoid then
|
||||
Memo1.Lines.Add(Format('Result: %s (calculated in %d ms)', [result.ToString, sw.ElapsedMilliseconds]))
|
||||
else
|
||||
Memo1.Lines.Add(Format('<undefined result> (calculated in %d ms)', [sw.ElapsedMilliseconds]));
|
||||
|
||||
Reference in New Issue
Block a user