[ruby/prism] Document the `AliasGlobalVariableNode` fields

https://github.com/ruby/prism/commit/35bc711069
This commit is contained in:
Cory Hutchison 2024-01-03 20:08:59 -07:00 коммит произвёл git
Родитель 5fd08b506c
Коммит 87b829aa94
1 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -740,10 +740,25 @@ nodes:
fields:
- name: new_name
type: node
comment: |
Represents the new name of the global variable that can be used after aliasing. This can be either a global variable, a back reference, or a numbered reference.
alias $foo $bar
^^^^
- name: old_name
type: node
comment: |
Represents the old name of the global variable that could be used before aliasing. This can be either a global variable, a back reference, or a numbered reference.
alias $foo $bar
^^^^
- name: keyword_loc
type: location
comment: |
The location of the `alias` keyword.
alias $foo $bar
^^^^^
comment: |
Represents the use of the `alias` keyword to alias a global variable.