Skip to content

Commit f151b1f

Browse files
eregonandrykonchin
authored andcommitted
Fix incorrectly creating (0,0) SourceSections for getSourceSection(Nodes.Node)
1 parent 0978735 commit f151b1f

18 files changed

+22
-19
lines changed

spec/truffle/parsing/fixtures/END.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ast: |
9090
attributes:
9191
flags = 12
9292
sourceCharIndex = 0
93-
sourceLength = 0
93+
sourceLength = -1
9494
children:
9595
body = [
9696
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/multi_assignment/with_multiple_variables.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/multi_assignment/with_nested_multi_assignment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_splat_operator_and_following_variables.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_variables_and_implicit_rest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_variables_and_splat_operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/multi_assignment/with_splat_operator_and_following_variables.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/with_attribute_assignment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/with_class_variable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

spec/truffle/parsing/fixtures/for/with_constant.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ast: |
119119
attributes:
120120
flags = 12
121121
sourceCharIndex = 0
122-
sourceLength = 0
122+
sourceLength = -1
123123
children:
124124
body = [
125125
WriteLocalVariableNode

0 commit comments

Comments
 (0)