aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2023-09-17 18:58:40 +0200
committerDanielGavin <danielgavin5@hotmail.com>2023-09-17 18:58:40 +0200
commit89ebef892b36e12669ea364b3454b7ec03057695 (patch)
treef425c8c0dbdb6ca9595ea84a5c3bb104a4a129da
parent9575a3e076ab3d8df98d5efc6902ac2dd54edca0 (diff)
Typo
-rw-r--r--src/common/ast.odin10
-rw-r--r--tests/hover_test.odin2
2 files changed, 7 insertions, 5 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin
index 901957c..df78041 100644
--- a/src/common/ast.odin
+++ b/src/common/ast.odin
@@ -1,11 +1,11 @@
package common
-import "core:odin/ast"
+import "core:fmt"
import "core:log"
import "core:mem"
-import "core:fmt"
-import "core:strings"
+import "core:odin/ast"
import path "core:path/slashpath"
+import "core:strings"
keyword_map: map[string]bool = {
"typeid" = true,
@@ -922,7 +922,6 @@ build_string_node :: proc(
builder: ^strings.Builder,
remove_pointers: bool,
) {
-
using ast
if node == nil {
@@ -1093,7 +1092,10 @@ build_string_node :: proc(
build_string(n.base_type, builder, remove_pointers)
build_string(n.fields, builder, remove_pointers)
case ^Bit_Set_Type:
+ strings.write_string(builder, "bit_set")
+ strings.write_string(builder, "[")
build_string(n.elem, builder, remove_pointers)
+ strings.write_string(builder, "]")
build_string(n.underlying, builder, remove_pointers)
case ^Map_Type:
strings.write_string(builder, "map")
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index fd24603..11c05de 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -183,5 +183,5 @@ ast_hover_on_bitset_variable :: proc(t: ^testing.T) {
`,
}
- test.expect_hover(&t, &source, "test.derived_bit_set: bit_set[Foo]")
+ test.expect_hover(t, &source, "test.derived_bit_set: bit_set[Foo]")
}