aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-03-19 20:44:29 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-03-19 20:44:29 +0100
commitedcf80026173f9d20ca2df6f574640302bed4bdf (patch)
tree0954d648e812151403ce133f5b956219d455a3cb /src/index
parent06b76ac1ee9d8f607d944ce9757ebe40adefcf2a (diff)
Prepare for rename
Diffstat (limited to 'src/index')
-rw-r--r--src/index/symbol.odin7
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,
}