diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-12 02:00:31 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-12 02:00:31 +0200 |
| commit | a2f3b5ddb1bb77b2736150d57ec6eee2bcfd0e55 (patch) | |
| tree | 020399d3bb094cf10191b062f0c4bd6b568db895 /src/server/analysis.odin | |
| parent | 12a1db1e284e4ce2af9a51bb60f9817e76c1a481 (diff) | |
Add custom hover map
Diffstat (limited to 'src/server/analysis.odin')
| -rw-r--r-- | src/server/analysis.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 09564ba..62b3da9 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -31,6 +31,7 @@ DocumentPositionContext :: struct { function: ^ast.Proc_Lit, //used to help with type resolving in function scope selector: ^ast.Expr, //used for completion identifier: ^ast.Node, + implicit_context: ^ast.Implicit, tag: ^ast.Node, field: ^ast.Expr, //used for completion call: ^ast.Expr, //used for signature help @@ -3213,6 +3214,9 @@ get_document_position_node :: proc(node: ^ast.Node, position_context: ^DocumentP case ^Ident: position_context.identifier = node case ^Implicit: + if n.tok.text == "context" { + position_context.implicit_context = n + } case ^Undef: case ^Basic_Lit: case ^Ellipsis: |