Skip to content

Commit 965a621

Browse files
eregonandrykonchin
authored andcommitted
Set newlines flags from JRuby parser
1 parent f19ee81 commit 965a621

File tree

74 files changed

+131
-131
lines changed

Some content is hidden

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

74 files changed

+131
-131
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 = 0
42+
flags = 1
4343
value = 42
4444
ToSNodeGen
4545
children:

spec/truffle/parsing/fixtures/break/with_argument.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ast: |
99
BreakNode
1010
attributes:
1111
breakID = org.truffleruby.language.control.BreakID@...
12-
flags = 0
12+
flags = 1
1313
ignoreMarker = true
1414
children:
1515
child =

spec/truffle/parsing/fixtures/break/with_multiple_arguments.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ast: |
99
BreakNode
1010
attributes:
1111
breakID = org.truffleruby.language.control.BreakID@...
12-
flags = 0
12+
flags = 1
1313
ignoreMarker = true
1414
children:
1515
child =

spec/truffle/parsing/fixtures/break/with_splat_operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ast: |
99
BreakNode
1010
attributes:
1111
breakID = org.truffleruby.language.control.BreakID@...
12-
flags = 0
12+
flags = 1
1313
ignoreMarker = true
1414
children:
1515
child =

spec/truffle/parsing/fixtures/break/without_argument.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ast: |
1111
BreakNode
1212
attributes:
1313
breakID = org.truffleruby.language.control.BreakID@...
14-
flags = 0
14+
flags = 1
1515
ignoreMarker = true
1616
children:
1717
child =

spec/truffle/parsing/fixtures/classes/class_with_not_empty_body.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ ast: |
7272
body = [
7373
IntegerFixnumLiteralNode
7474
attributes:
75-
flags = 0
75+
flags = 1
7676
value = 1
7777
IntegerFixnumLiteralNode
7878
attributes:
79-
flags = 0
79+
flags = 1
8080
value = 2
8181
]
8282
]

spec/truffle/parsing/fixtures/ensure/in_begin_end_block.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ast: |
4141
descriptor = org.truffleruby.language.arguments.EmptyArgumentsDescriptor@...
4242
dispatchConfig = PRIVATE
4343
emptyKeywordsProfile = false
44-
flags = 0
44+
flags = 1
4545
isAttrAssign = false
4646
isSafeNavigation = false
4747
isSplatted = false
@@ -60,6 +60,6 @@ ast: |
6060
StringLiteralNode
6161
attributes:
6262
encoding = UTF-8
63-
flags = 0
63+
flags = 1
6464
tstring = foo
6565
]

spec/truffle/parsing/fixtures/ensure/in_module.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ast: |
7878
descriptor = org.truffleruby.language.arguments.EmptyArgumentsDescriptor@...
7979
dispatchConfig = PRIVATE
8080
emptyKeywordsProfile = false
81-
flags = 0
81+
flags = 1
8282
isAttrAssign = false
8383
isSafeNavigation = false
8484
isSplatted = false
@@ -97,6 +97,6 @@ ast: |
9797
StringLiteralNode
9898
attributes:
9999
encoding = UTF-8
100-
flags = 0
100+
flags = 1
101101
tstring = foo
102102
]

spec/truffle/parsing/fixtures/ensure/with_empty_body.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ ast: |
3131
StringLiteralNode
3232
attributes:
3333
encoding = UTF-8
34-
flags = 0
34+
flags = 1
3535
tstring = foo
3636
]

spec/truffle/parsing/fixtures/hashes/literal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ruby: |
1111
ast: |
1212
PackedHashStoreLibraryFactory$SmallHashLiteralNodeGen
1313
attributes:
14-
flags = 1
14+
flags = 0
1515
children:
1616
keyValues = [
1717
ObjectLiteralNode

spec/truffle/parsing/fixtures/hashes/with_=>_syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ruby: |
66
ast: |
77
PackedHashStoreLibraryFactory$SmallHashLiteralNodeGen
88
attributes:
9-
flags = 1
9+
flags = 0
1010
children:
1111
keyValues = [
1212
IntegerFixnumLiteralNode

spec/truffle/parsing/fixtures/hashes/with_double_splat_operator/with_double_splat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ruby: |
88
ast: |
99
HashCastNodeGen$HashCastASTNodeGen
1010
attributes:
11-
flags = 1
11+
flags = 0
1212
children:
1313
childNode_ =
1414
RubyCallNode

spec/truffle/parsing/fixtures/hashes/with_string_key.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ruby: |
88
ast: |
99
PackedHashStoreLibraryFactory$SmallHashLiteralNodeGen
1010
attributes:
11-
flags = 1
11+
flags = 0
1212
children:
1313
keyValues = [
1414
FrozenStringLiteralNode

spec/truffle/parsing/fixtures/hashes/with_symbol_syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ruby: |
66
ast: |
77
PackedHashStoreLibraryFactory$SmallHashLiteralNodeGen
88
attributes:
9-
flags = 1
9+
flags = 0
1010
children:
1111
keyValues = [
1212
ObjectLiteralNode

spec/truffle/parsing/fixtures/hashes/with_symbol_syntax_when_dynamic_symbol.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ruby: |
66
ast: |
77
PackedHashStoreLibraryFactory$SmallHashLiteralNodeGen
88
attributes:
9-
flags = 1
9+
flags = 0
1010
children:
1111
keyValues = [
1212
ObjectLiteralNode

spec/truffle/parsing/fixtures/hashes/with_symbol_syntax_when_dynamic_symbol_and_interpolation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ruby: |
66
ast: |
77
PackedHashStoreLibraryFactory$SmallHashLiteralNodeGen
88
attributes:
9-
flags = 1
9+
flags = 0
1010
children:
1111
keyValues = [
1212
StringToSymbolNodeGen
@@ -34,7 +34,7 @@ ast: |
3434
valueNode_ =
3535
IntegerFixnumLiteralNode
3636
attributes:
37-
flags = 0
37+
flags = 1
3838
value = 100500
3939
]
4040
IntegerFixnumLiteralNode

spec/truffle/parsing/fixtures/local_variables/reading.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ ruby: |
99
ast: |
1010
ReadLocalVariableNode
1111
attributes:
12-
flags = 0
12+
flags = 1
1313
frameSlot = 2
1414
type = FRAME_LOCAL

spec/truffle/parsing/fixtures/modules/module_with_not_empty_body.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ ast: |
7272
body = [
7373
IntegerFixnumLiteralNode
7474
attributes:
75-
flags = 0
75+
flags = 1
7676
value = 1
7777
IntegerFixnumLiteralNode
7878
attributes:
79-
flags = 0
79+
flags = 1
8080
value = 2
8181
]
8282
]

spec/truffle/parsing/fixtures/next/with_argument.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ruby: |
1111
ast: |
1212
NextNode
1313
attributes:
14-
flags = 0
14+
flags = 1
1515
children:
1616
child =
1717
IntegerFixnumLiteralNode

spec/truffle/parsing/fixtures/next/with_multiple_arguments.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ruby: |
1111
ast: |
1212
NextNode
1313
attributes:
14-
flags = 0
14+
flags = 1
1515
children:
1616
child =
1717
ArrayLiteralNode$UninitialisedArrayLiteralNode

spec/truffle/parsing/fixtures/next/with_splat_operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ruby: |
1010
ast: |
1111
NextNode
1212
attributes:
13-
flags = 0
13+
flags = 1
1414
children:
1515
child =
1616
SplatCastNodeGen

spec/truffle/parsing/fixtures/next/without_argument.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ruby: |
1111
ast: |
1212
NextNode
1313
attributes:
14-
flags = 0
14+
flags = 1
1515
children:
1616
child =
1717
NilLiteralNode

spec/truffle/parsing/fixtures/redo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ ruby: |
1010
ast: |
1111
RedoNode
1212
attributes:
13-
flags = 0
13+
flags = 1

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_array.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ast: |
2626
rescueBody =
2727
ArrayLiteralNode$UninitialisedArrayLiteralNode
2828
attributes:
29-
flags = 0
29+
flags = 1
3030
language = org.truffleruby.RubyLanguage@...
3131
children:
3232
values = [
@@ -40,5 +40,5 @@ ast: |
4040
StringLiteralNode
4141
attributes:
4242
encoding = UTF-8
43-
flags = 0
43+
flags = 1
4444
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_constant.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ast: |
2626
rescueBody =
2727
ReadConstantWithLexicalScopeNode
2828
attributes:
29-
flags = 0
29+
flags = 1
3030
lexicalScope = :: Object
3131
name = "BAR"
3232
children:
@@ -42,5 +42,5 @@ ast: |
4242
StringLiteralNode
4343
attributes:
4444
encoding = UTF-8
45-
flags = 0
45+
flags = 1
4646
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_global_variable.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ast: |
2626
rescueBody =
2727
ReadGlobalVariableNodeGen
2828
attributes:
29-
flags = 0
29+
flags = 1
3030
name = "$bar"
3131
children:
3232
lookupGlobalVariableStorageNode =
@@ -39,5 +39,5 @@ ast: |
3939
StringLiteralNode
4040
attributes:
4141
encoding = UTF-8
42-
flags = 0
42+
flags = 1
4343
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_hash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ ast: |
4343
StringLiteralNode
4444
attributes:
4545
encoding = UTF-8
46-
flags = 0
46+
flags = 1
4747
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_method_call.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ast: |
2929
descriptor = org.truffleruby.language.arguments.EmptyArgumentsDescriptor@...
3030
dispatchConfig = PRIVATE
3131
emptyKeywordsProfile = false
32-
flags = 0
32+
flags = 1
3333
isAttrAssign = false
3434
isSafeNavigation = false
3535
isSplatted = false
@@ -49,5 +49,5 @@ ast: |
4949
StringLiteralNode
5050
attributes:
5151
encoding = UTF-8
52-
flags = 0
52+
flags = 1
5353
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_string_with_interpolation.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ast: |
2828
attributes:
2929
emptyTString = ""
3030
encoding = UTF-8
31-
flags = 0
31+
flags = 1
3232
children:
3333
children = [
3434
ToSNodeGen
@@ -44,7 +44,7 @@ ast: |
4444
valueNode_ =
4545
IntegerFixnumLiteralNode
4646
attributes:
47-
flags = 0
47+
flags = 1
4848
value = 42
4949
ToSNodeGen
5050
children:
@@ -60,5 +60,5 @@ ast: |
6060
StringLiteralNode
6161
attributes:
6262
encoding = UTF-8
63-
flags = 0
63+
flags = 1
6464
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/disabled/when_symbol_with_interpolation.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ast: |
2626
rescueBody =
2727
StringToSymbolNodeGen
2828
attributes:
29-
flags = 0
29+
flags = 1
3030
children:
3131
stringNode_ =
3232
InterpolatedStringNode
@@ -49,7 +49,7 @@ ast: |
4949
valueNode_ =
5050
IntegerFixnumLiteralNode
5151
attributes:
52-
flags = 0
52+
flags = 1
5353
value = 42
5454
ToSNodeGen
5555
children:
@@ -65,5 +65,5 @@ ast: |
6565
StringLiteralNode
6666
attributes:
6767
encoding = UTF-8
68-
flags = 0
68+
flags = 1
6969
tstring = foo

spec/truffle/parsing/fixtures/rescue/backtrace_optimization/enabled/when_class_variable.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ast: |
2626
rescueBody =
2727
ReadClassVariableNode
2828
attributes:
29-
flags = 0
29+
flags = 1
3030
name = "@@bar"
3131
children:
3232
lexicalScopeNode =
@@ -43,5 +43,5 @@ ast: |
4343
StringLiteralNode
4444
attributes:
4545
encoding = UTF-8
46-
flags = 0
46+
flags = 1
4747
tstring = foo

0 commit comments

Comments
 (0)