174 references to Arguments
Microsoft.CodeAnalysis.VisualBasic (30)
Binding\Binder_Attributes.vb (1)
389Dim arguments As SeparatedSyntaxList(Of ArgumentSyntax) = argumentListOpt.Arguments
Binding\Binder_Delegates.vb (3)
93argumentCount = argumentListOpt.Arguments.Count 99Dim argumentSyntax = argumentListOpt.Arguments(0) 174Dim argumentSyntax = argumentListOpt.Arguments(argumentIndex)
Binding\Binder_Expressions.vb (1)
4317Dim arguments As SeparatedSyntaxList(Of ArgumentSyntax) = arrayBoundsOpt.Arguments
Binding\Binder_Invocation.vb (1)
2989Dim arguments = argumentListOpt.Arguments
Binding\Binder_ObjectInitializer.vb (2)
86If argumentListOpt Is Nothing OrElse argumentListOpt.Arguments.Count = 0 Then 308Dim span = argumentListOpt.Arguments.Span
Binding\Binder_Statements.vb (1)
2172Dim midArguments As SeparatedSyntaxList(Of ArgumentSyntax) = midExpression.ArgumentList.Arguments
Binding\Binder_Utils.vb (1)
362Dim rank As Integer = arrayBoundsOpt.Arguments.Count
Errors\MessageProvider.vb (5)
499diagnostics.Add(ERRID.ERR_BadAttribute1, node.ArgumentList.Arguments(parameterIndex).GetLocation(), attribute.AttributeClass) 504diagnostics.Add(ERRID.ERR_BadAttribute1, node.ArgumentList.Arguments(namedArgumentIndex).GetLocation(), attributeClass) 509diagnostics.Add(ERRID.ERR_ParameterNotValidForType, node.ArgumentList.Arguments(namedArgumentIndex).GetLocation()) 514diagnostics.Add(ERRID.ERR_MarshalUnmanagedTypeNotValidForFields, node.ArgumentList.Arguments(parameterIndex).GetLocation(), unmanagedTypeName) 519diagnostics.Add(ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields, node.ArgumentList.Arguments(parameterIndex).GetLocation(), unmanagedTypeName)
Generated\Syntax.xml.Main.Generated.vb (1)
4276Dim newArguments = VisitList(node.Arguments)
Generated\Syntax.xml.Syntax.Generated.vb (4)
26504return Update(openParenToken, Me.Arguments, Me.CloseParenToken) 26534Return Me.WithArguments(Me.Arguments.AddRange(items)) 26552return Update(Me.OpenParenToken, Me.Arguments, closeParenToken) 26596If openParenToken <> Me.OpenParenToken OrElse arguments <> Me.Arguments OrElse closeParenToken <> Me.CloseParenToken Then
Symbols\Attributes\AttributeData.vb (4)
94attributeSyntax.ArgumentList.Arguments.Where(Function(arg) arg.Kind = SyntaxKind.SimpleArgument AndAlso Not arg.IsNamed).Count, 261If nodeOpt.ArgumentList IsNot Nothing AndAlso nodeOpt.ArgumentList.Arguments.Count > argumentIndex Then 262Dim arg As ArgumentSyntax = nodeOpt.ArgumentList.Arguments(argumentIndex) 400arguments.AttributeSyntaxOpt.ArgumentList.Arguments(1).GetLocation(),
Symbols\Source\SourceAssemblySymbol.vb (1)
1125Return attributeSyntaxOpt.ArgumentList.Arguments.First().GetLocation()
Symbols\Source\SourceMemberFieldSymbol.vb (1)
602(modifiedIdentifier.ArrayBounds.Arguments.Count > 0) Then
Symbols\Source\SourceMethodSymbol.vb (1)
1673diagnostics.Add(ERRID.ERR_BadAttribute1, arguments.AttributeSyntaxOpt.ArgumentList.Arguments(position).GetLocation(), attrData.AttributeClass)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
154For Each argumentSyntax As ArgumentSyntax In attr.ArgumentList.Arguments
Syntax\SyntaxNodeExtensions.vb (2)
167If invocation.ArgumentList Is Nothing OrElse invocation.ArgumentList.Arguments.Count = 0 Then 174If invocation.ArgumentList.Arguments.Count = 1 Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
ArgumentSyntaxExtensions.vb (1)
59Dim index = argumentList.Arguments.IndexOf(argument)
ExpressionSyntaxExtensions.vb (1)
294Dim index = argumentList.Arguments.IndexOf(simpleArgument)
InvocationExpressionSyntaxExtensions.vb (1)
13Return invocationExpression.ArgumentList IsNot Nothing AndAlso invocationExpression.ArgumentList.Arguments.Count = 0 AndAlso
SemanticModelExtensions.vb (1)
252Dim index = argumentList.Arguments.IndexOf(argument)
SpeculationAnalyzer.vb (1)
485argumentList.Arguments.AsImmutable(),
VisualBasicSyntaxFacts.vb (2)
1229Return DirectCast(node, ArgumentListSyntax).Arguments 1774arguments = argumentList.Arguments
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (19)
ArgumentFixer.vb (1)
33Return argumentList.Arguments
ArgumentListSyntaxExtensions.vb (3)
13Dim count = argumentList.Arguments.Count 14If count = 1 AndAlso argumentList.Arguments.Last().IsMissing AndAlso argumentList.Arguments.SeparatorCount = 0 Then
ObjectCreationExpressionExtensions.vb (1)
17If objectCreationExpression.ArgumentList.Arguments.Count > 0 Then
SpecialFormattingOperation.vb (3)
116argumentList.Arguments.Count = 0 OrElse 117argumentList.Arguments.All(Function(a) a.IsMissing) Then 130For Each argument In argumentList.Arguments
SyntaxTokenExtensions.vb (1)
133For Each n In argumentList.Arguments.GetWithSeparators()
UseInitializerHelpers.vb (1)
15objectCreation.ArgumentList.Arguments.Count = 0 Then
VisualBasicAddExplicitCastCodeFixProvider.vb (1)
184Dim targetArgument = GetTargetArgument(document, semanticModel, candidateSymbol.Parameters, argumentList.Arguments)
VisualBasicTypeInferenceService.TypeInferrer.vb (7)
241index = invocation.ArgumentList.Arguments.IndexOf(argumentOpt) 301index = creation.ArgumentList.Arguments.IndexOf(argumentOpt) 325index = attribute.ArgumentList.Arguments.IndexOf(argumentOpt) 934If invocation.ArgumentList IsNot Nothing AndAlso invocation.ArgumentList.Arguments.Count > 0 AndAlso 935TypeOf invocation.ArgumentList.Arguments(0) Is SimpleArgumentSyntax Then 936Dim argumentExpression = DirectCast(invocation.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1026Dim index = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken)
VisualBasicUseCollectionInitializerCodeFixProvider.vb (1)
77Dim arguments = invocationExpression.ArgumentList.Arguments
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Completion\ArgumentProviders\AbstractVisualBasicArgumentProviderTests.vb (1)
16Return (argumentList, argumentList.Arguments.Cast(Of SyntaxNode)().ToImmutableArray())
Microsoft.CodeAnalysis.VisualBasic.Features (33)
ArgumentFixer.vb (1)
33Return argumentList.Arguments
ChangeSignature\VisualBasicChangeSignatureService.vb (5)
143Dim argument = invocation?.ArgumentList?.Arguments.FirstOrDefault(Function(a) a.Span.Contains(position)) 500argumentList.Arguments, 549argumentCount = argumentList.Arguments.Count 550Dim isNamed = argumentList.Arguments.LastOrDefault()?.IsNamed 552lastArgumentExpression = argumentList.Arguments.LastOrDefault()?.GetExpression()
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.vb (1)
48Dim arguments = DirectCast(internalsVisibleToAttribute, AttributeSyntax).ArgumentList.Arguments
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
122argumentList.Arguments.OfType(Of SimpleArgumentSyntax).
Completion\KeywordRecommenders\Declarations\ToKeywordRecommender.vb (1)
32modifiedIdentifier.ArrayBounds.Arguments.Contains(simpleArgument) Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
233arrayBounds.Arguments.
ExtractMethod\Extensions.vb (1)
134Dim argumentIndex = invocation.ArgumentList.Arguments.IndexOf(argument)
GenerateConstructor\VisualBasicGenerateConstructorService.vb (3)
73arguments = GetArguments(invocation.ArgumentList.Arguments) 112arguments = GetArguments(objectCreationExpression.ArgumentList.Arguments) 147arguments = GetArguments(attribute.ArgumentList.Arguments)
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (4)
67For Each argument In Me.InvocationExpression.ArgumentList.Arguments 133Me.InvocationExpression.ArgumentList.Arguments.Select(Function(a) RefKind.None).ToImmutableArray(), 139Me.InvocationExpression.ArgumentList.Arguments.Select(Function(a) DetermineParameterType(a, cancellationToken)).ToImmutableArray(), 145Me.InvocationExpression.ArgumentList.Arguments.Select(AddressOf DetermineParameterOptionality).ToImmutableArray(),
GenerateType\VisualBasicGenerateTypeService.vb (5)
84argumentList = objectCreationExpression.ArgumentList.Arguments.ToList() 286objectCreationExpressionOpt.ArgumentList.Arguments.Count = 1 AndAlso 287TypeOf objectCreationExpressionOpt.ArgumentList.Arguments(0) Is SimpleArgumentSyntax Then 288Dim simpleArgumentExpression = DirectCast(objectCreationExpressionOpt.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 298ElseIf objectCreationExpressionOpt.ArgumentList.Arguments.Count <> 1 Then
InlineHints\VisualBasicInlineParameterNameHintsService.vb (1)
36For Each arg In argumentList.Arguments
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (2)
202If invocationExpression.ArgumentList?.Arguments.Count <> 1 Then 208invocationExpression.ArgumentList.Arguments(0).GetExpression())
SignatureHelp\SignatureHelpUtilities.vb (2)
35Private ReadOnly s_getArgumentListArgumentsWithSeparators As Func(Of ArgumentListSyntax, SyntaxNodeOrTokenList) = Function(list) list.Arguments.GetWithSeparators() 40Function(list) list.Arguments.Select(Function(a)
UseInitializerHelpers.vb (1)
15objectCreation.ArgumentList.Arguments.Count = 0 Then
UseNamedArguments\VisualBasicUseNamedArgumentsCodeRefactoringProvider.vb (1)
26Return argumentList.Arguments
VisualBasicAddExplicitCastCodeFixProvider.vb (1)
184Dim targetArgument = GetTargetArgument(document, semanticModel, candidateSymbol.Parameters, argumentList.Arguments)
VisualBasicUseCollectionInitializerCodeFixProvider.vb (1)
77Dim arguments = invocationExpression.ArgumentList.Arguments
Wrapping\SeparatedSyntaxList\VisualBasicArgumentWrapper.vb (1)
37Return listSyntax.Arguments
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Compilation\SemanticModelAPITests.vb (8)
785Dim arg = DirectCast(DirectCast(call1.Expression, InvocationExpressionSyntax).ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 792arg = DirectCast(DirectCast(call2.Expression, InvocationExpressionSyntax).ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1248Dim argument = DirectCast(attr2.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1265argument = DirectCast(attr3.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1313argument = DirectCast(attr6.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1349argument = DirectCast(attr8.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1457Dim arg = DirectCast(DirectCast(call1.Expression, InvocationExpressionSyntax).ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1465arg = DirectCast(DirectCast(call2.Expression, InvocationExpressionSyntax).ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolDisplay\SymbolDisplayTests.vb (1)
5275Dim escapedThis = invocation.ArgumentList.Arguments(0).GetExpression()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (30)
Generated\Syntax.Test.xml.Generated.vb (1)
21027Dim withObj = objectUnderTest.WithOpenParenToken(objectUnderTest.OpenParenToken).WithArguments(objectUnderTest.Arguments).WithCloseParenToken(objectUnderTest.CloseParenToken)
Syntax\SyntaxListTests.vb (1)
217Assert.Equal(alphabet.Length, parsedArgumentList.Arguments.Count)
Syntax\SyntaxRewriterTests.vb (3)
552Dim newRoot = root.ReplaceNode(invocation.ArgumentList.Arguments(0), New SyntaxNode() {argC, argD}) 573Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), New SyntaxNode() {argC, argD}) 580Dim newNode2 = invocation.InsertNodesAfter(invocation.ArgumentList.Arguments(0), New SyntaxNode() {argC, argD})
TestSyntaxNodes.vb (25)
66Assert.Equal(argList, argList.Arguments(0).Parent) 67Assert.Equal(argList, argList.Arguments(1).Parent) 68Assert.Equal(argList, argList.Arguments.GetWithSeparators(1).Parent) 69Assert.Equal(argList, argList.Arguments.GetWithSeparators(3).Parent) 81Assert.Equal(children(1), argList.Arguments(0)) 82Assert.Equal(children(2), argList.Arguments.GetWithSeparators(1)) 83Assert.Equal(children(3), argList.Arguments(1)) 84Assert.Equal(children(4), argList.Arguments.GetWithSeparators(3)) 85Assert.Equal(children(5), argList.Arguments(2)) 393Assert.Equal(New TextSpan(6, 1), argList.Arguments(0).Span) 394Assert.Equal(New TextSpan(7, 1), argList.Arguments.GetWithSeparators(1).Span) 395Assert.Equal(New TextSpan(9, 4), argList.Arguments(1).Span) 396Assert.Equal(New TextSpan(13, 1), argList.Arguments.GetWithSeparators(3).Span) 397Assert.Equal(New TextSpan(15, 1), argList.Arguments(2).Span) 581Assert.NotNull(arglist.Arguments) 582Assert.Equal(0, arglist.Arguments.Count) 583Assert.Equal(0, arglist.Arguments.SeparatorCount) 1300Dim newNode = invocation.ReplaceNode(invocation.ArgumentList.Arguments(0), {argC, argD}) 1304newNode = invocation.ReplaceNode(invocation.ArgumentList.Arguments(1), {argC, argD}) 1308newNode = invocation.ReplaceNode(invocation.ArgumentList.Arguments(0), New SyntaxNode() {}) 1312newNode = invocation.ReplaceNode(invocation.ArgumentList.Arguments(1), New SyntaxNode() {}) 1337Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), {argC, argD}) 1341newNode = invocation.InsertNodesAfter(invocation.ArgumentList.Arguments(0), {argC, argD}) 1345newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(1), {argC, argD}) 1349newNode = invocation.InsertNodesAfter(invocation.ArgumentList.Arguments(1), {argC, argD})
Microsoft.CodeAnalysis.VisualBasic.Workspaces (33)
ArgumentListSyntaxExtensions.vb (3)
13Dim count = argumentList.Arguments.Count 14If count = 1 AndAlso argumentList.Arguments.Last().IsMissing AndAlso argumentList.Arguments.SeparatorCount = 0 Then
ArgumentSyntaxExtensions.vb (1)
59Dim index = argumentList.Arguments.IndexOf(argument)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
316argsList.Arguments = Nothing AndAlso
CodeGeneration\VisualBasicSyntaxGenerator.vb (4)
3506Return list.Arguments 3523list = list.WithArguments(list.Arguments.InsertRange(index, newArguments.Arguments)) 3908If argList.Arguments.Count = 1 Then
Extensions\SemanticModelExtensions.vb (1)
26semanticModel, arguments.Arguments.ToList(),
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (1)
387If attribute.ArgumentList?.Arguments.Count > 0 Then
InvocationExpressionSyntaxExtensions.vb (1)
13Return invocationExpression.ArgumentList IsNot Nothing AndAlso invocationExpression.ArgumentList.Arguments.Count = 0 AndAlso
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (1)
294Dim index = argumentList.Arguments.IndexOf(simpleArgument)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb\SyntaxTokenExtensions.vb (1)
133For Each n In argumentList.Arguments.GetWithSeparators()
ObjectCreationExpressionExtensions.vb (1)
17If objectCreationExpression.ArgumentList.Arguments.Count > 0 Then
SemanticModelExtensions.vb (1)
252Dim index = argumentList.Arguments.IndexOf(argument)
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (3)
44Dim noOfArguments = argumentList.Arguments.Count 47Dim newMemberAccess = SyntaxFactory.SimpleMemberAccessExpression(argumentList.Arguments(0).GetArgumentExpression(), memberAccess.OperatorToken, memberAccess.Name) 51Dim newArguments = SyntaxFactory.SeparatedList(Of ArgumentSyntax)(argumentList.Arguments.GetWithSeparators().AsEnumerable().Skip(2))
Simplification\VisualBasicSimplificationService.Expander.vb (1)
271Dim arguments = originalNode.ArgumentList.Arguments.Insert(0, thisArgument)
SpecialFormattingOperation.vb (3)
116argumentList.Arguments.Count = 0 OrElse 117argumentList.Arguments.All(Function(a) a.IsMissing) Then 130For Each argument In argumentList.Arguments
SpeculationAnalyzer.vb (1)
485argumentList.Arguments.AsImmutable(),
VisualBasicSyntaxFacts.vb (2)
1229Return DirectCast(node, ArgumentListSyntax).Arguments 1774arguments = argumentList.Arguments
VisualBasicTypeInferenceService.TypeInferrer.vb (7)
241index = invocation.ArgumentList.Arguments.IndexOf(argumentOpt) 301index = creation.ArgumentList.Arguments.IndexOf(argumentOpt) 325index = attribute.ArgumentList.Arguments.IndexOf(argumentOpt) 934If invocation.ArgumentList IsNot Nothing AndAlso invocation.ArgumentList.Arguments.Count > 0 AndAlso 935TypeOf invocation.ArgumentList.Arguments(0) Is SimpleArgumentSyntax Then 936Dim argumentExpression = DirectCast(invocation.ArgumentList.Arguments(0), SimpleArgumentSyntax).Expression 1026Dim index = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken)
Microsoft.VisualStudio.LanguageServices.VisualBasic (12)
CodeModel\MethodXML\MethodXmlBuilder.vb (3)
303For Each argument In objectCreationExpression.ArgumentList.Arguments 452For Each argument In invocationExpression.ArgumentList.Arguments 620For Each argument In argumentList.Arguments
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (2)
227Dim oldArguments = If(oldArgumentList IsNot Nothing, oldArgumentList.Arguments, Nothing) 228Dim newArguments = If(newArgumentList IsNot Nothing, newArgumentList.Arguments, Nothing)
CodeModel\VisualBasicCodeModelService.vb (7)
417Return attribute.ArgumentList.Arguments 1266attribute.ArgumentList.Arguments.Count > index Then 1268attributeArgumentNode = attribute.ArgumentList.Arguments(index) 1825Return argumentList.Arguments.ToString() 1839argumentList.WithArguments(parsedArgumentList.Arguments), 1868index = attribute.ArgumentList.Arguments.IndexOf(DirectCast(attributeArgumentNode, ArgumentSyntax)) 3786Dim newArguments = argumentList.Arguments.Insert(index, DirectCast(attributeArgument, ArgumentSyntax))