aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-10-27 13:21:00 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-10-27 13:21:00 +0200
commit7415292f695102c94b6d97e8a28ffc99da71ac30 (patch)
treebb9af9e309ea07d81067cef1cd7b69f8af0ab184 /src/common
parent2cf49d9cda4ec5ab480d71da3da37ee2b71fc6f4 (diff)
Handle typeid as a type
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ast.odin3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin
index 44bd643..2a7a027 100644
--- a/src/common/ast.odin
+++ b/src/common/ast.odin
@@ -8,6 +8,7 @@ import "core:strings"
import path "core:path/slashpath"
keyword_map: map[string]bool = {
+ "typeid" = true,
"int" = true,
"uint" = true,
"string" = true,
@@ -938,7 +939,7 @@ build_string_node :: proc(
}
}
case ^Typeid_Type:
- strings.write_string(builder, "$")
+ strings.write_string(builder, "typeid")
build_string(n.specialization, builder, remove_pointers)
case ^Helper_Type:
build_string(n.type, builder, remove_pointers)