Tail call optimization
This commit is contained in:
@@ -101,6 +101,7 @@ type
|
||||
property Connections: TList<TPinConnection> read FConnections;
|
||||
|
||||
{ IAstVisitor }
|
||||
function Execute(const RootNode: IAstNode): TDataValue;
|
||||
function VisitConstant(const Node: IConstantNode): TDataValue;
|
||||
function VisitIdentifier(const Node: IIdentifierNode): TDataValue;
|
||||
function VisitBinaryExpression(const Node: IBinaryExpressionNode): TDataValue;
|
||||
@@ -337,6 +338,11 @@ begin
|
||||
Result.TagString := Tag;
|
||||
end;
|
||||
|
||||
function TAstToAuraNodeVisitor.Execute(const RootNode: IAstNode): TDataValue;
|
||||
begin
|
||||
Result := RootNode.Accept(Self);
|
||||
end;
|
||||
|
||||
function TAstToAuraNodeVisitor.TryGetDescr(const Node: IAstNode; out Text: String): Boolean;
|
||||
begin
|
||||
if FMode <> vmControlFlow then
|
||||
|
||||
Reference in New Issue
Block a user