Skip to content

Commit e6ae2bf

Browse files
committed
Adapt flags in fixtures, all these cases are correct
* These are correct in YARP, consistent with CRuby bytecode and wrong in JRuby parser.
1 parent 7489a46 commit e6ae2bf

8 files changed

+19
-19
lines changed

spec/truffle/parsing/fixtures/aliases/with_dynamic_symbols_and_interpolation_arbitrary_expression.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ast: |
3939
valueNode_ =
4040
IntegerFixnumLiteralNode
4141
attributes:
42-
flags = 1
42+
flags = 0
4343
value = 42
4444
ToSNodeGen
4545
children:

spec/truffle/parsing/fixtures/self.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ ruby: |
66
ast: |
77
SelfNode
88
attributes:
9-
flags = 0
9+
flags = 1

spec/truffle/parsing/fixtures/strings/with_interpolation_arbitrary_expression.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ast: |
88
attributes:
99
emptyTString = ""
1010
encoding = UTF-8
11-
flags = 1
11+
flags = 0
1212
children:
1313
children = [
1414
ToSNodeGen
@@ -17,14 +17,14 @@ ast: |
1717
StringLiteralNode
1818
attributes:
1919
encoding = UTF-8
20-
flags = 0
20+
flags = 1
2121
tstring = ab
2222
ToSNodeGen
2323
children:
2424
valueNode_ =
2525
IntegerFixnumLiteralNode
2626
attributes:
27-
flags = 1
27+
flags = 0
2828
value = 123
2929
ToSNodeGen
3030
children:

spec/truffle/parsing/fixtures/strings/with_interpolation_sequence_of_expressions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ast: |
88
attributes:
99
emptyTString = ""
1010
encoding = UTF-8
11-
flags = 1
11+
flags = 0
1212
children:
1313
children = [
1414
ToSNodeGen
@@ -17,7 +17,7 @@ ast: |
1717
StringLiteralNode
1818
attributes:
1919
encoding = UTF-8
20-
flags = 0
20+
flags = 1
2121
tstring = ab
2222
ToSNodeGen
2323
children:
@@ -29,11 +29,11 @@ ast: |
2929
body = [
3030
IntegerFixnumLiteralNode
3131
attributes:
32-
flags = 1
32+
flags = 0
3333
value = 42
3434
IntegerFixnumLiteralNode
3535
attributes:
36-
flags = 1
36+
flags = 0
3737
value = 100500
3838
]
3939
ToSNodeGen

spec/truffle/parsing/fixtures/strings/with_interpolation_without_expression.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ast: |
1111
attributes:
1212
emptyTString = ""
1313
encoding = UTF-8
14-
flags = 1
14+
flags = 0
1515
children:
1616
children = [
1717
ToSNodeGen
@@ -20,7 +20,7 @@ ast: |
2020
StringLiteralNode
2121
attributes:
2222
encoding = UTF-8
23-
flags = 0
23+
flags = 1
2424
tstring = ab
2525
ToSNodeGen
2626
children:

spec/truffle/parsing/fixtures/symbols/with_interpolation_arbitrary_expression.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ruby: |
66
ast: |
77
StringToSymbolNodeGen
88
attributes:
9-
flags = 1
9+
flags = 0
1010
children:
1111
stringNode_ =
1212
InterpolatedStringNode
@@ -22,14 +22,14 @@ ast: |
2222
StringLiteralNode
2323
attributes:
2424
encoding = UTF-8
25-
flags = 0
25+
flags = 1
2626
tstring = ab
2727
ToSNodeGen
2828
children:
2929
valueNode_ =
3030
IntegerFixnumLiteralNode
3131
attributes:
32-
flags = 1
32+
flags = 0
3333
value = 42
3434
ToSNodeGen
3535
children:

spec/truffle/parsing/fixtures/symbols/with_interpolation_sequence_of_expressions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ruby: |
66
ast: |
77
StringToSymbolNodeGen
88
attributes:
9-
flags = 1
9+
flags = 0
1010
children:
1111
stringNode_ =
1212
InterpolatedStringNode
@@ -22,7 +22,7 @@ ast: |
2222
StringLiteralNode
2323
attributes:
2424
encoding = UTF-8
25-
flags = 0
25+
flags = 1
2626
tstring = ab
2727
ToSNodeGen
2828
children:
@@ -34,11 +34,11 @@ ast: |
3434
body = [
3535
IntegerFixnumLiteralNode
3636
attributes:
37-
flags = 1
37+
flags = 0
3838
value = 42
3939
IntegerFixnumLiteralNode
4040
attributes:
41-
flags = 1
41+
flags = 0
4242
value = 100500
4343
]
4444
ToSNodeGen

spec/truffle/parsing/fixtures/undef/with_dynamic_symbol_and_interpolation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ast: |
3434
valueNode_ =
3535
IntegerFixnumLiteralNode
3636
attributes:
37-
flags = 1
37+
flags = 0
3838
value = 1
3939
]
4040
]

0 commit comments

Comments
 (0)