aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-12-08 12:27:02 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-12-08 12:27:02 -0500
commitd57370d3ca28db17a183157b0497c0ab25e22c19 (patch)
tree0dfbe27beb71eabdce5add8e423f5ad5d50f8b09 /src/all_types.hpp
parent19c1b5a33a21bdddfbbca3c65b1c0e6419c4629f (diff)
parent64d700bfa6cea1d9a440a7431ec8d64964cdd6c1 (diff)
downloadzig-d57370d3ca28db17a183157b0497c0ab25e22c19.tar.gz
zig-d57370d3ca28db17a183157b0497c0ab25e22c19.zip
Merge branch 'comptime-fields'
closes #3677
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index a5b0804985..6e1bfb5ad5 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1006,6 +1006,7 @@ struct AstNodeStructField {
// populated if the "align(A)" is present
AstNode *align_expr;
Buf doc_comments;
+ Token *comptime_token;
};
struct AstNodeStringLiteral {
@@ -1263,6 +1264,7 @@ struct TypeStructField {
uint32_t bit_offset_in_host; // offset from the memory at gen_index
uint32_t host_int_bytes; // size of host integer
uint32_t align;
+ bool is_comptime;
};
enum ResolveStatus {