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