[ruby/prism] Document ClassVariableReadNode fields

https://github.com/ruby/prism/commit/23ed81dd15
This commit is contained in:
Matthew Healy 2024-01-08 21:03:47 +01:00 коммит произвёл git
Родитель 88810f7109
Коммит 9031fd08dc
1 изменённых файлов: 12 добавлений и 0 удалений

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

@ -1037,6 +1037,18 @@ nodes:
fields:
- name: name
type: constant
comment: |
The name of the class variable, including the leading `@@`. Variable
names begin with an underscore, alphabetical, or non-ASCII character,
followed by arbitrarily many underscores, alphanumeric or non-ASCII
characters. The exact definitions of "alphabetical" and "alphanumeric"
are encoding-dependent.
@@abc # name `:@@abc`
@@_test # name `:@@_test`
@@🍔 # name `:@@🍔`
comment: |
Represents referencing a class variable.