aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-09-24 10:22:22 +0100
committergingerBill <bill@gingerbill.org>2018-09-24 10:22:22 +0100
commit597fb452b199f97e20abae260551056302412d39 (patch)
tree48694ce8634191790a401b39c29b84d87ea1e055 /src/check_decl.cpp
parent9f3e42e4ef830fde91cc91a557dc6ca01fe3d337 (diff)
Minor fixes
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index a874ce021..4267a65fd 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1024,6 +1024,7 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
}
ast_node(bs, BlockStmt, body);
+ // check_open_scope(ctx, body);
check_stmt_list(ctx, bs->stmts, Stmt_CheckScopeDecls);
if (type->Proc.result_count > 0) {
if (!check_is_terminating(body)) {
@@ -1035,6 +1036,7 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
}
}
}
+ // check_close_scope(ctx);
check_scope_usage(ctx->checker, ctx->scope);