diff options
| author | Cory Hutchison <cory@mutecipher.com> | 2024-01-03 20:08:59 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-04-23 13:22:05 +0000 |
| commit | 87b829aa942089c7614470184f02aedec9d72ec9 (patch) | |
| tree | 384208289fd71b4c60f60b9e85eb06ee8261c64a | |
| parent | 5fd08b506ca72bf496e36e44b98e588941e02721 (diff) | |
[ruby/prism] Document the `AliasGlobalVariableNode` fields
https://github.com/ruby/prism/commit/35bc711069
| -rw-r--r-- | prism/config.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml index e8b4f4ec64..d7440149db 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -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. |
