@@ -109,15 +109,15 @@ param_buf: std.ArrayList(Type.Func.Param),
109109enum_buf : std .ArrayList (Type .Enum .Field ),
110110record_buf : std .ArrayList (Type .Record .Field ),
111111attr_buf : std .MultiArrayList (TentativeAttribute ) = .{},
112- attr_application_buf : std .ArrayListUnmanaged (Attribute ) = .{} ,
112+ attr_application_buf : std .ArrayListUnmanaged (Attribute ) = .empty ,
113113field_attr_buf : std .ArrayList ([]const Attribute ),
114114/// type name -> variable name location for tentative definitions (top-level defs with thus-far-incomplete types)
115115/// e.g. `struct Foo bar;` where `struct Foo` is not defined yet.
116116/// The key is the StringId of `Foo` and the value is the TokenIndex of `bar`
117117/// Items are removed if the type is subsequently completed with a definition.
118118/// We only store the first tentative definition that uses a given type because this map is only used
119119/// for issuing an error message, and correcting the first error for a type will fix all of them for that type.
120- tentative_defs : std .AutoHashMapUnmanaged (StringId , TokenIndex ) = .{} ,
120+ tentative_defs : std .AutoHashMapUnmanaged (StringId , TokenIndex ) = .empty ,
121121
122122// configuration and miscellaneous info
123123no_eval : bool = false ,
@@ -174,7 +174,7 @@ record: struct {
174174 }
175175 }
176176} = .{},
177- record_members : std .ArrayListUnmanaged (struct { tok : TokenIndex , name : StringId }) = .{} ,
177+ record_members : std .ArrayListUnmanaged (struct { tok : TokenIndex , name : StringId }) = .empty ,
178178@"switch" : ? * Switch = null ,
179179in_loop : bool = false ,
180180pragma_pack : ? u8 = null ,
0 commit comments