google / intellij-gn-plugin

BSD 3-Clause "New" or "Revised" License
13 stars 11 forks source link

Variable navigation #4

Open brunowonka opened 4 years ago

brunowonka commented 4 years ago

Implement reference resolution for variables, so that ctrl+click navigates to the point where that variable was first introduced.

Question remains whether we navigate to first declaration in block or first use in rule, like:

template("foo") {
   group(invoker.name) {
      #...
   }
}

foo("bar") {
   # Should name reference the usage in the foo template declaration above?
   name = "a"
}