misc: chore: Use collection expressions (part 2)

This commit is contained in:
KeatonTheBot 2025-03-10 21:32:01 -05:00
parent c923c0043a
commit 340ec79e9f
176 changed files with 308 additions and 308 deletions

View file

@ -46,21 +46,21 @@ namespace Spv.Generator
{
_version = version;
_bound = 1;
_capabilities = new List<Capability>();
_extensions = new List<string>();
_capabilities = [];
_extensions = [];
_extInstImports = new Dictionary<DeterministicStringKey, Instruction>();
_addressingModel = AddressingModel.Logical;
_memoryModel = MemoryModel.Simple;
_entrypoints = new List<Instruction>();
_executionModes = new List<Instruction>();
_debug = new List<Instruction>();
_annotations = new List<Instruction>();
_entrypoints = [];
_executionModes = [];
_debug = [];
_annotations = [];
_typeDeclarations = new Dictionary<TypeDeclarationKey, Instruction>();
_typeDeclarationsList = new List<Instruction>();
_typeDeclarationsList = [];
_constants = new Dictionary<ConstantKey, Instruction>();
_globals = new List<Instruction>();
_functionsDeclarations = new List<Instruction>();
_functionsDefinitions = new List<Instruction>();
_globals = [];
_functionsDeclarations = [];
_functionsDefinitions = [];
_instPool = instPool ?? new GeneratorPool<Instruction>();
_integerPool = integerPool ?? new GeneratorPool<LiteralInteger>();