| ... | ... | @@ -7448,6 +7448,8 @@ pub const TypeInfo = union(TypeId) { |
| 7448 | 7448 | ArgTuple: void, |
| 7449 | 7449 | Opaque: void, |
| 7450 | 7450 | Promise: Promise, |
| 7451 | Vector: Vector, |
| 7452 | EnumLiteral: void, |
| 7451 | 7453 | |
| 7452 | 7454 | |
| 7453 | 7455 | pub const Int = struct { |
| ... | ... | @@ -7465,11 +7467,13 @@ pub const TypeInfo = union(TypeId) { |
| 7465 | 7467 | is_volatile: bool, |
| 7466 | 7468 | alignment: comptime_int, |
| 7467 | 7469 | child: type, |
| 7470 | is_allowzero: bool, |
| 7468 | 7471 | |
| 7469 | 7472 | pub const Size = enum { |
| 7470 | 7473 | One, |
| 7471 | 7474 | Many, |
| 7472 | 7475 | Slice, |
| 7476 | C, |
| 7473 | 7477 | }; |
| 7474 | 7478 | }; |
| 7475 | 7479 | |
| ... | ... | @@ -7510,9 +7514,7 @@ pub const TypeInfo = union(TypeId) { |
| 7510 | 7514 | value: comptime_int, |
| 7511 | 7515 | }; |
| 7512 | 7516 | |
| 7513 | | pub const ErrorSet = struct { |
| 7514 | | errors: []Error, |
| 7515 | | }; |
| 7517 | pub const ErrorSet = ?[]Error; |
| 7516 | 7518 | |
| 7517 | 7519 | pub const EnumField = struct { |
| 7518 | 7520 | name: []const u8, |
| ... | ... | @@ -7567,6 +7569,11 @@ pub const TypeInfo = union(TypeId) { |
| 7567 | 7569 | child: ?type, |
| 7568 | 7570 | }; |
| 7569 | 7571 | |
| 7572 | pub const Vector = struct { |
| 7573 | len: comptime_int, |
| 7574 | child: type, |
| 7575 | }; |
| 7576 | |
| 7570 | 7577 | pub const Definition = struct { |
| 7571 | 7578 | name: []const u8, |
| 7572 | 7579 | is_pub: bool, |
| ... | ... | @@ -7598,6 +7605,11 @@ pub const TypeInfo = union(TypeId) { |
| 7598 | 7605 | }; |
| 7599 | 7606 | }; |
| 7600 | 7607 | {#code_end#} |
| 7608 | <p> |
| 7609 | For {#link|structs|struct#}, {#link|unions|union#}, {#link|enums|enum#}, and |
| 7610 | {#link|error sets|Error Set Type#}, the fields are guaranteed to be in the same |
| 7611 | order as declared. For declarations, the order is unspecified. |
| 7612 | </p> |
| 7601 | 7613 | {#header_close#} |
| 7602 | 7614 | |
| 7603 | 7615 | {#header_open|@typeName#} |