mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge branch 'master' of github.com:odin-lang/Odin
This commit is contained in:
+5
-1
@@ -1673,7 +1673,11 @@ bool could_entity_be_lazy(Entity *e, DeclInfo *d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void add_entity_and_decl_info(CheckerContext *c, Ast *identifier, Entity *e, DeclInfo *d, bool is_exported) {
|
void add_entity_and_decl_info(CheckerContext *c, Ast *identifier, Entity *e, DeclInfo *d, bool is_exported) {
|
||||||
GB_ASSERT(identifier != nullptr);
|
if (identifier == nullptr) {
|
||||||
|
// NOTE(bill): Should only happen on errors
|
||||||
|
error(e->token, "Invalid variable declaration");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (identifier->kind != Ast_Ident) {
|
if (identifier->kind != Ast_Ident) {
|
||||||
// NOTE(bill): This is a safety check
|
// NOTE(bill): This is a safety check
|
||||||
gbString s = expr_to_string(identifier);
|
gbString s = expr_to_string(identifier);
|
||||||
|
|||||||
Reference in New Issue
Block a user