Skip to content
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

Make sure to allow directly evaluating Declarations that depend on a parent relationship in most cases #9

Open
wessberg opened this issue Dec 30, 2018 · 0 comments

Comments

@wessberg
Copy link
Owner

Imagine this:

class Foo {
   someMethod () {}
}

It is now possible to directly evaluate someMethod and retrieve it as a function.
This is one of many examples of nodeWithArgument relationships where the argument is an IndexLiteral.

Other examples include EnumMember, CaseClause, etc. Even if these really do depend on their parents, providing such nodes directly to evaluate() should still resolve to something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant