Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2626,11 +2626,18 @@ nodes:
- name: block
type: node?
kind: BlockNode
comment: |
All other arguments are forwarded as normal, except the original block is replaced with the new block.
comment: |
Represents the use of the `super` keyword without parentheses or arguments.
Represents the use of the `super` keyword without parentheses or arguments, but which might have a block.

super
^^^^^

super { 123 }
^^^^^^^^^^^^^

If it has any other arguments, it would be a `SuperNode` instead.
- name: GlobalVariableAndWriteNode
fields:
- name: name
Expand Down Expand Up @@ -4506,6 +4513,7 @@ nodes:
- name: arguments
type: node?
kind: ArgumentsNode
comment: "Can be only `nil` when there are empty parentheses, like `super()`."
- name: rparen_loc
type: location?
- name: block
Expand All @@ -4521,6 +4529,8 @@ nodes:

super foo, bar
^^^^^^^^^^^^^^

If no arguments are provided (except for a block), it would be a `ForwardingSuperNode` instead.
- name: SymbolNode
flags: SymbolFlags
fields:
Expand Down