-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ideas for a nicer Ruby API on nodes #1296
Labels
enhancement
New feature or request
Comments
eregon
added a commit
to eregon/yarp
that referenced
this issue
Aug 27, 2023
* `constant_id` and `operator_id` are confusing. * See ruby#1296
|
matzbot
pushed a commit
to ruby/ruby
that referenced
this issue
Aug 27, 2023
* `constant_id` and `operator_id` are confusing. * See ruby/prism#1296 ruby/prism@09d0a144df
This was referenced Sep 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LiteralNode
superclass or included module in those, and that would guarantee avalue
method which returns the literal value -> A superclass/module/interface/flag for static literals #1531node.name
returns a Symbol for CallNode. Maybename
fields in general should always be Symbols? -> Some type: string fields should be type: constant #1530node.constant_id
is quite weird to access the local variable name of a LocalVariableReadNode (and other *ReadNode).node.name
would be nice. DONEnode.name
does exist but returns a String and not Symbol, so that's extra confusing. DONEFrom #1291
The text was updated successfully, but these errors were encountered: