Skip to content

Commit f149a59

Browse files
committed
Fix notes in YARP fixtures for reference assignment operators
1 parent bb3908e commit f149a59

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

spec/truffle/parsing/fixtures/operators/&&=/reference_assignment_with_explicit_self_receiver.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ description: "Assign an referenced element with explicit self receiver (self[a]
33
notes: >
44
Method call when receiver is `self` means a private or protected method could be successfully called.
55
6-
In AST it's represented with RubyCallNode's field dispatchConfig.
7-
`dispatchConfig = PRIVATE` means a method visibility is ignored.
6+
In AST it's represented with method call parameter `ignoreVisibility=true`.
87
yarp_specific: true # don't put self into a local variable and fixed call node and set ignoreVisibility=true
98
focused_on_node: "org.truffleruby.language.control.SequenceNode"
109
ruby: |

spec/truffle/parsing/fixtures/operators/+=/reference_assignment_with_explicit_self_receiver.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ description: "Assign a referenced element with explicit self receiver (self[a] +
33
notes: >
44
Method call when receiver is `self` means a private or protected method could be successfully called.
55
6-
In AST it's represented with RubyCallNode's field dispatchConfig.
7-
`dispatchConfig = PRIVATE` means a method visibility is ignored.
6+
In AST it's represented with method call parameter `ignoreVisibility=true`.
87
yarp_specific: true # don't put self into a local variable and fixed call node and set ignoreVisibility=true
98
focused_on_node: "org.truffleruby.language.control.SequenceNode"
109
ruby: |

spec/truffle/parsing/fixtures/operators/||=/reference_assignment_with_explicit_self_receiver.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ description: "Assign an referenced element with explicit self receiver (self[a]
33
notes: >
44
Method call when receiver is `self` means a private or protected method could be successfully called.
55
6-
In AST it's represented with RubyCallNode's field dispatchConfig.
7-
`dispatchConfig = PRIVATE` means a method visibility is ignored.
6+
In AST it's represented with method call parameter `ignoreVisibility=true`.
87
yarp_specific: true # don't put self into a local variable and fixed call node and set ignoreVisibility=true
98
focused_on_node: "org.truffleruby.language.control.SequenceNode"
109
ruby: |

0 commit comments

Comments
 (0)