diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-23 15:21:05 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-23 15:21:05 +0000 |
| commit | fe33a64b2ee6775275c6d1e5f1b54cf5ab0af753 (patch) | |
| tree | 505b4903041b078ae0e9681b5c3fd17d1953dc17 /src/parser.cpp | |
| parent | f95185a16e9d4a756020bfb2cd89f2136e114d5f (diff) | |
Remove `#opaque` usage in core library
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 7277f6128..834aa664d 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2507,19 +2507,6 @@ Ast *parse_operand(AstFile *f, bool lhs) { return ast_inline_asm_expr(f, token, open, close, param_types, return_type, asm_string, constraints_string, has_side_effects, is_align_stack, dialect); } - default: { - #if 0 - Ast *type = parse_type_or_ident(f); - if (type != nullptr) { - // TODO(bill): Is this correct??? - // NOTE(bill): Sanity check as identifiers should be handled already - TokenPos pos = ast_token(type).pos; - GB_ASSERT_MSG(type->kind != Ast_Ident, "Type cannot be identifier %.*s(%td:%td)", LIT(pos.file), pos.line, pos.column); - return type; - } - #endif - break; - } } return nullptr; @@ -2659,9 +2646,6 @@ Ast *parse_atom_expr(AstFile *f, Ast *operand, bool lhs) { } case Token_OpenBracket: { - if (lhs) { - // TODO(bill): Handle this - } bool prev_allow_range = f->allow_range; f->allow_range = false; |