Refactoring node to be immutable
This commit is contained in:
@@ -451,9 +451,9 @@ begin
|
||||
definitions := TDictionary<string, IAstNode>.Create;
|
||||
try
|
||||
// Check if the root is a block and extract top-level definitions
|
||||
if rootNode is TBlockExpressionNode then
|
||||
if rootNode.Kind = akBlockExpression then
|
||||
begin
|
||||
for var expr in (rootNode as TBlockExpressionNode).Expressions do
|
||||
for var expr in rootNode.AsBlockExpression.Expressions do
|
||||
begin
|
||||
if expr is TVariableDeclarationNode then
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user