You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/truffle/parsing/fixtures/block/destructuring_array_argument/when_keyword_arguments_present_and_should_destructure.yaml
+8-12Lines changed: 8 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,10 @@ notes: >
4
4
It handles keyword arguments as usually.
5
5
A simplified AST for array argument destructuring:
6
6
7
-
(WriteLocalVariableNode frameSlot = 3
8
-
(ReadKeywordArgumentNodeGen name = :c))
7
+
(ReadKeywordArgumentNodeGen name = :c)
8
+
yarp_specific: true # there is optimization in destructuring a single array argument
9
+
# to return ReadKeywordArgumentNodeGen for required keyword parameter
10
+
# instead of (WriteLocalVariableNode (ReadKeywordArgumentNodeGen))
0 commit comments