diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ek/ast.h | 2 | ||||
| -rw-r--r-- | include/ek/scope.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/ek/ast.h b/include/ek/ast.h index 5c1c6e6..37e644d 100644 --- a/include/ek/ast.h +++ b/include/ek/ast.h @@ -197,6 +197,7 @@ enum ast_flags { AST_FLAG_UFCS_SIMPLE = (1 << 17), AST_FLAG_UFCS_REF = (1 << 18), AST_FLAG_UFCS_TRIVIAL = (1 << 19), + AST_FLAG_INSTANCE = (1 << 20), }; struct ast; @@ -691,6 +692,7 @@ struct ast *ast_prepend(struct ast *list, struct ast *elem); struct type *type_prepend(struct type *list, struct type *elem); void ast_set_flags(struct ast *node, enum ast_flags flags); +void ast_set_flags_recurse(struct ast *node, enum ast_flags flags); void ast_clear_flags(struct ast *node, enum ast_flags flags); unsigned ast_flags(struct ast *node, enum ast_flags flags); diff --git a/include/ek/scope.h b/include/ek/scope.h index aedeacf..810f1cc 100644 --- a/include/ek/scope.h +++ b/include/ek/scope.h @@ -22,6 +22,7 @@ enum scope_flags { SCOPE_PUBLIC = (1 << 0), /** Scope is file scope. */ SCOPE_FILE = (1 << 1), + SCOPE_ROOT = (1 << 2) }; struct visible_tuple { |
