mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 00:56:31 +02:00
Refactor list statement methods to use empty array checks over null checks
This commit is contained in:
@@ -225,19 +225,12 @@ public sealed class StatementRegistryGenerator : ISourceGenerator
|
||||
};
|
||||
}
|
||||
|
||||
private sealed class MethodRegistration
|
||||
private sealed class MethodRegistration(INamedTypeSymbol containingType, IMethodSymbol method, AttributeData attribute)
|
||||
{
|
||||
public MethodRegistration(INamedTypeSymbol containingType, IMethodSymbol method, AttributeData attribute)
|
||||
{
|
||||
ContainingType = containingType;
|
||||
Method = method;
|
||||
Attribute = attribute;
|
||||
}
|
||||
public INamedTypeSymbol ContainingType { get; } = containingType;
|
||||
|
||||
public INamedTypeSymbol ContainingType { get; }
|
||||
public IMethodSymbol Method { get; } = method;
|
||||
|
||||
public IMethodSymbol Method { get; }
|
||||
|
||||
public AttributeData Attribute { get; }
|
||||
public AttributeData Attribute { get; } = attribute;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user