161 references to RecordDeclaration
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Statements.cs (1)
3579
Debug.Assert(typeDecl.Kind() is SyntaxKind.
RecordDeclaration
or SyntaxKind.ClassDeclaration);
Binder\LocalBinderFactory.cs (1)
176
Debug.Assert(node.Kind() is SyntaxKind.
RecordDeclaration
or SyntaxKind.ClassDeclaration);
Compilation\MethodBodySemanticModel.cs (2)
102
case SyntaxKind.
RecordDeclaration
:
265
Debug.Assert(typeDecl.Kind() is (SyntaxKind.
RecordDeclaration
or SyntaxKind.ClassDeclaration));
Compilation\SyntaxTreeSemanticModel.cs (5)
799
case SyntaxKind.
RecordDeclaration
:
869
case SyntaxKind.
RecordDeclaration
:
1087
case SyntaxKind.
RecordDeclaration
:
1663
case SyntaxKind.
RecordDeclaration
:
2429
if (typeDeclaration.Kind() is (SyntaxKind.
RecordDeclaration
or SyntaxKind.ClassDeclaration))
CSharpDeclarationComputer.cs (1)
103
case SyntaxKind.
RecordDeclaration
:
Declarations\DeclarationKind.cs (1)
43
case SyntaxKind.
RecordDeclaration
: return DeclarationKind.Record;
Declarations\DeclarationTreeBuilder.cs (2)
591
SyntaxKind.
RecordDeclaration
=> DeclarationKind.Record,
939
case SyntaxKind.
RecordDeclaration
:
Declarations\MergedTypeDeclaration.cs (1)
79
case SyntaxKind.
RecordDeclaration
:
Parser\LanguageParser.cs (4)
629
case SyntaxKind.
RecordDeclaration
:
1671
SyntaxKind declarationKind = recordModifier?.Kind == SyntaxKind.StructKeyword ? SyntaxKind.RecordStructDeclaration : SyntaxKind.
RecordDeclaration
;
2085
case SyntaxKind.
RecordDeclaration
:
4819
case SyntaxKind.
RecordDeclaration
:
Symbols\Source\SourceConstructorSymbolBase.cs (1)
30
Debug.Assert(syntax.Kind() is SyntaxKind.ConstructorDeclaration or SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3399
case SyntaxKind.
RecordDeclaration
:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
58
Debug.Assert(recordDecl.IsKind(SyntaxKind.
RecordDeclaration
));
Symbols\Source\SourceNamedTypeSymbol.cs (3)
127
case SyntaxKind.
RecordDeclaration
:
169
case SyntaxKind.
RecordDeclaration
:
476
case SyntaxKind.
RecordDeclaration
:
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
23
Debug.Assert(syntax.Kind() is SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration);
Syntax\LambdaUtilities.cs (1)
419
case SyntaxKind.
RecordDeclaration
:
Syntax\RecordDeclarationSyntax.cs (3)
31
return RecordDeclaration(SyntaxKind.
RecordDeclaration
, attributeLists, modifiers, keyword, classOrStructKeyword: default, identifier,
42
return RecordDeclaration(SyntaxKind.
RecordDeclaration
, attributeLists, modifiers, keyword, classOrStructKeyword: default, identifier,
53
return RecordDeclaration(SyntaxKind.
RecordDeclaration
, attributeLists: default, modifiers: default, keyword, classOrStructKeyword: default, identifier,
Syntax\SyntaxKindFacts.cs (2)
356
case SyntaxKind.
RecordDeclaration
:
814
return SyntaxKind.
RecordDeclaration
;
Syntax\TypeDeclarationSyntax.cs (4)
37
if (Kind() is (SyntaxKind.
RecordDeclaration
or SyntaxKind.ClassDeclaration))
77
case SyntaxKind.
RecordDeclaration
:
129
case SyntaxKind.
RecordDeclaration
:
130
return SyntaxFactory.RecordDeclaration(SyntaxKind.
RecordDeclaration
, attributes, modifiers, keyword, classOrStructKeyword: default, identifier, typeParameterList, parameterList: null, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
CSharpAccessibilityFacts.cs (2)
31
case SyntaxKind.
RecordDeclaration
:
158
case SyntaxKind.
RecordDeclaration
:
CSharpAddAccessibilityModifiers.cs (1)
69
case SyntaxKind.
RecordDeclaration
:
CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
47
SyntaxKind.
RecordDeclaration
or
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
67
SyntaxKind.
RecordDeclaration
or
MemberDeclarationSyntaxExtensions.cs (3)
36
case SyntaxKind.
RecordDeclaration
:
75
case SyntaxKind.
RecordDeclaration
:
97
case SyntaxKind.
RecordDeclaration
:
SyntaxNodeExtensions.cs (1)
171
SyntaxKind.
RecordDeclaration
or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
ConvertToRecordEngine.cs (1)
397
? SyntaxKind.
RecordDeclaration
CSharpDeclarationComparer.cs (3)
31
{ SyntaxKind.
RecordDeclaration
, 14 },
139
case SyntaxKind.
RecordDeclaration
:
352
else if (node.Kind() is SyntaxKind.StructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration)
CSharpMakeTypeAbstractCodeFixProvider.cs (1)
57
if ((enclosingType.IsKind(SyntaxKind.ClassDeclaration) || enclosingType.IsKind(SyntaxKind.
RecordDeclaration
)) &&
CSharpSyntaxContext.cs (1)
229
targetToken.Parent.Parent is (kind: SyntaxKind.ClassDeclaration or SyntaxKind.
RecordDeclaration
);
NamedTypeGenerator.cs (2)
170
case SyntaxKind.
RecordDeclaration
:
196
var declarationKind = isRecordClass ? SyntaxKind.
RecordDeclaration
: SyntaxKind.RecordStructDeclaration;
SyntaxKindSet.cs (5)
68
SyntaxKind.
RecordDeclaration
,
78
SyntaxKind.
RecordDeclaration
,
87
SyntaxKind.
RecordDeclaration
,
93
SyntaxKind.
RecordDeclaration
,
99
SyntaxKind.
RecordDeclaration
,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
347
case SyntaxKind.
RecordDeclaration
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
52
missingSyntaxNodes.Add(SyntaxKind.
RecordDeclaration
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (1)
35
missingSyntaxKinds.Add(SyntaxKind.
RecordDeclaration
);
Diagnostics\DiagnosticAnalyzerTests.cs (1)
3989
context.RegisterSyntaxNodeAction(AnalyzeRecordDeclaration, SyntaxKind.
RecordDeclaration
);
Microsoft.CodeAnalysis.CSharp.Features (26)
ChangeSignature\CSharpChangeSignatureService.cs (3)
48
SyntaxKind.
RecordDeclaration
,
95
SyntaxKind.
RecordDeclaration
,
296
updatedNode.IsKind(SyntaxKind.
RecordDeclaration
) ||
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
455
token.GetAncestor<ParameterSyntax>()?.Parent?.Parent is (kind: SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration))
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
149
SyntaxKind.InterfaceDeclaration or SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration;
Completion\KeywordRecommenders\BaseKeywordRecommender.cs (1)
54
token.Parent.Parent?.Parent is (kind: SyntaxKind.ClassDeclaration or SyntaxKind.
RecordDeclaration
))
Completion\KeywordRecommenders\FieldKeywordRecommender.cs (1)
18
SyntaxKind.
RecordDeclaration
,
ConvertToRecordEngine.cs (1)
397
? SyntaxKind.
RecordDeclaration
CSharpAddAccessibilityModifiers.cs (1)
69
case SyntaxKind.
RecordDeclaration
:
CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
47
SyntaxKind.
RecordDeclaration
or
CSharpDeclarationComputer.cs (1)
103
case SyntaxKind.
RecordDeclaration
:
CSharpMakeTypeAbstractCodeFixProvider.cs (1)
57
if ((enclosingType.IsKind(SyntaxKind.ClassDeclaration) || enclosingType.IsKind(SyntaxKind.
RecordDeclaration
)) &&
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
67
SyntaxKind.
RecordDeclaration
or
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
42
SyntaxKind.
RecordDeclaration
or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
56
case SyntaxKind.
RecordDeclaration
:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
1154
=> node.Kind() is SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration;
1617
case SyntaxKind.
RecordDeclaration
:
1992
case SyntaxKind.
RecordDeclaration
:
2577
case SyntaxKind.
RecordDeclaration
:
EditAndContinue\SyntaxComparer.cs (3)
324
case SyntaxKind.
RecordDeclaration
:
590
case SyntaxKind.
RecordDeclaration
:
1419
case SyntaxKind.
RecordDeclaration
:
GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
50
if (baseList.Parent is TypeDeclarationSyntax(SyntaxKind.ClassDeclaration or SyntaxKind.
RecordDeclaration
) parentTypeDecl &&
ImplementInterface\CSharpImplementInterfaceService.cs (1)
50
SyntaxKind.
RecordDeclaration
or
LambdaUtilities.cs (1)
419
case SyntaxKind.
RecordDeclaration
:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
173
case SyntaxKind.
RecordDeclaration
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\PrimaryConstructorTests.cs (1)
5115
Assert.Equal(SyntaxKind.
RecordDeclaration
, context.Operation.Syntax.Kind());
Semantics\RecordStructTests.cs (1)
6392
Assert.Equal(SyntaxKind.
RecordDeclaration
, context.Operation.Syntax.Kind());
Semantics\RecordTests.cs (5)
21214
Assert.Equal(SyntaxKind.
RecordDeclaration
, baseWithargs.Parent.Parent.Kind());
26212
context.RegisterSyntaxNodeAction(Handle6, SyntaxKind.
RecordDeclaration
);
26807
Assert.Equal(SyntaxKind.
RecordDeclaration
, context.Operation.Syntax.Kind());
26811
Assert.Equal(SyntaxKind.
RecordDeclaration
, context.Operation.Syntax.Kind());
27505
context.RegisterSyntaxNodeAction(Handle6, SyntaxKind.
RecordDeclaration
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (37)
Generated\Syntax.Test.xml.Generated.cs (2)
500
=> InternalSyntaxFactory.RecordDeclaration(SyntaxKind.
RecordDeclaration
, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Identifier("Keyword"), null, InternalSyntaxFactory.Identifier("Identifier"), null, null, null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.TypeParameterConstraintClauseSyntax>(), null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.MemberDeclarationSyntax>(), null, null);
10476
=> SyntaxFactory.RecordDeclaration(SyntaxKind.
RecordDeclaration
, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Keyword"), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
Parsing\FileModifierParsingTests.cs (6)
194
N(SyntaxKind.
RecordDeclaration
);
1450
N(SyntaxKind.
RecordDeclaration
);
2778
N(SyntaxKind.
RecordDeclaration
);
2876
N(SyntaxKind.
RecordDeclaration
);
2971
N(SyntaxKind.
RecordDeclaration
);
2994
N(SyntaxKind.
RecordDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (1)
9632
N(SyntaxKind.
RecordDeclaration
);
Parsing\RecordParsing.cs (27)
75
N(SyntaxKind.
RecordDeclaration
);
172
N(SyntaxKind.
RecordDeclaration
);
213
N(SyntaxKind.
RecordDeclaration
);
232
N(SyntaxKind.
RecordDeclaration
);
402
N(SyntaxKind.
RecordDeclaration
);
414
N(SyntaxKind.
RecordDeclaration
);
420
N(SyntaxKind.
RecordDeclaration
);
432
N(SyntaxKind.
RecordDeclaration
);
458
N(SyntaxKind.
RecordDeclaration
);
502
N(SyntaxKind.
RecordDeclaration
);
542
N(SyntaxKind.
RecordDeclaration
);
699
N(SyntaxKind.
RecordDeclaration
);
758
N(SyntaxKind.
RecordDeclaration
);
915
N(SyntaxKind.
RecordDeclaration
);
960
N(SyntaxKind.
RecordDeclaration
);
1008
N(SyntaxKind.
RecordDeclaration
);
2194
N(SyntaxKind.
RecordDeclaration
);
2297
N(SyntaxKind.
RecordDeclaration
);
2869
N(SyntaxKind.
RecordDeclaration
);
2922
N(SyntaxKind.
RecordDeclaration
);
2992
N(SyntaxKind.
RecordDeclaration
);
3215
N(SyntaxKind.
RecordDeclaration
);
3260
N(SyntaxKind.
RecordDeclaration
);
3415
N(SyntaxKind.
RecordDeclaration
);
3436
N(SyntaxKind.
RecordDeclaration
);
3775
N(SyntaxKind.
RecordDeclaration
);
4032
N(@struct ? SyntaxKind.RecordStructDeclaration : SyntaxKind.
RecordDeclaration
);
Parsing\TopLevelStatementsParsingTests.cs (1)
3149
N(SyntaxKind.
RecordDeclaration
);
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Classification\ClassificationHelpers.cs (2)
290
SyntaxKind.
RecordDeclaration
=> ClassificationTypeNames.RecordClassName,
343
SyntaxKind.
RecordDeclaration
=> ClassificationTypeNames.RecordClassName,
CodeGeneration\CSharpSyntaxGenerator.cs (4)
151
case SyntaxKind.
RecordDeclaration
:
692
var kind = isRecord ? SyntaxKind.
RecordDeclaration
: SyntaxKind.ClassDeclaration;
1533
case SyntaxKind.
RecordDeclaration
:
2246
case SyntaxKind.
RecordDeclaration
:
CSharpAccessibilityFacts.cs (2)
31
case SyntaxKind.
RecordDeclaration
:
158
case SyntaxKind.
RecordDeclaration
:
CSharpDeclarationComparer.cs (3)
31
{ SyntaxKind.
RecordDeclaration
, 14 },
139
case SyntaxKind.
RecordDeclaration
:
352
else if (node.Kind() is SyntaxKind.StructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.
RecordDeclaration
or SyntaxKind.RecordStructDeclaration)
CSharpSyntaxContext.cs (1)
229
targetToken.Parent.Parent is (kind: SyntaxKind.ClassDeclaration or SyntaxKind.
RecordDeclaration
);
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
235
SyntaxKind.
RecordDeclaration
=> DeclaredSymbolInfoKind.Record,
621
case SyntaxKind.
RecordDeclaration
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
171
SyntaxKind.
RecordDeclaration
or
MemberDeclarationSyntaxExtensions.cs (3)
36
case SyntaxKind.
RecordDeclaration
:
75
case SyntaxKind.
RecordDeclaration
:
97
case SyntaxKind.
RecordDeclaration
:
NamedTypeGenerator.cs (2)
170
case SyntaxKind.
RecordDeclaration
:
196
var declarationKind = isRecordClass ? SyntaxKind.
RecordDeclaration
: SyntaxKind.RecordStructDeclaration;
SyntaxKindSet.cs (5)
68
SyntaxKind.
RecordDeclaration
,
78
SyntaxKind.
RecordDeclaration
,
87
SyntaxKind.
RecordDeclaration
,
93
SyntaxKind.
RecordDeclaration
,
99
SyntaxKind.
RecordDeclaration
,
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (1)
93
case SyntaxKind.
RecordDeclaration
:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
45
case SyntaxKind.
RecordDeclaration
:
96
case SyntaxKind.
RecordDeclaration
:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
173
case SyntaxKind.
RecordDeclaration
:
Progression\CSharpProgressionLanguageService.cs (1)
70
SyntaxKind.
RecordDeclaration
or