Skip to content

Commit 319e302

Browse files
committed
Add flags back
1 parent 08546e2 commit 319e302

File tree

387 files changed

+4370
-37
lines changed

Some content is hidden

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

387 files changed

+4370
-37
lines changed

spec/truffle/parsing/fixtures/BEGIN.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,38 @@ ruby: |
88
}
99
ast: |
1010
SequenceNode
11+
attributes:
12+
flags = 12
1113
children:
1214
body = [
1315
EmitWarningsNode
1416
attributes:
17+
flags = 0
1518
warnings = org.truffleruby.parser.RubyDeferredWarnings@...
1619
WriteLocalVariableNode
1720
attributes:
21+
flags = 0
1822
frameSlot = 0
1923
children:
2024
valueNode =
2125
ProfileArgumentNodeGen
26+
attributes:
27+
flags = 0
2228
children:
2329
childNode_ =
2430
ReadSelfNode
31+
attributes:
32+
flags = 0
2533
IntegerFixnumLiteralNode
2634
attributes:
35+
flags = 1
2736
value = 1
2837
IntegerFixnumLiteralNode
2938
attributes:
39+
flags = 1
3040
value = 2
3141
NilLiteralNode
3242
attributes:
43+
flags = 0
3344
isImplicit = false
3445
]

spec/truffle/parsing/fixtures/END.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ ruby: |
1111
ast: |
1212
OnceNode
1313
attributes:
14+
flags = 0
1415
holder = org.truffleruby.language.control.OnceNode$Holder@...
1516
children:
1617
child =
1718
CatchBreakNode
1819
attributes:
1920
breakID = org.truffleruby.language.control.BreakID@...
21+
flags = 0
2022
isWhile = false
2123
children:
2224
body =
2325
FrameOnStackNode
2426
attributes:
27+
flags = 0
2528
frameOnStackMarkerSlot = 2
2629
children:
2730
child =
@@ -30,6 +33,7 @@ ast: |
3033
descriptor = org.truffleruby.language.arguments.EmptyArgumentsDescriptor@...
3134
dispatchConfig = PROTECTED
3235
emptyKeywordsProfile = false
36+
flags = 0
3337
isAttrAssign = false
3438
isSafeNavigation = false
3539
isSplatted = false
@@ -43,13 +47,15 @@ ast: |
4347
arguments = [
4448
BooleanLiteralNode
4549
attributes:
50+
flags = 0
4651
value = false
4752
]
4853
block =
4954
BlockDefinitionNode
5055
attributes:
5156
breakID = org.truffleruby.language.control.BreakID@...
5257
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
58+
flags = 0
5359
frameOnStackMarkerSlot = 2
5460
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=5, characters=END {), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [])
5561
type = PROC
@@ -74,23 +80,34 @@ ast: |
7480
children:
7581
body =
7682
SequenceNode
83+
attributes:
84+
flags = 12
7785
children:
7886
body = [
7987
WriteLocalVariableNode
8088
attributes:
89+
flags = 0
8190
frameSlot = 0
8291
children:
8392
valueNode =
8493
ProfileArgumentNodeGen
94+
attributes:
95+
flags = 0
8596
children:
8697
childNode_ =
8798
ReadSelfNode
99+
attributes:
100+
flags = 0
88101
IntegerFixnumLiteralNode
89102
attributes:
103+
flags = 1
90104
value = 1
91105
IntegerFixnumLiteralNode
92106
attributes:
107+
flags = 1
93108
value = 2
94109
]
95110
receiver =
96-
TruffleKernelOperationsModuleLiteralNode
111+
TruffleKernelOperationsModuleLiteralNode
112+
attributes:
113+
flags = 0

spec/truffle/parsing/fixtures/__ENCODING__.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ ruby: |
66
ast: |
77
ObjectLiteralNode
88
attributes:
9+
flags = 1
910
object = UTF-8

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ ruby: |
55
alias :"a" :"b"
66
ast: |
77
ModuleNodes$AliasKeywordNode
8+
attributes:
9+
flags = 1
810
children:
911
newName =
1012
ObjectLiteralNode
1113
attributes:
14+
flags = 0
1215
object = :a
1316
oldName =
1417
ObjectLiteralNode
1518
attributes:
19+
flags = 0
1620
object = :b

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@ ruby: |
55
alias :"a" :"ab#{ 42 }cd"
66
ast: |
77
ModuleNodes$AliasKeywordNode
8+
attributes:
9+
flags = 1
810
children:
911
newName =
1012
ObjectLiteralNode
1113
attributes:
14+
flags = 0
1215
object = :a
1316
oldName =
1417
StringToSymbolNodeGen
18+
attributes:
19+
flags = 0
1520
children:
1621
stringNode_ =
1722
InterpolatedStringNode
1823
attributes:
1924
emptyTString = ""
2025
encoding = UTF-8
26+
flags = 0
2127
children:
2228
children = [
2329
ToSNodeGen
@@ -26,18 +32,21 @@ ast: |
2632
StringLiteralNode
2733
attributes:
2834
encoding = UTF-8
35+
flags = 0
2936
tstring = ab
3037
ToSNodeGen
3138
children:
3239
valueNode_ =
3340
IntegerFixnumLiteralNode
3441
attributes:
42+
flags = 1
3543
value = 42
3644
ToSNodeGen
3745
children:
3846
valueNode_ =
3947
StringLiteralNode
4048
attributes:
4149
encoding = UTF-8
50+
flags = 0
4251
tstring = cd
4352
]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ ruby: |
66
ast: |
77
AliasGlobalVarNode
88
attributes:
9+
flags = 1
910
newName = "$a"
1011
oldName = "$b"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ ruby: |
55
alias a b
66
ast: |
77
ModuleNodes$AliasKeywordNode
8+
attributes:
9+
flags = 1
810
children:
911
newName =
1012
ObjectLiteralNode
1113
attributes:
14+
flags = 0
1215
object = :a
1316
oldName =
1417
ObjectLiteralNode
1518
attributes:
19+
flags = 0
1620
object = :b

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ ruby: |
55
alias :a :b
66
ast: |
77
ModuleNodes$AliasKeywordNode
8+
attributes:
9+
flags = 1
810
children:
911
newName =
1012
ObjectLiteralNode
1113
attributes:
14+
flags = 0
1215
object = :a
1316
oldName =
1417
ObjectLiteralNode
1518
attributes:
19+
flags = 0
1620
object = :b

spec/truffle/parsing/fixtures/and.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ ruby: |
55
1 and 2
66
ast: |
77
AndNodeGen
8+
attributes:
9+
flags = 1
810
children:
911
left =
1012
IntegerFixnumLiteralNode
1113
attributes:
14+
flags = 0
1215
value = 1
1316
right =
1417
IntegerFixnumLiteralNode
1518
attributes:
19+
flags = 0
1620
value = 2

spec/truffle/parsing/fixtures/array/%I_interpolated_array.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ ruby: |
66
ast: |
77
ArrayLiteralNode$UninitialisedArrayLiteralNode
88
attributes:
9+
flags = 1
910
language = org.truffleruby.RubyLanguage@...
1011
children:
1112
values = [
1213
ObjectLiteralNode
1314
attributes:
15+
flags = 0
1416
object = :foo
1517
ObjectLiteralNode
1618
attributes:
19+
flags = 0
1720
object = :bar
1821
]

0 commit comments

Comments
 (0)