Implement #complete switch by default, replace with #partial switch #511

This commit is contained in:
gingerBill
2019-12-22 12:03:48 +00:00
parent 4593730632
commit d1c9fd4e01
19 changed files with 263 additions and 227 deletions
+12 -12
View File
@@ -363,20 +363,20 @@ AST_KIND(_ComplexStmtBegin, "", bool) \
Entity *implicit_entity; \
}) \
AST_KIND(SwitchStmt, "switch statement", struct { \
Token token; \
Ast *label; \
Ast *init; \
Ast *tag; \
Ast *body; \
bool complete; \
Token token; \
Ast *label; \
Ast *init; \
Ast *tag; \
Ast *body; \
bool partial; \
}) \
AST_KIND(TypeSwitchStmt, "type switch statement", struct { \
Token token; \
Ast *label; \
Ast *tag; \
Ast *body; \
bool complete; \
}) \
Token token; \
Ast *label; \
Ast *tag; \
Ast *body; \
bool partial; \
}) \
AST_KIND(DeferStmt, "defer statement", struct { Token token; Ast *stmt; }) \
AST_KIND(BranchStmt, "branch statement", struct { Token token; Ast *label; }) \
AST_KIND(UsingStmt, "using statement", struct { \