Erlang Plugin for NetBeans in Scala#9: Instant Rename and Go to Declaration
It seems I'm the only one who is committing to hg.netbeans.org/main/contrib these days. Anyway.
Implementing Instant Rename and Go to Declaration is not difficult with AstDfn/AstRef/AstScope. Here is the code:
- Instant Rename is implemented by ErlangInstantRenamer.scala
- Go to Declaration is implemented by ErlangDeclarationFinder.scala
override
def getInstantRenamer = new ErlangInstantRenamer
override
def getDeclarationFinder = new ErlangDeclarationFinder
Only local function definitions can be traveled to at this time. To jump to remote function definitions, I have to implement an indexer first.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/blog_logo.png)
rss
Comments
No comments.