private void CheckSystemSecurityEllipticCurve(ITypeSymbol containingType, SyntaxNode syntaxElement, ArgumentListSyntax argumentList, SyntaxNodeAnalysisContext c) { var firstParam = argumentList.Get(0); if (firstParam == null || containingType == null || !containingType.DerivesFromAny(SystemSecurityCryptographyCurveClasses)) { return; } if (c.SemanticModel.GetSymbolInfo(firstParam).Symbol is { } paramSymbol) { CheckCurveNameKeyLength(syntaxElement, paramSymbol.Name, c); } }
private string GetStringValue(ArgumentListSyntax argumentList, int index) => argumentList.Get(index).GetStringValue();