aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2023-07-26 20:45:40 +0200
committerDanielGavin <danielgavin5@hotmail.com>2023-07-26 20:45:40 +0200
commitcff67bad212b231dde04b8a1abb84c0c4a50290a (patch)
tree39fbe6268efdd5428626c5f73e723491d357bcee /src
parent9ecb91b9ffb9fc8403c37607f53377b5944bacbc (diff)
Fix issue where unresolved symbol didn't get the pkg updated.
Diffstat (limited to 'src')
-rw-r--r--src/server/analysis.odin3
-rw-r--r--src/testing/testing.odin2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index f422a24..630110f 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -1120,7 +1120,6 @@ internal_resolve_type_expression :: proc(
}
if check_node_recursion(ast_context, node) {
- //log.error("Recursion detected")
return {}, false
}
@@ -1588,7 +1587,6 @@ internal_resolve_type_identifier :: proc(
using ast
if check_node_recursion(ast_context, node.derived.(^ast.Ident)) {
- //log.error("Recursion detected")
return {}, false
}
@@ -2332,6 +2330,7 @@ resolve_unresolved_symbol :: proc(
symbol.type = ret.type
symbol.signature = ret.signature
symbol.value = ret.value
+ symbol.pkg = ret.pkg
} else {
return false
}
diff --git a/src/testing/testing.odin b/src/testing/testing.odin
index 2e020e1..bdd1e16 100644
--- a/src/testing/testing.odin
+++ b/src/testing/testing.odin
@@ -41,7 +41,7 @@ setup :: proc(src: ^Source) {
common.scratch_allocator_init(
src.document.allocator,
- mem.Kilobyte * 200,
+ mem.Kilobyte * 2000,
context.temp_allocator,
)