Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Goto Definition/Reference support #39

@idleberg

Description

@idleberg

This package currently lacks Goto Definition / Goto Reference support. As far as I know, there are at least four scenarios where this makes sense:

1. Functions

# Definition
Function someFunction
FunctionEnd

# Reference
Call someFunction

2. Macros

# Definition
!macro someMacro
!macroend

# Reference
!insertmacro someMacro

3. Defines

# Definition
!define VERSION "1.2.3"

# Reference
DetailPrint "This is version ${VERSION}"

4. Variables

# Definition
Var "someVar"

# Reference
DetailPrint "Printing $someVar"

Note: When variables are declared, no value is assigned. Hence, the benefit Goto Definition might be limited

Example:

# Definition
Var "someVar"

# Value assignment
StrCpy $someVar "World"

# Reference
DetailPrint "Hello $someVar"

# Value re-assignment
StrCpy $someVar "John Doe"

All PRs to add Goto Definition / Goto Reference support are appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions