aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index b2522f24a..7dd9db105 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -602,6 +602,13 @@ gb_internal void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr,
} else if (ac.objc_is_implementation) {
error(e->token, "@(objc_implement) may only be applied when the @(objc_class) attribute is also applied");
}
+
+ if (ac.raddbg_type_view) {
+ RaddbgTypeView type_view = {};
+ type_view.type = e->type;
+ type_view.view = ac.raddbg_type_view_string;
+ mpsc_enqueue(&ctx->info->raddbg_type_views_queue, type_view);
+ }
}