Keywords
This commit is contained in:
@@ -55,9 +55,9 @@ type
|
||||
|
||||
// A single field in a record literal
|
||||
TRecordFieldLiteral = record
|
||||
Name: string; // The field name (from keyword :name)
|
||||
Key: IKeywordNode;
|
||||
Value: IAstNode;
|
||||
constructor Create(const AName: string; const AValue: IAstNode);
|
||||
constructor Create(const AKey: IKeywordNode; const AValue: IAstNode);
|
||||
end;
|
||||
|
||||
IAstVisitor = interface
|
||||
@@ -264,10 +264,10 @@ type
|
||||
IMemberAccessNode = interface(IAstNode)
|
||||
{$region 'private'}
|
||||
function GetBase: IAstNode;
|
||||
function GetMember: IIdentifierNode;
|
||||
function GetMember: IKeywordNode;
|
||||
{$endregion}
|
||||
property Base: IAstNode read GetBase;
|
||||
property Member: IIdentifierNode read GetMember;
|
||||
property Member: IKeywordNode read GetMember;
|
||||
end;
|
||||
|
||||
// Represents a record literal, e.g., {:a 1 :b 2}
|
||||
@@ -335,9 +335,9 @@ end;
|
||||
|
||||
{ TRecordFieldLiteral }
|
||||
|
||||
constructor TRecordFieldLiteral.Create(const AName: string; const AValue: IAstNode);
|
||||
constructor TRecordFieldLiteral.Create(const AKey: IKeywordNode; const AValue: IAstNode);
|
||||
begin
|
||||
Name := AName;
|
||||
Key := AKey;
|
||||
Value := AValue;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user