diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-03-19 20:44:29 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-03-19 20:44:29 +0100 |
| commit | edcf80026173f9d20ca2df6f574640302bed4bdf (patch) | |
| tree | 0954d648e812151403ce133f5b956219d455a3cb /src/index | |
| parent | 06b76ac1ee9d8f607d944ce9757ebe40adefcf2a (diff) | |
Prepare for rename
Diffstat (limited to 'src/index')
| -rw-r--r-- | src/index/symbol.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/index/symbol.odin b/src/index/symbol.odin index d5bba05..312264a 100644 --- a/src/index/symbol.odin +++ b/src/index/symbol.odin @@ -10,6 +10,11 @@ import "core:slice" import "shared:common" +SymbolAndNode :: struct { + symbol: Symbol, + node: ^ast.Node, +} + SymbolStructValue :: struct { names: []string, types: []^ast.Expr, @@ -118,7 +123,7 @@ Symbol :: struct { signature: string, //type signature type: SymbolType, value: SymbolValue, - references: []common.Location, //all the places in the project that it's being referenced + references: []common.Range, //all the places in the project that it's being referenced pointers: int, //how many `^` are applied to the symbol flags: SymbolFlags, } |