Skip to content

Commit 7f060ba

Browse files
Sort ErrorRecoveryNode alphabetically
1 parent c077b32 commit 7f060ba

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,13 @@ nodes:
24172417
^^^^^^
24182418
bar
24192419
end
2420+
- name: ErrorRecoveryNode
2421+
fields:
2422+
- name: child
2423+
type: node?
2424+
kind: Node
2425+
comment: |
2426+
Represents a node that is either missing or unexpected and results in a syntax error.
24202427
- name: FalseNode
24212428
comment: |
24222429
Represents the use of the literal `false` keyword.
@@ -3672,13 +3679,6 @@ nodes:
36723679
36733680
/(?<foo>bar)/ =~ baz
36743681
^^^^^^^^^^^^^^^^^^^^
3675-
- name: ErrorRecoveryNode
3676-
fields:
3677-
- name: child
3678-
type: node?
3679-
kind: Node
3680-
comment: |
3681-
Represents a node that is either missing or unexpected and results in a syntax error.
36823682
- name: ModuleNode
36833683
fields:
36843684
- name: locals

templates/lib/prism/dsl.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module Prism
127127
# The default node that gets attached to nodes if no node is specified for a
128128
# required node field.
129129
def default_node(source, location)
130-
ErrorRecoveryNode.new(source, -1, location, 0)
130+
ErrorRecoveryNode.new(source, -1, location, 0, nil)
131131
end
132132
end
133133
end

0 commit comments

Comments
 (0)