Skip to content

Commit

Permalink
Annotate local variable write/read nodes in YAML fixtures with a vari…
Browse files Browse the repository at this point in the history
…able name when it's declared in outer scope
  • Loading branch information
andrykonchin committed Jan 11, 2024
1 parent caf818c commit 5b1dd31
Show file tree
Hide file tree
Showing 21 changed files with 86 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,17 @@ ast: |
attributes:
flags = 0
frameDepth = 1
frameSlot = 3
frameSlot = 3 # a
WriteDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 4
frameSlot = 4 # b
WriteDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 5
frameSlot = 5 # c
]
rhsNode =
ReadLocalVariableNode
Expand All @@ -172,7 +172,7 @@ ast: |
attributes:
flags = 1
frameDepth = 1
frameSlot = 6
frameSlot = 6 # array
children:
valueNode =
ArrayLiteralNode$UninitialisedArrayLiteralNode
Expand All @@ -185,19 +185,19 @@ ast: |
attributes:
flags = 0
frameDepth = 1
frameSlot = 3
frameSlot = 3 # a
type = FRAME_LOCAL
ReadDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 4
frameSlot = 4 # b
type = FRAME_LOCAL
ReadDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 5
frameSlot = 5 # c
type = FRAME_LOCAL
]
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ ast: |
attributes:
flags = 0
frameDepth = 1
frameSlot = 3
frameSlot = 3 # a
MultipleAssignmentNode
attributes:
flags = 0
Expand All @@ -153,12 +153,12 @@ ast: |
attributes:
flags = 0
frameDepth = 1
frameSlot = 4
frameSlot = 4 # b
WriteDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 5
frameSlot = 5 # c
]
splatCastNode =
SplatCastNodeGen
Expand All @@ -185,7 +185,7 @@ ast: |
attributes:
flags = 1
frameDepth = 1
frameSlot = 6
frameSlot = 6 # array
children:
valueNode =
ArrayLiteralNode$UninitialisedArrayLiteralNode
Expand All @@ -198,19 +198,19 @@ ast: |
attributes:
flags = 0
frameDepth = 1
frameSlot = 3
frameSlot = 3 # a
type = FRAME_LOCAL
ReadDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 4
frameSlot = 4 # b
type = FRAME_LOCAL
ReadDeclarationVariableNode
attributes:
flags = 0
frameDepth = 1
frameSlot = 5
frameSlot = 5 # c
type = FRAME_LOCAL
]
]
Expand Down
Loading

0 comments on commit 5b1dd31

Please sign in to comment.