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