Fix CA1852
This commit is contained in:
committed by
Pavel Penev
parent
277699cbd5
commit
f4af5c1764
@@ -97,7 +97,7 @@ namespace OpenRA.Support
|
||||
}
|
||||
}
|
||||
|
||||
class ManagedLoadContext : AssemblyLoadContext
|
||||
sealed class ManagedLoadContext : AssemblyLoadContext
|
||||
{
|
||||
readonly string basePath;
|
||||
readonly Dictionary<string, ManagedLibrary> managedAssemblies;
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Globalization;
|
||||
|
||||
namespace OpenRA.Support
|
||||
{
|
||||
class Benchmark
|
||||
sealed class Benchmark
|
||||
{
|
||||
readonly string prefix;
|
||||
readonly Dictionary<string, List<BenchmarkPoint>> samples = new();
|
||||
@@ -30,7 +30,7 @@ namespace OpenRA.Support
|
||||
samples.GetOrAdd(item.Key).Add(new BenchmarkPoint(localTick, item.Value.LastValue));
|
||||
}
|
||||
|
||||
class BenchmarkPoint
|
||||
sealed class BenchmarkPoint
|
||||
{
|
||||
public int Tick { get; }
|
||||
public double Value { get; }
|
||||
|
||||
@@ -551,7 +551,7 @@ namespace OpenRA.Support
|
||||
}
|
||||
}
|
||||
|
||||
class VariableToken : Token
|
||||
sealed class VariableToken : Token
|
||||
{
|
||||
public readonly string Name;
|
||||
|
||||
@@ -561,7 +561,7 @@ namespace OpenRA.Support
|
||||
: base(TokenType.Variable, index) { Name = symbol; }
|
||||
}
|
||||
|
||||
class NumberToken : Token
|
||||
sealed class NumberToken : Token
|
||||
{
|
||||
public readonly int Value;
|
||||
readonly string symbol;
|
||||
@@ -714,7 +714,7 @@ namespace OpenRA.Support
|
||||
return Expressions.Expression.Condition(test, ifTrue, ifFalse);
|
||||
}
|
||||
|
||||
class AstStack
|
||||
sealed class AstStack
|
||||
{
|
||||
readonly List<Expression> expressions = new();
|
||||
readonly List<ExpressionType> types = new();
|
||||
@@ -772,7 +772,7 @@ namespace OpenRA.Support
|
||||
}
|
||||
}
|
||||
|
||||
class Compiler
|
||||
sealed class Compiler
|
||||
{
|
||||
readonly AstStack ast = new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user