diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-20 10:33:17 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-20 10:33:27 +0000 |
| commit | 856198b2ea473a4fd2cd020e58db821265b21ca5 (patch) | |
| tree | a7e836404a51f58ae2f89943f6b3d465e80957f0 /src/parser/parser.h | |
| parent | bdf22227d8b822b6ef8cdc4c0a62c37018bcc415 (diff) | |
Move semantics...
Diffstat (limited to 'src/parser/parser.h')
| -rw-r--r-- | src/parser/parser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h index b3837eb..f82edf4 100644 --- a/src/parser/parser.h +++ b/src/parser/parser.h @@ -42,6 +42,7 @@ typedef struct Symbol Token decl_token; int is_const_value; int const_int_val; + int is_moved; struct Symbol *next; } Symbol; @@ -427,6 +428,10 @@ ASTNode *parse_trait(ParserContext *ctx, Lexer *l); ASTNode *parse_impl(ParserContext *ctx, Lexer *l); ASTNode *parse_impl_trait(ParserContext *ctx, Lexer *l); ASTNode *parse_test(ParserContext *ctx, Lexer *l); + +// Move semantics helpers +int is_type_copy(Type *t); +void check_move_usage(ParserContext *ctx, ASTNode *node, Token t); ASTNode *parse_include(ParserContext *ctx, Lexer *l); ASTNode *parse_import(ParserContext *ctx, Lexer *l); ASTNode *parse_comptime(ParserContext *ctx, Lexer *l); |
