2 implementations of IParameterSymbol
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
1369 references to IParameterSymbol
Aspire.Hosting.Analyzers (3)
ConfigurationSchemaGenerator (13)
ILLink.RoslynAnalyzer (11)
Microsoft.Analyzers.Extra (4)
Microsoft.AspNetCore.App.Analyzers (28)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (10)
277var parameter = FindParameterForArgument(semanticModel, argument, allowUncertainCandidates: true, cancellationToken);
295var parameter = FindParameterForAttributeArgument(semanticModel, argument, allowUncertainCandidates: true, cancellationToken);
372private static IParameterSymbol? FindParameterForArgument(SemanticModel semanticModel, SyntaxNode argument, bool allowUncertainCandidates, CancellationToken cancellationToken)
375private static IParameterSymbol? FindParameterForAttributeArgument(SemanticModel semanticModel, SyntaxNode argument, bool allowUncertainCandidates, CancellationToken cancellationToken)
383public static IParameterSymbol? DetermineParameter(
413var parameter = parameters.FirstOrDefault(p => p.Name == name);
436var lastParameter = parameters.LastOrDefault();
460public static IParameterSymbol? DetermineParameter(
493var parameter = parameters.FirstOrDefault(p => p.Name == name);
513var lastParameter = parameters.LastOrDefault();
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (13)
StaticRouteHandlerModel\EndpointParameter.cs (4)
21public EndpointParameter(Endpoint endpoint, IParameterSymbol parameter, WellKnownTypes wellKnownTypes) : this(endpoint, parameter.Type, parameter.Name, wellKnownTypes)
30private EndpointParameter(Endpoint endpoint, IPropertySymbol property, IParameterSymbol? parameter, WellKnownTypes wellKnownTypes) : this(endpoint, property.Type, property.Name, wellKnownTypes)
434if (typeSymbol is IParameterSymbol parameter)
495foreach (var parameter in parameters)
Microsoft.AspNetCore.Mvc.Analyzers (4)
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.CodeAnalysis (25)
Generated\Operations.Generated.cs (9)
881IParameterSymbol Parameter { get; }
2423IParameterSymbol Parameter { get; }
2567IParameterSymbol? Parameter { get; }
5316internal ParameterReferenceOperation(IParameterSymbol parameter, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit)
5322public IParameterSymbol Parameter { get; }
7659internal ParameterInitializerOperation(IParameterSymbol parameter, ImmutableArray<ILocalSymbol> locals, IOperation value, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit)
7664public IParameterSymbol Parameter { get; }
7914internal ArgumentOperation(ArgumentKind argumentKind, IParameterSymbol? parameter, IOperation value, IConvertibleConversion inConversion, IConvertibleConversion outConversion, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit)
7924public IParameterSymbol? Parameter { get; }
Microsoft.CodeAnalysis.CodeStyle (96)
Microsoft.CodeAnalysis.CodeStyle.Fixes (109)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (16)
56ImmutableArray<IParameterSymbol> parameters,
85ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod,
129ImmutableArray<IParameterSymbol> parameters,
162ImmutableArray<IParameterSymbol> parameters,
183ImmutableArray<IParameterSymbol> parameters,
202ImmutableArray<IParameterSymbol> parameters,
226IParameterSymbol fromType,
254IParameterSymbol fromType,
269public static IParameterSymbol CreateParameterSymbol(ITypeSymbol type, string name)
272public static IParameterSymbol CreateParameterSymbol(RefKind refKind, ITypeSymbol type, string name)
281public static IParameterSymbol CreateParameterSymbol(
290public static IParameterSymbol CreateParameterSymbol(
291IParameterSymbol parameter,
472ImmutableArray<IParameterSymbol> parameters = default,
522ImmutableArray<IParameterSymbol>? parameters = null,
548ImmutableArray<IParameterSymbol>? parameters = null,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (1)
23IParameterSymbol fromType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (15)
61ImmutableArray<IParameterSymbol> parameters)
68IParameterSymbol parameter)
124: throughMember is IParameterSymbol
292ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType)
295foreach (var parameter in parameters)
314ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType)
317foreach (var parameter in parameters)
347ImmutableArray<IParameterSymbol> parameters,
356foreach (var parameter in parameters)
398IParameterSymbol parameter,
435this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter, SyntaxNode fieldAccess)
444public static SyntaxNode CreateThrowArgumentNullExpression(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
447private static SyntaxNode CreateNewArgumentNullException(SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
460IParameterSymbol parameter)
479public static SyntaxNode CreateThrowArgumentNullExceptionStatement(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (6)
29protected abstract bool TryUpdateTupleAssignment(IBlockOperation? blockStatement, IParameterSymbol parameter, ISymbol fieldOrProperty, SyntaxEditor editor);
31Document document, IParameterSymbol parameter, ISymbol fieldOrProperty, CancellationToken cancellationToken);
84IParameterSymbol parameter,
113IParameterSymbol parameter,
137IParameterSymbol parameter,
165IParameterSymbol parameter, IBlockOperation? blockStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (9)
16public static ImmutableArray<(IParameterSymbol parameter, bool before)> GetSiblingParameters(IParameterSymbol parameter)
18using var _ = ArrayBuilder<(IParameterSymbol, bool before)>.GetInstance(out var siblings);
38public static bool IsParameterReference(IOperation? operation, IParameterSymbol parameter)
43IOperation? value, IParameterSymbol parameter)
63public static string GenerateUniqueName(IParameterSymbol parameter, ImmutableArray<string> parameterNameParts, NamingRule rule)
76public static IOperation? TryFindFieldOrPropertyAssignmentStatement(IParameterSymbol parameter, IBlockOperation? blockStatement)
80IParameterSymbol parameter, IBlockOperation? blockStatement, out ISymbol? fieldOrProperty)
142IAssignmentOperation assignmentExpression, IParameterSymbol parameter)
Microsoft.CodeAnalysis.CSharp (36)
Microsoft.CodeAnalysis.CSharp.CodeStyle (27)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (9)
144PooledDictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
153private readonly PooledDictionary<ISymbol, IParameterSymbol> _candidateMembersToRemove = candidateMembersToRemove;
323var candidateMembersToRemove = PooledDictionary<ISymbol, IParameterSymbol>.GetInstance();
387Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove)
409Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove)
416using var _2 = ArrayBuilder<(IParameterSymbol parameter, SyntaxNode assignedMemberDeclaration, bool parameterIsWrittenTo)>.GetInstance(out var orderedParameterAssignments);
466Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
467ArrayBuilder<(IParameterSymbol parameter, SyntaxNode assignedMemberDeclaration, bool parameterIsWrittenTo)>? orderedParameterAssignments,
533semanticModel.GetSymbolInfo(assignmentExpression.Right, cancellationToken).GetAnySymbol() is IParameterSymbol parameter &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (62)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (9)
21ImmutableArray<IParameterSymbol> parameterDefinitions,
31ImmutableArray<IParameterSymbol> parameterDefinitions,
43ImmutableArray<IParameterSymbol> parameterDefinitions,
51foreach (var p in parameterDefinitions)
62internal static ParameterSyntax GetParameter(IParameterSymbol parameter, CSharpCodeGenerationContextInfo info, bool isExplicit, bool isFirstParam, bool seenOptional)
76IParameterSymbol parameter, bool isFirstParam)
92IParameterSymbol parameter,
112private static ExpressionSyntax GenerateEqualsValueClauseWorker(SyntaxGenerator generator, IParameterSymbol parameter, object? value)
116IParameterSymbol parameter, bool isExplicit, CSharpCodeGenerationContextInfo info)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Features (118)
InlineHints\CSharpInlineParameterNameHintsService.cs (4)
30ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> buffer,
45ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> buffer,
61ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> buffer,
98protected override bool IsIndexer(SyntaxNode node, IParameterSymbol parameter)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (9)
144PooledDictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
153private readonly PooledDictionary<ISymbol, IParameterSymbol> _candidateMembersToRemove = candidateMembersToRemove;
323var candidateMembersToRemove = PooledDictionary<ISymbol, IParameterSymbol>.GetInstance();
387Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove)
409Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove)
416using var _2 = ArrayBuilder<(IParameterSymbol parameter, SyntaxNode assignedMemberDeclaration, bool parameterIsWrittenTo)>.GetInstance(out var orderedParameterAssignments);
466Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
467ArrayBuilder<(IParameterSymbol parameter, SyntaxNode assignedMemberDeclaration, bool parameterIsWrittenTo)>? orderedParameterAssignments,
533semanticModel.GetSymbolInfo(assignmentExpression.Right, cancellationToken).GetAnySymbol() is IParameterSymbol parameter &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (23)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (80)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (21)
824var symbol = model.GetDeclaredSymbol(methodDecl.ParameterList.Parameters[0]);
840var symbol = model.GetDeclaredSymbol(delegateDecl.ParameterList.Parameters[0]);
860var symbol = model.GetDeclaredSymbol(methodDecl.ParameterList.Parameters[0]);
987var psym = model.GetDeclaredSymbol(memDecl.ParameterList.Parameters[0]);
1334var paramSymbol = model.GetDeclaredSymbol(parameterDecl);
1437var paramSymbol = model.GetDeclaredSymbol(parameterDecl);
1877var typeA = ((IParameterSymbol)symbols[0]).Type;
1881var typeB = ((IParameterSymbol)symbols[0]).Type;
2014var type = ((IParameterSymbol)symbols[0]).Type;
3672var parameter = (IParameterSymbol)info.Symbol;
3902var symbol = model.GetDeclaredSymbol(param);
5223var symbol1 = VerifyParameter(model, decls[0], 0, "[System.Int32 x = 2]", "System.Int32", 2);
5224var symbol2 = VerifyParameter(model, decls[1], 1, "[? = null]", "System.Int32", 3);
5244var symbol1 = VerifyParameter(model, decls[0], 0, "System.Int32 x", null, null);
5245var symbol2 = VerifyParameter(model, decls[1], 1, "[? = null]", "System.Int32", 3);
5265var symbol1 = VerifyParameter(model, decls[0], 0, "[System.Int32 x = 2]", "System.Int32", 2);
5266var symbol2 = VerifyParameter(model, decls[1], 1, "[? = null]", "System.Int32", 3);
5642private static IParameterSymbol VerifyParameter(
5650var symbol = (IParameterSymbol)model.GetDeclaredSymbol(decl);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (49)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (9)
21ImmutableArray<IParameterSymbol> parameterDefinitions,
31ImmutableArray<IParameterSymbol> parameterDefinitions,
43ImmutableArray<IParameterSymbol> parameterDefinitions,
51foreach (var p in parameterDefinitions)
62internal static ParameterSyntax GetParameter(IParameterSymbol parameter, CSharpCodeGenerationContextInfo info, bool isExplicit, bool isFirstParam, bool seenOptional)
76IParameterSymbol parameter, bool isFirstParam)
92IParameterSymbol parameter,
112private static ExpressionSyntax GenerateEqualsValueClauseWorker(SyntaxGenerator generator, IParameterSymbol parameter, object? value)
116IParameterSymbol parameter, bool isExplicit, CSharpCodeGenerationContextInfo info)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
CodeGeneration\CodeGenerationTests.cs (15)
105ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
141ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
184ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
224ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
266Func<SemanticModel, IParameterSymbol> fromType,
322ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters,
343ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
374ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
418ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters = default,
655internal static Func<SemanticModel, IParameterSymbol> Parameter(Type type, string name, bool hasDefaultValue = false, object defaultValue = null, bool isParams = false)
662internal static Func<SemanticModel, IParameterSymbol> Parameter(string typeFullName, string parameterName, bool hasDefaultValue = false, object defaultValue = null, bool isParams = false, int typeArrayRank = 0)
678internal static ImmutableArray<Func<SemanticModel, IParameterSymbol>> Parameters(params Func<SemanticModel, IParameterSymbol>[] p)
687private static ImmutableArray<IParameterSymbol> GetParameterSymbols(ImmutableArray<Func<SemanticModel, IParameterSymbol>> parameters, TestContext context)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (6)
Microsoft.CodeAnalysis.Features (247)
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (21)
66var parameter = (IParameterSymbol)semanticModel.GetRequiredDeclaredSymbol(parameterNode, cancellationToken);
85IParameterSymbol parameter,
174private static (TParameterSyntax?, IParameterSymbol?) GetParameterAtOrdinal(int index, IReadOnlyList<TParameterSyntax> parameterNodes, SemanticModel semanticModel, CancellationToken cancellationToken)
178var parameter = (IParameterSymbol)semanticModel.GetRequiredDeclaredSymbol(parameterNode, cancellationToken);
188IOperation statement, IParameterSymbol parameter,
211private static bool IsIfNullCheck(IOperation statement, IParameterSymbol parameter)
244protected bool ParameterValidForNullCheck(Document document, IParameterSymbol parameter, SemanticModel semanticModel,
294private static bool IsStringCheck(IOperation condition, IParameterSymbol parameter)
308private static bool IsNullCheck(IOperation operand1, IOperation operand2, IParameterSymbol parameter)
313IParameterSymbol parameter,
336IParameterSymbol parameter,
352IParameterSymbol parameter,
385private TStatementSyntax CreateNullCheckStatement(SemanticModel semanticModel, SyntaxGenerator generator, IParameterSymbol parameter, TSimplifierOptions options)
392Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter, string methodName, TSimplifierOptions options)
409IParameterSymbol parameter,
455IParameterSymbol parameterSymbol,
486IParameterSymbol parameter,
555Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter)
563Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter, string methodName)
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (22)
60IParameterSymbol parameter,
104IParameterSymbol parameter,
189IParameterSymbol parameter,
213private static ImmutableArray<IParameterSymbol> GetParametersWithoutAssociatedMembers(
218using var _ = ArrayBuilder<IParameterSymbol>.GetInstance(out var result);
220foreach (var parameter in method.Parameters)
238IParameterSymbol parameter,
261IParameterSymbol parameter, IBlockOperation? blockStatement)
274IParameterSymbol parameter,
310IParameterSymbol parameter,
360ImmutableArray<IParameterSymbol> parameters,
381var parameter = parameters[i];
401var currentParameter = (IParameterSymbol?)parameter.GetSymbolKey(cancellationToken).Resolve(currentCompilation, cancellationToken: cancellationToken).GetAnySymbol();
424IParameterSymbol parameter,
469private static async Task<(Document documentWithMemberAdded, IParameterSymbol? currentParameter, ISymbol? currentFieldOrProperty)> AddMissingFieldOrPropertyAsync(
473IParameterSymbol parameter,
528var currentParameter = SymbolFinder.FindSimilarSymbols(parameter, compilation, cancellationToken).FirstOrDefault();
539IParameterSymbol parameter, IBlockOperation? blockStatement,
574IParameterSymbol parameter, IBlockOperation? blockStatement, out ISymbol? fieldOrProperty)
611IAssignmentOperation assignmentExpression, IParameterSymbol parameter)
615Document document, IParameterSymbol parameter, IBlockOperation? blockStatement, ImmutableArray<NamingRule> rules, ImmutableArray<string> parameterWords, CancellationToken cancellationToken)
InlineHints\AbstractInlineParameterNameHintsService.cs (10)
30ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> buffer,
33protected abstract bool IsIndexer(SyntaxNode node, IParameterSymbol parameter);
64using var _2 = ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)>.GetInstance(out var buffer);
129ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> parameterHints)
139ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> parameterHints)
157ArrayBuilder<(int position, SyntaxNode argument, IParameterSymbol? parameter, HintKind kind)> parameterHints)
174static bool HasAlphaSuffix(IParameterSymbol? parameter, out ReadOnlyMemory<char> prefix)
192static bool HasNumericSuffix(IParameterSymbol? parameter, out ReadOnlyMemory<char> prefix)
226protected static bool MatchesMethodIntent(IParameterSymbol? parameter)
283private static bool ParameterMatchesArgumentName(SyntaxNode argument, IParameterSymbol parameter, ISyntaxFactsService syntaxFacts)
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (7)
162? ImmutableArray<(IParameterSymbol, string)>.Empty
249ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax expression)> parametersToGenerateFreshVariablesFor,
250ImmutableArray<(IParameterSymbol parameterSymbol, string identifierName)> parametersWithVariableDeclarationArgument,
278(IParameterSymbol parameterSymbol, TExpressionSyntax expression) parameterAndExpression)
324ImmutableArray<(IParameterSymbol parameter, string identifierName)> parametersWithVariableDeclarationArgument,
325ImmutableDictionary<IParameterSymbol, TExpressionSyntax> parametersToReplace,
357ImmutableArray<IParameterSymbol> parametersNeedGenerateFreshVariableFor,
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (9)
26ImmutableArray<(IParameterSymbol parameterSymbol, string name)> parametersWithVariableDeclarationArgument,
27ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax initExpression)> parametersToGenerateFreshVariablesFor,
28ImmutableDictionary<IParameterSymbol, TExpressionSyntax> parametersToReplace,
48public ImmutableArray<(IParameterSymbol parameterSymbol, string name)> ParametersWithVariableDeclarationArgument { get; } = parametersWithVariableDeclarationArgument;
76public ImmutableArray<(IParameterSymbol parameterSymbol, TExpressionSyntax initExpression)> ParametersToGenerateFreshVariablesFor { get; } = parametersToGenerateFreshVariablesFor;
124public ImmutableDictionary<IParameterSymbol, TExpressionSyntax> ParametersToReplace { get; } = parametersToReplace;
439var parameterSymbol = argument.Parameter;
483ImmutableArray<(IParameterSymbol parameterSymbol, string name)> parametersWithVariableDeclarationArgument,
499var parameterSymbol = argumentOperation.Parameter;
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (17)
62private async Task<Dictionary<TIdentifierNameSyntax, IParameterSymbol>> MapExpressionToParametersAsync(CancellationToken cancellationToken)
64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>();
71if (symbol is IParameterSymbol parameterSymbol)
141foreach (var parameterSymbol in _methodSymbol.Parameters)
235var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
305Dictionary<IParameterSymbol, int> parameterToArgumentMap, SyntaxNode currentArgumentListSyntax,
306SyntaxNode argumentListSyntax, SyntaxNode invocation, ImmutableArray<IParameterSymbol> validParameters,
315foreach (var parameterSymbol in validParameters)
388private async Task<SyntaxNode> ExtractMethodAsync(ImmutableArray<IParameterSymbol> validParameters, string newMethodIdentifier, SyntaxGenerator generator, CancellationToken cancellationToken)
441private async Task<SyntaxNode> CreateMethodDeclarationAsync(SyntaxNode newStatement, ImmutableArray<IParameterSymbol>? validParameters,
487var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
542Dictionary<TIdentifierNameSyntax, IParameterSymbol> mappingDictionary,
543Dictionary<IParameterSymbol, int> parameterToArgumentMap,
588var argumentParameter = _semanticFacts.FindParameterForArgument(semanticModel, invocationArgument, cancellationToken);
602private static bool ShouldParameterBeSkipped(Compilation compilation, IParameterSymbol parameter)
608Dictionary<IParameterSymbol, int> mapping, SeparatedSyntaxList<SyntaxNode> arguments,
613var argumentParameter = _semanticFacts.FindParameterForArgument(invocationSemanticModel, arguments[i], cancellationToken);
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic (34)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ArgumentSyntaxExtensions.vb (1)
28) As IParameterSymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (16)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Microsoft.CodeAnalysis.VisualBasic.Features (19)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (21)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ArgumentSyntaxExtensions.vb (1)
28) As IParameterSymbol
Microsoft.CodeAnalysis.Workspaces (191)
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (14)
19internal sealed class ParameterSymbolReferenceFinder : AbstractReferenceFinder<IParameterSymbol>
21protected override bool CanFind(IParameterSymbol symbol)
25IParameterSymbol symbol,
43IParameterSymbol symbol,
54IParameterSymbol parameter,
74private static void CascadeBetweenAnonymousDelegateParameters(IParameterSymbol parameter, ArrayBuilder<ISymbol> symbols)
84IParameterSymbol parameter, ArrayBuilder<ISymbol> symbols, CancellationToken cancellationToken)
91IParameterSymbol parameter,
132IParameterSymbol parameter,
143if (symbol is IParameterSymbol &&
183IParameterSymbol parameter,
204IParameterSymbol parameter,
234ImmutableArray<IParameterSymbol>? parameters)
241IParameterSymbol parameter,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (16)
56ImmutableArray<IParameterSymbol> parameters,
85ImmutableArray<IParameterSymbol> parameters, IMethodSymbol? getMethod, IMethodSymbol? setMethod,
129ImmutableArray<IParameterSymbol> parameters,
162ImmutableArray<IParameterSymbol> parameters,
183ImmutableArray<IParameterSymbol> parameters,
202ImmutableArray<IParameterSymbol> parameters,
226IParameterSymbol fromType,
254IParameterSymbol fromType,
269public static IParameterSymbol CreateParameterSymbol(ITypeSymbol type, string name)
272public static IParameterSymbol CreateParameterSymbol(RefKind refKind, ITypeSymbol type, string name)
281public static IParameterSymbol CreateParameterSymbol(
290public static IParameterSymbol CreateParameterSymbol(
291IParameterSymbol parameter,
472ImmutableArray<IParameterSymbol> parameters = default,
522ImmutableArray<IParameterSymbol>? parameters = null,
548ImmutableArray<IParameterSymbol>? parameters = null,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConversionSymbol.cs (1)
23IParameterSymbol fromType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (15)
61ImmutableArray<IParameterSymbol> parameters)
68IParameterSymbol parameter)
124: throughMember is IParameterSymbol
292ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewFieldMap, bool isContainedInUnsafeType)
295foreach (var parameter in parameters)
314ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string>? parameterToNewPropertyMap, bool isContainedInUnsafeType)
317foreach (var parameter in parameters)
347ImmutableArray<IParameterSymbol> parameters,
356foreach (var parameter in parameters)
398IParameterSymbol parameter,
435this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter, SyntaxNode fieldAccess)
444public static SyntaxNode CreateThrowArgumentNullExpression(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
447private static SyntaxNode CreateNewArgumentNullException(SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
460IParameterSymbol parameter)
479public static SyntaxNode CreateThrowArgumentNullExceptionStatement(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (6)
29protected abstract bool TryUpdateTupleAssignment(IBlockOperation? blockStatement, IParameterSymbol parameter, ISymbol fieldOrProperty, SyntaxEditor editor);
31Document document, IParameterSymbol parameter, ISymbol fieldOrProperty, CancellationToken cancellationToken);
84IParameterSymbol parameter,
113IParameterSymbol parameter,
137IParameterSymbol parameter,
165IParameterSymbol parameter, IBlockOperation? blockStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (9)
16public static ImmutableArray<(IParameterSymbol parameter, bool before)> GetSiblingParameters(IParameterSymbol parameter)
18using var _ = ArrayBuilder<(IParameterSymbol, bool before)>.GetInstance(out var siblings);
38public static bool IsParameterReference(IOperation? operation, IParameterSymbol parameter)
43IOperation? value, IParameterSymbol parameter)
63public static string GenerateUniqueName(IParameterSymbol parameter, ImmutableArray<string> parameterNameParts, NamingRule rule)
76public static IOperation? TryFindFieldOrPropertyAssignmentStatement(IParameterSymbol parameter, IBlockOperation? blockStatement)
80IParameterSymbol parameter, IBlockOperation? blockStatement, out ISymbol? fieldOrProperty)
142IAssignmentOperation assignmentExpression, IParameterSymbol parameter)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (6)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging (9)
Microsoft.Gen.Logging.Unit.Tests (7)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Interop.SourceGeneration (4)
Microsoft.ML.InternalCodeAnalyzer (2)
Microsoft.VisualStudio.LanguageServices (10)
Microsoft.VisualStudio.LanguageServices.CSharp (5)
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.VisualBasic (5)
Mvc.Analyzers.Test (8)
Mvc.Api.Analyzers.Test (3)
System.Text.Json.SourceGeneration (2)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (1)