зеркало из https://github.com/github/ruby.git
[ruby/prism] Document ClassVariableReadNode fields
https://github.com/ruby/prism/commit/23ed81dd15
This commit is contained in:
Родитель
88810f7109
Коммит
9031fd08dc
|
@ -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.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче