41 references to ArgumentList
Microsoft.CodeAnalysis.CSharp (22)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2038
=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ArgumentListSyntax?)Visit(node.
ArgumentList
) ?? throw new ArgumentNullException("argumentList"));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
11658
if (type != this.Type || argumentList != this.
ArgumentList
)
11669
public new PrimaryConstructorBaseTypeSyntax WithType(TypeSyntax type) => Update(type, this.
ArgumentList
);
11672
public PrimaryConstructorBaseTypeSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.
ArgumentList
.WithArguments(this.
ArgumentList
.Arguments.AddRange(items)));
Binder\Binder_Expressions.cs (1)
4855
/// <see cref="PrimaryConstructorBaseTypeSyntax.
ArgumentList
"/> for explicit.</param>
Binder\Binder_Invocation.cs (1)
1420
PrimaryConstructorBaseTypeSyntax primaryConstructorBaseType => primaryConstructorBaseType.
ArgumentList
.OpenParenToken,
Binder\Binder_Statements.cs (1)
3773
BoundExpression initializerInvocation = GetBinder(initializer).BindConstructorInitializer(initializer.
ArgumentList
, (MethodSymbol)this.ContainingMember(), diagnostics);
Binder\LocalBinderFactory.cs (1)
185
VisitConstructorInitializerArgumentList(node, node.
ArgumentList
, enclosing);
BoundTree\BoundExpression.cs (1)
25
or PrimaryConstructorBaseTypeSyntax {
ArgumentList
: { } }
Compilation\CSharpSemanticModel.cs (2)
895
var argumentList = existingConstructorInitializer.
ArgumentList
;
2458
/// Analyze data-flow within an <see cref="PrimaryConstructorBaseTypeSyntax.
ArgumentList
"/>.
Compilation\SyntaxTreeSemanticModel.cs (4)
813
var argumentList = typeDecl.PrimaryConstructorBaseTypeIfClass?.
ArgumentList
;
878
(node == baseWithArguments || baseWithArguments.
ArgumentList
.FullSpan.Contains(span)) ? GetOrAddModel(memberDecl) : null;
2518
return node == baseType.
ArgumentList
;
2528
!(node.Kind() == SyntaxKind.ArgumentList && node == typeDeclaration.PrimaryConstructorBaseTypeIfClass?.
ArgumentList
);
CSharpExtensions.cs (1)
1096
/// Analyze data-flow within a <see cref="PrimaryConstructorBaseTypeSyntax.
ArgumentList
"/> initializer.
Lowering\Instrumentation\DebugInfoInjector.cs (1)
96
Debug.Assert(typeDecl.BaseList?.Types.Any(t => t is PrimaryConstructorBaseTypeSyntax {
ArgumentList
: not null }) != true);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4004
if (syntax is { PrimaryConstructorBaseTypeIfClass: {
ArgumentList
: { } baseParamList } })
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
658
diagnostics.Add(ErrorCode.ERR_UnexpectedArgumentList, primaryConstructorBaseType.
ArgumentList
.Location);
662
diagnostics.Add(ErrorCode.ERR_UnexpectedArgumentListInBaseTypeWithoutParameterList, primaryConstructorBaseType.
ArgumentList
.Location);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
31
if (syntax.PrimaryConstructorBaseTypeIfClass is not PrimaryConstructorBaseTypeSyntax {
ArgumentList
.Arguments.Count: not 0 })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
307
var index = primaryConstructorBaseType.
ArgumentList
.Arguments.IndexOf(argument);
Microsoft.CodeAnalysis.CSharp.Features (15)
ChangeSignature\CSharpChangeSignatureService.cs (2)
518
primaryConstructor.
ArgumentList
,
636
PrimaryConstructorBaseTypeSyntax primaryConstructor => primaryConstructor.
ArgumentList
,
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (2)
496
baseType?.
ArgumentList
is null ? null : ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, baseType.
ArgumentList
),
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1402
return model.GetEnclosingSymbol(primaryCtorBase.
ArgumentList
.SpanStart, cancellationToken);
ExtractMethod\CSharpSelectionValidator.cs (1)
239
return primaryConstructorBaseType.
ArgumentList
.Arguments.FullSpan.Contains(span);
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (8)
56
return expression.
ArgumentList
!= null;
60
return expression.
ArgumentList
!= null &&
61
expression.
ArgumentList
.Span.Contains(token.SpanStart) &&
62
token != expression.
ArgumentList
.CloseParenToken;
98
var textSpan = SignatureHelpUtilities.GetSignatureHelpSpan(baseTypeSyntax.
ArgumentList
);
103
Convert(c, baseTypeSyntax.
ArgumentList
.OpenParenToken, semanticModel, structuralTypeDisplayService, documentationCommentFormattingService))],
110
currentSpan.Start == SignatureHelpUtilities.GetSignatureHelpSpan(expression.
ArgumentList
).Start)
112
return SignatureHelpUtilities.GetSignatureHelpState(expression.
ArgumentList
, position);
Wrapping\SeparatedSyntaxList\CSharpArgumentWrapper.cs (1)
54
PrimaryConstructorBaseTypeSyntax baseTypeSyntax => baseTypeSyntax.
ArgumentList
,
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
479
foreach (var argument in primaryConstructorBase.
ArgumentList
.Arguments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
307
var index = primaryConstructorBaseType.
ArgumentList
.Arguments.IndexOf(argument);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
307
var index = primaryConstructorBaseType.
ArgumentList
.Arguments.IndexOf(argument);