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:

And register them in :

    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.

Comments

No comments.