152 references to ArgumentList
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Expressions.vb (2)
3923
Dim int32Type = GetSpecialType(SpecialType.System_Int32, node.
ArgumentList
, diagnostics)
3949
ReportDiagnostic(diagnostics, node.
ArgumentList
, err)
Binding\Binder_Invocation.vb (2)
109
Dim argumentList As ArgumentListSyntax = node.
ArgumentList
190
Me.BindArgumentsAndNames(node.
ArgumentList
, boundArguments, argumentNames, argumentNamesLocations, diagnostics)
Generated\Syntax.xml.Main.Generated.vb (2)
3960
Dim newArgumentList = DirectCast(Visit(node.
ArgumentList
), ArgumentListSyntax)
3961
If node.
ArgumentList
IsNot newArgumentList Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (5)
23151
return Update(expression, Me.
ArgumentList
)
23176
Dim _child = If(Me.
ArgumentList
IsNot Nothing, Me.
ArgumentList
, SyntaxFactory.ArgumentList())
23196
Return Me.
ArgumentList
23222
If expression IsNot Me.Expression OrElse argumentList IsNot Me.
ArgumentList
Then
Syntax\SyntaxNodeExtensions.vb (4)
167
If invocation.
ArgumentList
Is Nothing OrElse invocation.
ArgumentList
.Arguments.Count = 0 Then
172
Debug.Assert(invocation.
ArgumentList
IsNot Nothing)
174
If invocation.
ArgumentList
.Arguments.Count = 1 Then
Microsoft.CodeAnalysis.VisualBasic.Analyzers (4)
MetaAnalyzers\BasicRegisterActionAnalyzer.vb (2)
68
If invocation.
ArgumentList
IsNot Nothing Then
69
Return invocation.
ArgumentList
.Arguments.Select(Function(a) a.GetExpression)
MetaAnalyzers\BasicReportDiagnosticAnalyzer.vb (2)
35
If invocation.
ArgumentList
IsNot Nothing Then
36
Return invocation.
ArgumentList
.Arguments.Select(Function(a) a.GetExpression)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (2)
13
Return invocationExpression.
ArgumentList
IsNot Nothing AndAlso invocationExpression.
ArgumentList
.Arguments.Count = 0 AndAlso
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (3)
265
If invocationExpression.
ArgumentList
Is Nothing Then
303
parentInvocation.
ArgumentList
IsNot Nothing AndAlso
304
parentInvocation.
ArgumentList
.OpenParenToken = nextToken Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
564
argumentList = invocation?.
ArgumentList
1810
argumentList = invocation.
ArgumentList
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
494
Return DirectCast(expression, InvocationExpressionSyntax).
ArgumentList
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (29)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (5)
241
index = invocation.
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
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (3)
66
If invocation.
ArgumentList
IsNot Nothing AndAlso Not invocation.
ArgumentList
.CloseParenToken.IsMissing Then
72
arguments = GetArguments(invocation.
ArgumentList
.Arguments)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\VisualBasicGenerateEnumMemberService.vb (1)
39
If invocation.
ArgumentList
IsNot Nothing Then
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateMethodService.vb (4)
117
Return invocationExpressionOpt.
ArgumentList
Is Nothing OrElse
118
Not invocationExpressionOpt.
ArgumentList
.CloseParenToken.IsMissing
121
Return invocationExpressionOpt.
ArgumentList
Is Nothing OrElse
122
Not invocationExpressionOpt.
ArgumentList
.CloseParenToken.IsMissing
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (12)
33
Me.InvocationExpression.
ArgumentList
, reservedNames:=typeParametersNames, cancellationToken:=cancellationToken)
65
If Me.InvocationExpression.
ArgumentList
IsNot Nothing Then
66
For Each argument In Me.InvocationExpression.
ArgumentList
.Arguments
131
Return If(Me.InvocationExpression.
ArgumentList
IsNot Nothing AndAlso Me.InvocationExpression.
ArgumentList
.GetArgumentCount() > 0,
132
Me.InvocationExpression.
ArgumentList
.Arguments.Select(Function(a) RefKind.None).ToImmutableArray(),
137
Return If(Me.InvocationExpression.
ArgumentList
IsNot Nothing AndAlso Me.InvocationExpression.
ArgumentList
.GetArgumentCount() > 0,
138
Me.InvocationExpression.
ArgumentList
.Arguments.Select(Function(a) DetermineParameterType(a, cancellationToken)).ToImmutableArray(),
143
Return If(Me.InvocationExpression.
ArgumentList
IsNot Nothing AndAlso Me.InvocationExpression.
ArgumentList
.GetArgumentCount() > 0,
144
Me.InvocationExpression.
ArgumentList
.Arguments.Select(AddressOf DetermineParameterOptionality).ToImmutableArray(),
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseCollectionInitializer\VisualBasicUseCollectionInitializerCodeFixProvider.vb (1)
95
Dim arguments = invocationExpression.
ArgumentList
.Arguments
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
870
If invocationExpression IsNot Nothing AndAlso invocationExpression.
ArgumentList
IsNot Nothing Then
871
Return invocationExpression.
ArgumentList
.CloseParenToken
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SimpleNameSyntaxExtensions.vb (1)
38
If invocationExpression.Expression Is simpleName AndAlso invocationExpression.
ArgumentList
IsNot Nothing Then
Microsoft.CodeAnalysis.VisualBasic.Features (34)
ChangeSignature\VisualBasicChangeSignatureService.vb (3)
363
If invocation.
ArgumentList
Is Nothing Then
379
invocation.
ArgumentList
,
534
GetArgumentListDetailsRegardingParamsArrays(invocation.
ArgumentList
, argumentCount, lastArgumentIsNamed, lastArgumentExpression)
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (2)
203
If invocationExpression.
ArgumentList
?.Arguments.Count <> 1 Then
209
invocationExpression.
ArgumentList
.Arguments(0).GetExpression())
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (7)
34
currentSpan.Start = GetSignatureHelpSpan(expression.
ArgumentList
).Start Then
36
Return GetSignatureHelpState(expression.
ArgumentList
, position)
47
Return expression.
ArgumentList
IsNot Nothing
57
Return node.
ArgumentList
IsNot Nothing AndAlso
58
node.
ArgumentList
.Span.Contains(token.SpanStart) AndAlso
59
token <> node.
ArgumentList
.CloseParenToken
130
Dim textSpan = GetSignatureHelpSpan(invocationExpression.
ArgumentList
)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (3)
66
If invocation.
ArgumentList
IsNot Nothing AndAlso Not invocation.
ArgumentList
.CloseParenToken.IsMissing Then
72
arguments = GetArguments(invocation.
ArgumentList
.Arguments)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateEnumMember\VisualBasicGenerateEnumMemberService.vb (1)
39
If invocation.
ArgumentList
IsNot Nothing Then
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateMethodService.vb (4)
117
Return invocationExpressionOpt.
ArgumentList
Is Nothing OrElse
118
Not invocationExpressionOpt.
ArgumentList
.CloseParenToken.IsMissing
121
Return invocationExpressionOpt.
ArgumentList
Is Nothing OrElse
122
Not invocationExpressionOpt.
ArgumentList
.CloseParenToken.IsMissing
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (12)
33
Me.InvocationExpression.
ArgumentList
, reservedNames:=typeParametersNames, cancellationToken:=cancellationToken)
65
If Me.InvocationExpression.
ArgumentList
IsNot Nothing Then
66
For Each argument In Me.InvocationExpression.
ArgumentList
.Arguments
131
Return If(Me.InvocationExpression.
ArgumentList
IsNot Nothing AndAlso Me.InvocationExpression.
ArgumentList
.GetArgumentCount() > 0,
132
Me.InvocationExpression.
ArgumentList
.Arguments.Select(Function(a) RefKind.None).ToImmutableArray(),
137
Return If(Me.InvocationExpression.
ArgumentList
IsNot Nothing AndAlso Me.InvocationExpression.
ArgumentList
.GetArgumentCount() > 0,
138
Me.InvocationExpression.
ArgumentList
.Arguments.Select(Function(a) DetermineParameterType(a, cancellationToken)).ToImmutableArray(),
143
Return If(Me.InvocationExpression.
ArgumentList
IsNot Nothing AndAlso Me.InvocationExpression.
ArgumentList
.GetArgumentCount() > 0,
144
Me.InvocationExpression.
ArgumentList
.Arguments.Select(AddressOf DetermineParameterOptionality).ToImmutableArray(),
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\UseCollectionInitializer\VisualBasicUseCollectionInitializerCodeFixProvider.vb (1)
95
Dim arguments = invocationExpression.
ArgumentList
.Arguments
Wrapping\SeparatedSyntaxList\VisualBasicArgumentWrapper.vb (1)
41
Return If(TryCast(node, InvocationExpressionSyntax)?.
ArgumentList
,
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (22)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotUseCountWhenAnyCanBeUsedFixer.vb (3)
55
If invocation IsNot Nothing AndAlso invocation.
ArgumentList
.Arguments.Count = 1 Then
58
sourceExpression:=invocation.
ArgumentList
.Arguments(0).GetExpression(),
126
arguments = invocationExpression.
ArgumentList
.ChildNodes()
Microsoft.NetCore.Analyzers\Performance\BasicPreferDictionaryTryMethodsOverContainsKeyGuardFixer.vb (4)
79
If invocation.
ArgumentList
.Arguments.Count = 2 Then
87
changedValueNode = invocation.
ArgumentList
.Arguments(1).GetExpression()
168
Dim keyArgument = fix.ContainsKeyInvocation.
ArgumentList
.Arguments.FirstOrDefault()
232
Dim dictionaryAddArguments = fix.DictionaryAddInvocation.
ArgumentList
.Arguments
Microsoft.NetCore.Analyzers\Performance\BasicPreferHashDataOverComputeHash.Fixer.vb (1)
99
Dim argumentList = DirectCast(computeHashNode, InvocationExpressionSyntax).
ArgumentList
Microsoft.NetCore.Analyzers\Performance\BasicPreferIsEmptyOverCount.Fixer.vb (1)
37
countNode = invocationExpression.
ArgumentList
.Arguments(0).GetExpression()
Microsoft.NetCore.Analyzers\Performance\BasicPreferLengthCountIsEmptyOverAnyFixer.vb (2)
113
If invocation.
ArgumentList
.Arguments.Count > 0 Then
114
expression = invocation.
ArgumentList
.Arguments(0).GetExpression()
Microsoft.NetCore.Analyzers\Performance\BasicUseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.vb (2)
29
For Each argument In invocation.
ArgumentList
.Arguments
43
Return DirectCast(invocation, InvocationExpressionSyntax).
ArgumentList
.Arguments.ToArray()
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocations.Fixer.vb (1)
60
arguments = invocationExpression.
ArgumentList
.Arguments.ToImmutableArray
Microsoft.NetCore.Analyzers\Runtime\BasicPreferAsSpanOverSubstring.Fixer.vb (1)
27
Dim argumentToReplace = cast.
ArgumentList
.Arguments.FirstOrDefault(
Microsoft.NetCore.Analyzers\Runtime\BasicPreferDictionaryContainsMethods.Fixer.vb (1)
30
Return generator.InvocationExpression(containsMemberExpression, DirectCast(invocation, InvocationExpressionSyntax).
ArgumentList
.Arguments)
Microsoft.NetCore.Analyzers\Runtime\BasicSpecifyCultureForToLowerAndToUpper.Fixer.vb (2)
35
If invocation.
ArgumentList
Is Nothing Then
47
If invocation IsNot Nothing AndAlso invocation.
ArgumentList
IsNot Nothing Then
Microsoft.NetCore.Analyzers\Usage\BasicDoNotPassNonNullableValueToArgumentNullExceptionThrowIfNullFixer.vb (1)
16
Dim nullableStructExpression = invocation.
ArgumentList
.Arguments(0).GetExpression()
Microsoft.NetCore.Analyzers\Usage\BasicPreferGenericOverloads.vb (2)
34
Dim argumentList = invocationSyntax.
ArgumentList
.RemoveNodes(
35
invocationSyntax.
ArgumentList
.Arguments.Where(AddressOf invocationContext.IsTypeOfArgumentSyntax),
Microsoft.NetCore.Analyzers\Usage\BasicUseVolatileReadWriteFixer.vb (1)
17
Return ImmutableArray.CreateRange(Of SyntaxNode)(DirectCast(invocationSyntax, InvocationExpressionSyntax).
ArgumentList
.Arguments)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (20)
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (1)
42
Dim argumentList = invocationExpression.
ArgumentList
Simplification\VisualBasicSimplificationService.Expander.vb (3)
198
If newInvocationExpression.
ArgumentList
Is Nothing Then
271
Dim arguments = originalNode.
ArgumentList
.Arguments.Insert(0, thisArgument)
274
originalNode.
ArgumentList
.WithArguments(arguments))
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (5)
241
index = invocation.
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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (2)
13
Return invocationExpression.
ArgumentList
IsNot Nothing AndAlso invocationExpression.
ArgumentList
.Arguments.Count = 0 AndAlso
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (3)
265
If invocationExpression.
ArgumentList
Is Nothing Then
303
parentInvocation.
ArgumentList
IsNot Nothing AndAlso
304
parentInvocation.
ArgumentList
.OpenParenToken = nextToken Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
564
argumentList = invocation?.
ArgumentList
1810
argumentList = invocation.
ArgumentList
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
494
Return DirectCast(expression, InvocationExpressionSyntax).
ArgumentList
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
870
If invocationExpression IsNot Nothing AndAlso invocationExpression.
ArgumentList
IsNot Nothing Then
871
Return invocationExpression.
ArgumentList
.CloseParenToken
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SimpleNameSyntaxExtensions.vb (1)
38
If invocationExpression.Expression Is simpleName AndAlso invocationExpression.
ArgumentList
IsNot Nothing Then
Roslyn.Diagnostics.VisualBasic.Analyzers (20)
BasicSymbolDeclaredEventMustBeGeneratedForSourceSymbols.vb (4)
61
If invocationExpression.
ArgumentList
IsNot Nothing Then
62
Dim argument = invocationExpression.
ArgumentList
.Arguments.FirstOrDefault()
76
If invocationExp.
ArgumentList
IsNot Nothing Then
77
For Each argument In invocationExp.
ArgumentList
.Arguments
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (5)
241
index = invocation.
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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (2)
13
Return invocationExpression.
ArgumentList
IsNot Nothing AndAlso invocationExpression.
ArgumentList
.Arguments.Count = 0 AndAlso
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (3)
265
If invocationExpression.
ArgumentList
Is Nothing Then
303
parentInvocation.
ArgumentList
IsNot Nothing AndAlso
304
parentInvocation.
ArgumentList
.OpenParenToken = nextToken Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
564
argumentList = invocation?.
ArgumentList
1810
argumentList = invocation.
ArgumentList
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
494
Return DirectCast(expression, InvocationExpressionSyntax).
ArgumentList
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
870
If invocationExpression IsNot Nothing AndAlso invocationExpression.
ArgumentList
IsNot Nothing Then
871
Return invocationExpression.
ArgumentList
.CloseParenToken
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SimpleNameSyntaxExtensions.vb (1)
38
If invocationExpression.Expression Is simpleName AndAlso invocationExpression.
ArgumentList
IsNot Nothing Then