@@ -1345,7 +1345,7 @@ pub const Compiler = struct {
1345
1345
const accelerator : * Node.Accelerator = @alignCast (@fieldParentPtr ("base" , accel_node ));
1346
1346
var modifiers = res.AcceleratorModifiers {};
1347
1347
for (accelerator .type_and_options ) | type_or_option | {
1348
- const modifier = rc .AcceleratorTypeAndOptions .Map .get (type_or_option .slice (self .source )).? ;
1348
+ const modifier = rc .AcceleratorTypeAndOptions .map .get (type_or_option .slice (self .source )).? ;
1349
1349
modifiers .apply (modifier );
1350
1350
}
1351
1351
if (accelerator .event .isNumberExpression () and ! modifiers .explicit_ascii_or_virtkey ) {
@@ -1428,7 +1428,7 @@ pub const Compiler = struct {
1428
1428
.simple_statement = > {
1429
1429
const simple_statement : * Node.SimpleStatement = @alignCast (@fieldParentPtr ("base" , optional_statement ));
1430
1430
const statement_identifier = simple_statement .identifier ;
1431
- const statement_type = rc .OptionalStatements .DialogMap .get (statement_identifier .slice (self .source )) orelse continue ;
1431
+ const statement_type = rc .OptionalStatements .dialog_map .get (statement_identifier .slice (self .source )) orelse continue ;
1432
1432
switch (statement_type ) {
1433
1433
.style , .exstyle = > {
1434
1434
const style = evaluateFlagsExpressionWithDefault (0 , simple_statement .value , self .source , self .input_code_pages );
@@ -1563,7 +1563,7 @@ pub const Compiler = struct {
1563
1563
1564
1564
for (skipped_menu_or_classes .items ) | simple_statement | {
1565
1565
const statement_identifier = simple_statement .identifier ;
1566
- const statement_type = rc .OptionalStatements .DialogMap .get (statement_identifier .slice (self .source )) orelse continue ;
1566
+ const statement_type = rc .OptionalStatements .dialog_map .get (statement_identifier .slice (self .source )) orelse continue ;
1567
1567
try self .addErrorDetails (.{
1568
1568
.err = .duplicate_menu_or_class_skipped ,
1569
1569
.type = .warning ,
@@ -1813,7 +1813,7 @@ pub const Compiler = struct {
1813
1813
bytes_written_so_far : u32 ,
1814
1814
controls_by_id : * std .AutoHashMap (u32 , * const Node.ControlStatement ),
1815
1815
) ! void {
1816
- const control_type = rc .Control .Map .get (control .type .slice (self .source )).? ;
1816
+ const control_type = rc .Control .map .get (control .type .slice (self .source )).? ;
1817
1817
1818
1818
// Each control must be at a 4-byte boundary. However, the Windows RC
1819
1819
// compiler will miscompile controls if their extra data ends on an odd offset.
@@ -1958,7 +1958,7 @@ pub const Compiler = struct {
1958
1958
const literal_node : * Node.Literal = @alignCast (@fieldParentPtr ("base" , class_node ));
1959
1959
const literal_slice = literal_node .token .slice (self .source );
1960
1960
// This succeeding is guaranteed by the parser
1961
- const control_class = rc .ControlClass .Map .get (literal_slice ) orelse unreachable ;
1961
+ const control_class = rc .ControlClass .map .get (literal_slice ) orelse unreachable ;
1962
1962
const ordinal = NameOrOrdinal { .ordinal = @intFromEnum (control_class ) };
1963
1963
try ordinal .write (data_writer );
1964
1964
}
@@ -2182,7 +2182,7 @@ pub const Compiler = struct {
2182
2182
var flags = res.MenuItemFlags {};
2183
2183
for (menu_item .option_list ) | option_token | {
2184
2184
// This failing would be a bug in the parser
2185
- const option = rc .MenuItem .Option .Map .get (option_token .slice (self .source )) orelse unreachable ;
2185
+ const option = rc .MenuItem .Option .map .get (option_token .slice (self .source )) orelse unreachable ;
2186
2186
flags .apply (option );
2187
2187
}
2188
2188
if (is_last_of_parent ) flags .markLast ();
@@ -2200,7 +2200,7 @@ pub const Compiler = struct {
2200
2200
var flags = res.MenuItemFlags { .value = res .MF .POPUP };
2201
2201
for (popup .option_list ) | option_token | {
2202
2202
// This failing would be a bug in the parser
2203
- const option = rc .MenuItem .Option .Map .get (option_token .slice (self .source )) orelse unreachable ;
2203
+ const option = rc .MenuItem .Option .map .get (option_token .slice (self .source )) orelse unreachable ;
2204
2204
flags .apply (option );
2205
2205
}
2206
2206
if (is_last_of_parent ) flags .markLast ();
@@ -2296,7 +2296,7 @@ pub const Compiler = struct {
2296
2296
switch (fixed_info .id ) {
2297
2297
.version_statement = > {
2298
2298
const version_statement : * Node.VersionStatement = @alignCast (@fieldParentPtr ("base" , fixed_info ));
2299
- const version_type = rc .VersionInfo .Map .get (version_statement .type .slice (self .source )).? ;
2299
+ const version_type = rc .VersionInfo .map .get (version_statement .type .slice (self .source )).? ;
2300
2300
2301
2301
// Ensure that all parts are cleared for each version, to properly account for
2302
2302
// potential duplicate PRODUCTVERSION/FILEVERSION statements
@@ -2346,7 +2346,7 @@ pub const Compiler = struct {
2346
2346
},
2347
2347
.simple_statement = > {
2348
2348
const statement : * Node.SimpleStatement = @alignCast (@fieldParentPtr ("base" , fixed_info ));
2349
- const statement_type = rc .VersionInfo .Map .get (statement .identifier .slice (self .source )).? ;
2349
+ const statement_type = rc .VersionInfo .map .get (statement .identifier .slice (self .source )).? ;
2350
2350
const value = evaluateNumberExpression (statement .value , self .source , self .input_code_pages );
2351
2351
switch (statement_type ) {
2352
2352
.file_flags_mask = > fixed_file_info .file_flags_mask = value .value ,
@@ -2555,7 +2555,7 @@ pub const Compiler = struct {
2555
2555
/// Expects this to be a top-level VERSION or CHARACTERISTICS statement
2556
2556
pub fn writeTopLevelSimpleStatement (self : * Compiler , node : * Node.SimpleStatement ) void {
2557
2557
const value = Compiler .evaluateNumberExpression (node .value , self .source , self .input_code_pages );
2558
- const statement_type = rc .TopLevelKeywords .Map .get (node .identifier .slice (self .source )).? ;
2558
+ const statement_type = rc .TopLevelKeywords .map .get (node .identifier .slice (self .source )).? ;
2559
2559
switch (statement_type ) {
2560
2560
.characteristics = > self .state .characteristics = value .value ,
2561
2561
.version = > self .state .version = value .value ,
@@ -2735,7 +2735,7 @@ pub const Compiler = struct {
2735
2735
2736
2736
fn applyToMemoryFlags (flags : * MemoryFlags , tokens : []Token , source : []const u8 ) void {
2737
2737
for (tokens ) | token | {
2738
- const attribute = rc .CommonResourceAttributes .Map .get (token .slice (source )).? ;
2738
+ const attribute = rc .CommonResourceAttributes .map .get (token .slice (source )).? ;
2739
2739
flags .set (attribute );
2740
2740
}
2741
2741
}
@@ -2757,7 +2757,7 @@ pub const Compiler = struct {
2757
2757
const initial_flags = flags .* ;
2758
2758
var flags_set = std .enums .EnumSet (rc .CommonResourceAttributes ).initEmpty ();
2759
2759
for (tokens ) | token | {
2760
- const attribute = rc .CommonResourceAttributes .Map .get (token .slice (source )).? ;
2760
+ const attribute = rc .CommonResourceAttributes .map .get (token .slice (source )).? ;
2761
2761
flags_set .insert (attribute );
2762
2762
}
2763
2763
if (! flags_set .contains (.preload )) return ;
@@ -2767,7 +2767,7 @@ pub const Compiler = struct {
2767
2767
// For example, `PRELOAD LOADONCALL` will result in default flags, but
2768
2768
// `LOADONCALL PRELOAD` will have PRELOAD set after they are both applied in order.
2769
2769
for (tokens ) | token | {
2770
- const attribute = rc .CommonResourceAttributes .Map .get (token .slice (source )).? ;
2770
+ const attribute = rc .CommonResourceAttributes .map .get (token .slice (source )).? ;
2771
2771
switch (attribute ) {
2772
2772
.preload , .loadoncall = > flags .set (attribute ),
2773
2773
else = > {},
@@ -2786,7 +2786,7 @@ pub const Compiler = struct {
2786
2786
};
2787
2787
const discardable_shared_or_pure_specified = flags_set .intersectWith (shared_set ).count () != 0 ;
2788
2788
for (tokens ) | token | {
2789
- const attribute = rc .CommonResourceAttributes .Map .get (token .slice (source )).? ;
2789
+ const attribute = rc .CommonResourceAttributes .map .get (token .slice (source )).? ;
2790
2790
flags .setGroup (attribute , ! discardable_shared_or_pure_specified );
2791
2791
}
2792
2792
}
@@ -2800,7 +2800,7 @@ pub const Compiler = struct {
2800
2800
},
2801
2801
.simple_statement = > {
2802
2802
const simple_statement : * Node.SimpleStatement = @alignCast (@fieldParentPtr ("base" , node ));
2803
- const statement_type = rc .OptionalStatements .Map .get (simple_statement .identifier .slice (source )) orelse continue ;
2803
+ const statement_type = rc .OptionalStatements .map .get (simple_statement .identifier .slice (source )) orelse continue ;
2804
2804
const result = Compiler .evaluateNumberExpression (simple_statement .value , source , code_page_lookup );
2805
2805
switch (statement_type ) {
2806
2806
.version = > version .* = result .value ,
0 commit comments