5 overrides of ParameterList
Microsoft.CodeAnalysis.CSharp (5)
Syntax.xml.Syntax.Generated.cs (5)
10355
public override ParameterListSyntax?
ParameterList
=> GetRed(ref this.parameterList, 5);
10521
public override ParameterListSyntax?
ParameterList
=> GetRed(ref this.parameterList, 5);
10687
public override ParameterListSyntax?
ParameterList
=> GetRed(ref this.parameterList, 5);
10861
public override ParameterListSyntax?
ParameterList
=> GetRed(ref this.parameterList, 6);
11350
public override ParameterListSyntax?
ParameterList
=> GetRed(ref this.parameterList, 4);
60 references to ParameterList
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Statements.cs (1)
3718
Debug.Assert(typeDecl.
ParameterList
is object);
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
1258
else if (memberSyntax is TypeDeclarationSyntax {
ParameterList
: { ParameterCount: > 0 } } typeDeclaration)
1260
_ = typeDeclaration.
ParameterList
;
Binder\BinderFactory.cs (1)
158
Debug.Assert(typeDecl.
ParameterList
is not null);
Binder\LocalBinderFactory.cs (1)
175
Debug.Assert(node.
ParameterList
is object);
Compilation\SyntaxTreeSemanticModel.cs (8)
184
case TypeDeclarationSyntax {
ParameterList
: { }, PrimaryConstructorBaseTypeIfClass: { } } typeDeclaration when TryGetSynthesizedPrimaryConstructor(typeDeclaration) is SynthesizedPrimaryConstructor:
807
if (typeDecl.
ParameterList
is null)
876
return typeDecl.
ParameterList
is object &&
2078
if (memberDecl is TypeDeclarationSyntax typeDecl && typeDecl.
ParameterList
== paramList)
2497
return node == typeDeclaration.
ParameterList
|| node == typeDeclaration.BaseList;
2514
return (node) => node != typeDeclaration.
ParameterList
&&
2533
return node == typeDeclaration.
ParameterList
;
2542
return (node) => node != typeDeclaration.
ParameterList
;
Declarations\DeclarationTreeBuilder.cs (4)
706
var hasPrimaryCtor = node.
ParameterList
!= null && node is RecordDeclarationSyntax or ClassDeclarationSyntax or StructDeclarationSyntax;
739
if (node.
ParameterList
!= null)
743
diagnostics.Add(ErrorCode.ERR_UnexpectedParameterList, node.
ParameterList
.GetLocation());
747
MessageID.IDS_FeaturePrimaryConstructors.CheckFeatureAvailability(diagnostics, node.
ParameterList
);
Lowering\Instrumentation\DebugInfoInjector.cs (2)
95
Debug.Assert(typeDecl.
ParameterList
!= null);
98
return new BoundSequencePointWithSpan(typeDecl, rewritten, TextSpan.FromBounds(typeDecl.Identifier.SpanStart, typeDecl.
ParameterList
.Span.End));
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
106
Debug.Assert(ctor.MethodKind == MethodKind.Constructor && typeDeclaration.
ParameterList
is object);
109
AddParameterListInitializersAndAttributes(typeDeclaration.
ParameterList
, codeBlocks);
Symbols\Source\SourceMemberContainerSymbol.cs (3)
3926
var parameterList = syntax.
ParameterList
;
4712
Debug.Assert(builder.DeclarationWithParameters is TypeDeclarationSyntax {
ParameterList
: not null } type
4769
ParameterListSyntax? paramList = declaredMembersAndInitializers.DeclarationWithParameters?.
ParameterList
;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
633
(TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.SyntaxReference.GetSyntax()).
ParameterList
is null))
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (4)
39
Debug.Assert(syntax.
ParameterList
!= null);
50
isVarArg: syntax.
ParameterList
.IsVarArg(),
81
return GetSyntax().
ParameterList
!;
107
Debug.Assert(typeDecl.
ParameterList
is not null);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
155
TypeDeclarationSyntax typeDeclaration => typeDeclaration.
ParameterList
,
Microsoft.CodeAnalysis.CSharp.Features (26)
ChangeSignature\CSharpChangeSignatureService.cs (3)
327
if (updatedNode is TypeDeclarationSyntax {
ParameterList
: not null } typeWithParameters)
329
var updatedParameters = UpdateDeclaration(typeWithParameters.
ParameterList
.Parameters, signaturePermutation, CreateNewParameterSyntax);
330
return typeWithParameters.WithParameterList(typeWithParameters.
ParameterList
.WithParameters(updatedParameters).WithAdditionalAnnotations(ChangeSignatureFormattingAnnotation));
Completion\KeywordRecommenders\MethodKeywordRecommender.cs (1)
30
or TypeDeclarationSyntax(kind: SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration) {
ParameterList
: not null }
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (3)
46
if (typeDeclaration?.
ParameterList
is null)
60
var triggerSpan = TextSpan.FromBounds(typeDeclaration.SpanStart, typeDeclaration.
ParameterList
.FullSpan.End);
66
cancellationToken => ConvertAsync(document, typeDeclaration, typeDeclaration.
ParameterList
, cancellationToken),
EditAndContinue\BreakpointSpans.cs (8)
189
if (typeDeclaration.
ParameterList
!= null)
214
if (position <= typeDeclaration.
ParameterList
.SpanStart)
222
if (position < typeDeclaration.
ParameterList
.CloseParenToken.Span.End)
224
var parameter = GetParameter(position, typeDeclaration.
ParameterList
.Parameters);
486
Debug.Assert(typeDeclaration.
ParameterList
!= null);
487
return TextSpan.FromBounds(typeDeclaration.Identifier.SpanStart, typeDeclaration.
ParameterList
.Span.End);
492
Debug.Assert(typeDeclaration.
ParameterList
!= null);
502
foreach (var token in getDescendantTokens(typeDeclaration.
ParameterList
))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (8)
81
if (typeDeclaration.
ParameterList
!= null)
83
declarations = new(typeDeclaration.
ParameterList
);
932
=> declaration.Parent is TypeDeclarationSyntax {
ParameterList
: var parameterList } and not ExtensionBlockDeclarationSyntax && parameterList == declaration;
1008
return symbol.Kind == SymbolKind.Method && syntax is TypeDeclarationSyntax {
ParameterList
: { } parameterList } ? parameterList : syntax;
1257
(oldTypeDeclaration.
ParameterList
!= null || newTypeDeclaration.
ParameterList
!= null))
1273
oldTypeDeclaration.
ParameterList
?.Span != newTypeDeclaration.
ParameterList
?.Span)
EditAndContinue\DeclarationBody\PrimaryConstructorWithImplicitInitializerDeclarationBody.cs (1)
22
=> TypeDeclaration.
ParameterList
!;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
106
Debug.Assert(ctor.MethodKind == MethodKind.Constructor && typeDeclaration.
ParameterList
is object);
109
AddParameterListInitializersAndAttributes(typeDeclaration.
ParameterList
, codeBlocks);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1227
=> declaration is TypeDeclarationSyntax {
ParameterList
: { } parameterList } ? parameterList : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
155
TypeDeclarationSyntax typeDeclaration => typeDeclaration.
ParameterList
,
Roslyn.Diagnostics.CSharp.Analyzers (2)
CSharpImportingConstructorShouldBeObsoleteCodeFixProvider.cs (1)
28
return typeDeclaration is TypeDeclarationSyntax {
ParameterList
: not null };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
155
TypeDeclarationSyntax typeDeclaration => typeDeclaration.
ParameterList
,