Added Enum TypeInfo except for methods
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user