CSharpExtensions.DetermineParameter Method
Containing Type: CSharpExtensions
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
DetermineParameter(SemanticModel, ArgumentSyntax, Boolean, Boolean, CancellationToken) | Determines a parameter symbol that matches to the specified argument. Returns null if no matching parameter is found. |
DetermineParameter(SemanticModel, AttributeArgumentSyntax, Boolean, Boolean, CancellationToken) | Determines a parameter symbol that matches to the specified attribute argument. Returns null if not matching parameter is found. |
DetermineParameter(SemanticModel, ArgumentSyntax, Boolean, Boolean, CancellationToken)
Determines a parameter symbol that matches to the specified argument. Returns null if no matching parameter is found.
public static Microsoft.CodeAnalysis.IParameterSymbol? DetermineParameter(this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax argument, bool allowParams = false, bool allowCandidate = false, System.Threading.CancellationToken cancellationToken = default)
Parameters
semanticModel SemanticModel
argument ArgumentSyntax
allowParams Boolean
allowCandidate Boolean
cancellationToken CancellationToken
Returns
DetermineParameter(SemanticModel, AttributeArgumentSyntax, Boolean, Boolean, CancellationToken)
Determines a parameter symbol that matches to the specified attribute argument. Returns null if not matching parameter is found.
public static Microsoft.CodeAnalysis.IParameterSymbol? DetermineParameter(this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AttributeArgumentSyntax attributeArgument, bool allowParams = false, bool allowCandidate = false, System.Threading.CancellationToken cancellationToken = default)
Parameters
semanticModel SemanticModel
attributeArgument AttributeArgumentSyntax
allowParams Boolean
allowCandidate Boolean
cancellationToken CancellationToken