Skip to content

Commit 5ace708

Browse files
committed
Remove yarp_specific attribute in parsing YAML fixtures
1 parent ca03bdf commit 5ace708

File tree

102 files changed

+1
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1
-125
lines changed

spec/truffle/parsing/fixtures/END.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ subject: "END block"
22
description: "END { ... }"
33
notes: >
44
Is translated into a `Truffle::KernelOperations.at_exit(false) { ... }` call.
5-
yarp_specific: true # don't optimize reading KernelOperations constant
6-
# with TruffleKernelOperationsModuleLiteralNode
75
focused_on_node: "org.truffleruby.language.control.OnceNode"
86
ruby: |
97
END {

spec/truffle/parsing/fixtures/array/array_with_splat_operator_and_following_elements.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
subject: "Array"
22
description: "Array with splat operator and following elements ([*a, b, c])"
3-
yarp_specific: true # Removed excessive SplatCastNodeGen:
4-
# SplatCastNodeGen(UninitialisedArrayLiteralNode) -> UninitialisedArrayLiteralNode
53
focused_on_node: "org.truffleruby.language.control.SequenceNode"
64
ruby: |
75
[*foo, 1, 2]

spec/truffle/parsing/fixtures/block/argument_descriptors/with_implicit_rest_parameter.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ subject: "Block"
22
description: "Argument descriptors / with implicit rest parameter (|a,|)"
33
notes: >
44
Implicit rest parameter should be ignored (there is no 'type=anonrest' descriptor).
5-
yarp_specific: true # there is no declaration of '*` local variable, don't save implicit rest parameter into local variable
65
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
76
ruby: |
87
proc do |a,|

spec/truffle/parsing/fixtures/block/argument_descriptors/with_optional_positional_parameters.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ notes: >
77
- ArgumentDescriptor(name = c, type = opt)
88
99
So the optional positional arguments are described as `opt` variables.
10-
yarp_specific: true # use ReadBlockOptionalArgumentFromArrayNode for optional parameters at destructuring single Array argument
1110
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
1211
ruby: |
1312
proc do |a, b=42, c=100500|

spec/truffle/parsing/fixtures/block/argument_descriptors/with_splat_operator.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ notes: >
99
- ArgumentDescriptor(name = f, type = req)
1010
1111
So the * operator is described as `rest` variable.
12-
yarp_specific: true # destructuring of a single Array argument was optimized
1312
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
1413
ruby: |
1514
proc do |a, b, *c, d, f|

spec/truffle/parsing/fixtures/block/argument_descriptors/with_splat_operator_without_name.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ notes: >
99
- ArgumentDescriptor(name = f, type = req)
1010
1111
So the * operator without variable name is described as `anonrest` variable.
12-
yarp_specific: true # destructuring of a single Array argument was optimized,
13-
# different order of parameter names in FrameDescriptor (:%unnamed_rest is shifted)
1412
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
1513
ruby: |
1614
proc do |a, b, *, d, f|

spec/truffle/parsing/fixtures/block/arity/with_implicit_rest_parameter.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ notes: >
66
Arity's attributes:
77
- hasRest = true,
88
- isImplicitRest = true
9-
yarp_specific: true # there is no declaration of '*` local variable, don't save implicit rest parameter into local variable
109
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
1110
ruby: |
1211
proc do |a,|

spec/truffle/parsing/fixtures/block/arity/with_optional_positional_parameters.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ notes: >
1111
- hasKeywordsRest=false
1212
1313
So the optional positional parameters are reflected in the `optional=2` attribute.
14-
yarp_specific: true # use ReadBlockOptionalArgumentFromArrayNode for optional parameters at destructuring single Array argument
1514
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
1615
ruby: |
1716
proc do |a, b=42, c=100500|

spec/truffle/parsing/fixtures/block/arity/with_splat_operator.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ notes: >
1212
1313
So all the positional parameters are reflected in the `preRequired=2`, `hasRest=true`
1414
and `postRequired=2` attributes.
15-
yarp_specific: true # destructuring of a single Array argument was optimized
1615
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
1716
ruby: |
1817
proc do |a, b, *c, d, f|

spec/truffle/parsing/fixtures/block/destructuring_array_argument/destructure/when_no_rest_positional_parameter_but_multiple_optional_ones.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ notes: >
3939
4040
ordinal parameters processing without destructing # else branch
4141
)
42-
yarp_specific: true # use ReadBlockOptionalArgumentFromArrayNode for optional parameters at destructuring single Array argument
4342
focused_on_node: "org.truffleruby.language.methods.BlockDefinitionNode"
4443
ruby: |
4544
proc do |foo = 42, bar = 100500|

0 commit comments

Comments
 (0)