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