remove read only stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user