AST testing
This commit is contained in:
@@ -240,7 +240,7 @@ var
|
||||
placeholderType: IStaticType;
|
||||
i: Integer;
|
||||
begin
|
||||
adr := Node.Identifier.Address;
|
||||
adr := Node.Target.AsIdentifier.Address;
|
||||
initType := TTypes.Unknown;
|
||||
|
||||
// Recursive lambda bootstrap logic
|
||||
@@ -274,7 +274,7 @@ begin
|
||||
if initType.Kind <> stUnknown then
|
||||
FCurrentContext.SetType(adr.SlotIndex, initType);
|
||||
|
||||
newIdent := TAst.Identifier(Node.Identifier.Name, adr, initType);
|
||||
newIdent := TAst.Identifier(Node.Target.AsIdentifier.Name, adr, initType);
|
||||
|
||||
Result := TAst.VarDecl(newIdent.AsIdentifier, newInitializer, initType, Node.IsBoxed);
|
||||
end;
|
||||
@@ -288,7 +288,7 @@ var
|
||||
placeholderType: IStaticType;
|
||||
i: Integer;
|
||||
begin
|
||||
newIdent := Accept(Node.Identifier);
|
||||
newIdent := Accept(Node.Target);
|
||||
targetType := newIdent.AsTypedNode.StaticType;
|
||||
adr := newIdent.AsIdentifier.Address;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user