aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs b/src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs
index 2f34bee8..826dbff8 100644
--- a/src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs
+++ b/src/Ryujinx.Graphics.Shader/StructuredIr/AstBlock.cs
@@ -29,7 +29,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
}
}
- private LinkedList<IAstNode> _nodes;
+ private readonly LinkedList<IAstNode> _nodes;
public IAstNode First => _nodes.First?.Value;
public IAstNode Last => _nodes.Last?.Value;
@@ -38,7 +38,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
public AstBlock(AstBlockType type, IAstNode condition = null)
{
- Type = type;
+ Type = type;
Condition = condition;
_nodes = new LinkedList<IAstNode>();
@@ -114,4 +114,4 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
return GetEnumerator();
}
}
-} \ No newline at end of file
+}