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

Extracting fully qualified names from tokens #57

Open
rcx opened this issue Jun 25, 2018 · 0 comments
Open

Extracting fully qualified names from tokens #57

rcx opened this issue Jun 25, 2018 · 0 comments
Milestone

Comments

@rcx
Copy link
Member

rcx commented Jun 25, 2018

Consider this.
this.getContentPane().setLayout(gridBagLayout);
suppose the user has setLayout selected, how do we know which class the method belongs to? we need to look at return type of this.getContentPane(). so looks like we'd need to walk classtree.

another tricky case is:

object
.method()

we would need to look at the previous line. so keep that in mind.

Yet another tricky case is a constructor. That's a special one since you'd be looking for <init> instead.

there are several types of identifiers:

  • local variables
  • field names from code or from declaration
  • method names from code or from declaration
  • class names from code or from declaration

so keep these in mind.

@rcx rcx added this to the 1.1.0 milestone Jun 25, 2018
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