Added Enum TypeInfo except for methods

This commit is contained in:
Alexandros Naskos
2018-04-26 16:41:59 +03:00
parent 7a91e4736a
commit f5977f68eb
2 changed files with 111 additions and 22 deletions

View File

@@ -6412,7 +6412,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" pub const StructField = struct {\n"
" name: []const u8,\n"
" offset: usize,\n"
" type_info: TypeInfo,\n"
" type_info: &TypeInfo,\n"
" };\n"
"\n"
" pub const Struct = struct {\n"
@@ -6446,7 +6446,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
"\n"
" pub const Enum = struct {\n"
" layout: ContainerLayout,\n"
" tag_type: Int,\n"
" tag_type: &Int,\n"
" fields: []EnumField,\n"
" methods: []Method,\n"
" };\n"
@@ -6454,7 +6454,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" pub const UnionField = struct {\n"
" name: []const u8,\n"
" enum_field: EnumField,\n"
" type_info: TypeInfo,\n"
" type_info: &TypeInfo,\n"
" };\n"
"\n"
" pub const Union = struct {\n"
@@ -6476,7 +6476,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" pub const FnArg = struct {\n"
" is_comptime: bool,\n"
" name: []const u8,\n"
" type_info: TypeInfo,\n"
" type_info: &TypeInfo,\n"
" };\n"
"\n"
" pub const Fn = struct {\n"