remove read only stuff

This commit is contained in:
nub31
2025-09-12 17:08:10 +02:00
parent bace846a2a
commit 314f7efc7b
15 changed files with 41 additions and 42 deletions

View File

@@ -1,5 +1,4 @@
using System.Collections.Immutable;
using System.Diagnostics;
using System.Diagnostics;
using System.Globalization;
using System.Text;
using NubLang.Tokenization;
@@ -10,9 +9,9 @@ namespace NubLang.Generation.QBE;
public class QBEGenerator
{
private readonly QBEWriter _writer;
private readonly IReadOnlyList<DefinitionNode> _definitions;
private readonly ImmutableHashSet<StructTypeNode> _structTypes;
private readonly ImmutableHashSet<InterfaceTypeNode> _interfaceTypes;
private readonly List<DefinitionNode> _definitions;
private readonly HashSet<StructTypeNode> _structTypes;
private readonly HashSet<InterfaceTypeNode> _interfaceTypes;
private readonly List<CStringLiteral> _cStringLiterals = [];
private readonly List<StringLiteral> _stringLiterals = [];
@@ -24,7 +23,7 @@ public class QBEGenerator
private int _stringLiteralIndex;
private bool _codeIsReachable = true;
public QBEGenerator(IReadOnlyList<DefinitionNode> definitions, ImmutableHashSet<StructTypeNode> structTypes, ImmutableHashSet<InterfaceTypeNode> interfaceTypes)
public QBEGenerator(List<DefinitionNode> definitions, HashSet<StructTypeNode> structTypes, HashSet<InterfaceTypeNode> interfaceTypes)
{
_definitions = definitions;
_structTypes = structTypes;