Implemented interface member:
127 references to
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
330return argumentList.Arguments[index];
Microsoft.CodeAnalysis (11)
Syntax\SeparatedSyntaxList.cs (10)
228return this[this.Count - 1]; 235return this[this.Count - 1]; 250if (object.Equals(this[i], node)) 263if (predicate(this[i])) 276if (this[i].RawKind == rawKind) 289if (object.Equals(this[i], node)) 302if (predicate(this[i])) 320if (predicate(this[i])) 410int insertionIndex = index < this.Count ? nodesWithSeps.IndexOf(this[index]) : nodesWithSeps.Count; 476return this.Remove(this[index]);
Syntax\SeparatedSyntaxList.Enumerator.cs (1)
45return _list[_index];
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
241return arguments[parameterWithMatchingName.Ordinal];
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (8)
137if (syntaxFacts.GetNameForArgument(arguments[i]) is string name 145var argumentExpression = GetExpressionOfArgument(arguments[i]); 149newArguments.Add(arguments[i]); 158newArguments.Add(GenerateNewArgument(arguments[i], paramsType.ElementType)); 159if (arguments[i].Equals(targetArgument)) 164newArguments.Add(GenerateNewArgument(arguments[i], parameterType)); 165if (arguments[i].Equals(targetArgument)) 181newArguments.Add(arguments[i]);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
443var argument = arguments[i];
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Constraints.cs (2)
130var syntax = constraintsSyntax[i]; 208if (i != n - 1 && constraintsSyntax[i + 1].Kind() != SyntaxKind.AllowsConstraintClause)
Binder\Binder_Crefs.cs (1)
898TypeSyntax typeArgumentSyntax = typeArgumentSyntaxes[i];
Binder\Binder_Expressions.cs (3)
1024ArgumentSyntax argumentSyntax = arguments[i]; 1089ArgumentSyntax argumentSyntax = arguments[i]; 7565Error(diagnostics, ErrorCode.ERR_BadTypeArgument, typeArgumentsSyntax[i], typeArgument.Type);
Binder\Binder_Lambda.cs (1)
317var parameter = parameterSyntaxList[i];
Binder\Binder_Statements.cs (1)
2872var syntax = statements[i];
Binder\WithCrefTypeParametersBinder.cs (2)
124if (typeArguments[i].Kind() == SyntaxKind.IdentifierName) 126IdentifierNameSyntax typeParameterSyntax = (IdentifierNameSyntax)typeArguments[i];
BoundTree\UnboundLambda.cs (1)
1549return _parameterSyntaxList.Value[index];
Parser\LanguageParser.cs (1)
12945if (initializers[i] is AssignmentExpressionSyntax
Symbols\ConstraintsHelper.cs (1)
696var location = ordinal < typeArgumentsSyntax.Count ? typeArgumentsSyntax[ordinal].Location : args.Location;
Syntax\CSharpSyntaxRewriter.cs (2)
181var node = list[i]; 220var node = list[i];
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
150argumentIndex == arguments.Count - 1 && arguments[argumentIndex] is { RefKindKeyword.RawKind: (int)SyntaxKind.OutKeyword, Expression: DeclarationExpressionSyntax { Designation: SingleVariableDesignationSyntax singleVariable } }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
365matchesInReverse.Add(new(arguments[i], useSpread));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
52var argument = tuple.Arguments[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (4)
608previousExpression = argumentList.Arguments[argumentIndex - 1].Expression; 617previousExpression = initializer.Expressions[expressionIndex - 1]; 643nextExpression = argumentList.Arguments[argumentIndex + 1].Expression; 652nextExpression = initializer.Expressions[expressionIndex + 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
310var ordering = orderByClauseSyntax.Orderings[index + 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
892builder.Append(typeParameterList.Parameters[i].Identifier.ValueText);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
119var xArg = x.TypeArgumentList.Arguments[i]; 120var yArg = y.TypeArgumentList.Arguments[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
217var originalParam = originalParams[i]; 218var replacedParam = replacedParams[i];
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
167var argumentExpression = tuple.Arguments[i].Expression;
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
114var argument = arguments[i + index];
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
174var designation = parensDesignation.Variables[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
348var node = list[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
2062var previousArm = switchExpression.Arms[armIndex - 1]; 2070var nextArm = switchExpression.Arms[armIndex + 1];
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
448relocatedPosition = forStatementSyntax.Initializers[separatorIndex].Span.End;
Microsoft.CodeAnalysis.CSharp.Features (14)
ChangeSignature\CSharpChangeSignatureService.cs (1)
759? TransferLeadingWhitespaceTrivia(newArgument, oldArguments[index])
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
192var variable = localDeclarationStatement.Declaration.Variables[i];
EditAndContinue\BreakpointSpans.cs (5)
242return parameters[i]; 886if (left >= 0 && declarators[left].Initializer != null) 888return declarators[left]; 891if (right < declarators.Count && declarators[right].Initializer != null) 893return declarators[right];
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1952return ((ParenthesizedLambdaExpressionSyntax)lambda).ParameterList.Parameters[ordinal].Identifier.Span; 1960return ((AnonymousMethodExpressionSyntax)lambda).ParameterList!.Parameters[ordinal].Identifier.Span;
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
150argumentIndex == arguments.Count - 1 && arguments[argumentIndex] is { RefKindKeyword.RawKind: (int)SyntaxKind.OutKeyword, Expression: DeclarationExpressionSyntax { Designation: SingleVariableDesignationSyntax singleVariable } }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
365matchesInReverse.Add(new(arguments[i], useSpread));
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
167var argumentExpression = tuple.Arguments[i].Expression;
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
114var argument = arguments[i + index];
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
174var designation = parensDesignation.Variables[i];
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
3657symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(((InitializerExpressionSyntax)nodes[0]).Expressions[i]); 3941symbolInfo = semanticModel.GetSymbolInfo(((AssignmentExpressionSyntax)nodes[i]).Left);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
370var propertyInitializer = anonObjectCreation.Initializers[propIndex];
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
IncrementalParsing\NodeValidators.cs (1)
70Assert.Equal(genericName.TypeArgumentList.Arguments[i].ToString(), str);
LexicalAndXml\PreprocessorTests.cs (1)
337var actualWarningNumber = pwd.ErrorCodes[idx++];
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
243var paramSyntax = paramSyntaxes[i].Type!;
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
64var parameter = parameters[ordinalInLambda];
Simplification\CSharpSimplificationService.Expander.cs (1)
190var currentParameter = newParameters[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
52var argument = tuple.Arguments[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (4)
608previousExpression = argumentList.Arguments[argumentIndex - 1].Expression; 617previousExpression = initializer.Expressions[expressionIndex - 1]; 643nextExpression = argumentList.Arguments[argumentIndex + 1].Expression; 652nextExpression = initializer.Expressions[expressionIndex + 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
310var ordering = orderByClauseSyntax.Orderings[index + 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
892builder.Append(typeParameterList.Parameters[i].Identifier.ValueText);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
119var xArg = x.TypeArgumentList.Arguments[i]; 120var yArg = y.TypeArgumentList.Arguments[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
217var originalParam = originalParams[i]; 218var replacedParam = replacedParams[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
348var node = list[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
2062var previousArm = switchExpression.Arms[armIndex - 1]; 2070var nextArm = switchExpression.Arms[armIndex + 1];
Microsoft.CodeAnalysis.Features (22)
ChangeSignature\AbstractChangeSignatureService.cs (7)
698var param = list[pos]; 702param = TransferLeadingWhitespaceTrivia(param, list[index]); 718newParameter = TransferLeadingWhitespaceTrivia(newParameter, list[index]); 856var newArgument = newArguments[indexInListOfPreexistingArguments]; 870if (SyntaxFacts.IsNamedArgument(newArguments[indexInListOfPreexistingArguments])) 880var newArgument = newArguments[indexInListOfPreexistingArguments]; 904fullList.Add(newArguments[indexInListOfPreexistingArguments++]);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
155var argument = arguments[i];
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
319requiredArguments.Add(currentInvocationArguments[index]); 551var updatedInvocationArgument = updatedInvocationArguments[index]; 613var argumentParameter = _semanticFacts.FindParameterForArgument(invocationSemanticModel, arguments[i], cancellationToken);
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
241return arguments[parameterWithMatchingName.Ordinal];
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (8)
137if (syntaxFacts.GetNameForArgument(arguments[i]) is string name 145var argumentExpression = GetExpressionOfArgument(arguments[i]); 149newArguments.Add(arguments[i]); 158newArguments.Add(GenerateNewArgument(arguments[i], paramsType.ElementType)); 159if (arguments[i].Equals(targetArgument)) 164newArguments.Add(GenerateNewArgument(arguments[i], parameterType)); 165if (arguments[i].Equals(targetArgument)) 181newArguments.Add(arguments[i]);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
443var argument = arguments[i];
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
96if (arguments[i] is not TSimpleArgumentSyntax simpleArgumet)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
615TypeParameterSyntax parameter = typeDeclaration.TypeParameterList.Parameters[i];
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
222location = ((GenericNameSyntax)expression).TypeArgumentList.Arguments[ordinal].GetLocation();
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckAnalyzer.cs (1)
111var arg = syntaxArgs[i];
Microsoft.VisualStudio.LanguageServices.CSharp (9)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (6)
116var oldArgument = oldArguments[i]; 117var newArgument = newArguments[i]; 697if (!CompareTypes(oldTypes[i].Type, newTypes[i].Type)) 754if (!CompareTypes(oldGenericName.TypeArgumentList.Arguments[i], newGenericName.TypeArgumentList.Arguments[i]))
CodeModel\CSharpCodeModelService.cs (3)
1610attributeArgumentNode = attribute.ArgumentList.Arguments[index]; 3239var lastMember = enumDeclaration.Members[index - 1]; 3275return enumDeclaration.Members[index];