140 references to RecordStructDeclaration
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Statements.cs (1)
3680Debug.Assert(typeDecl.Kind() is SyntaxKind.RecordDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.RecordStructDeclaration or SyntaxKind.StructDeclaration);
Compilation\SyntaxTreeSemanticModel.cs (1)
1658case SyntaxKind.RecordStructDeclaration:
Declarations\DeclarationKind.cs (1)
44case SyntaxKind.RecordStructDeclaration: return DeclarationKind.RecordStruct;
Declarations\DeclarationTreeBuilder.cs (2)
676SyntaxKind.RecordStructDeclaration => DeclarationKind.RecordStruct, 1091case SyntaxKind.RecordStructDeclaration:
Declarations\MergedTypeDeclaration.cs (1)
80case SyntaxKind.RecordStructDeclaration:
Parser\LanguageParser.cs (4)
797case SyntaxKind.RecordStructDeclaration: 1942SyntaxKind declarationKind = recordModifier?.Kind == SyntaxKind.StructKeyword ? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration; 2401case SyntaxKind.RecordStructDeclaration: 5098case SyntaxKind.RecordStructDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
104case SyntaxKind.RecordStructDeclaration:
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 (2)
3546case SyntaxKind.RecordStructDeclaration: 4129&& type.Kind() is (SyntaxKind.RecordStructDeclaration or SyntaxKind.StructDeclaration));
Symbols\Source\SourceNamedTypeSymbol.cs (3)
121case SyntaxKind.RecordStructDeclaration: 163case SyntaxKind.RecordStructDeclaration: 472case SyntaxKind.RecordStructDeclaration:
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
25Debug.Assert(syntax.Kind() is SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration);
Syntax\LambdaUtilities.cs (1)
421case SyntaxKind.RecordStructDeclaration:
Syntax\SyntaxKindFacts.cs (1)
385case SyntaxKind.RecordStructDeclaration:
Syntax\SyntaxNodeExtensions.cs (1)
105case SyntaxKind.RecordStructDeclaration:
Syntax\TypeDeclarationSyntax.cs (3)
78case SyntaxKind.RecordStructDeclaration: 131case SyntaxKind.RecordStructDeclaration: 132return SyntaxFactory.RecordDeclaration(SyntaxKind.RecordStructDeclaration, attributes, modifiers, keyword, classOrStructKeyword: SyntaxFactory.Token(SyntaxKind.StructKeyword), identifier, typeParameterList, parameterList: null, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
71case SyntaxKind.RecordStructDeclaration:
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
51SyntaxKind.RecordStructDeclaration) typeDeclaration)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
68SyntaxKind.RecordStructDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
39case SyntaxKind.RecordStructDeclaration: 78case SyntaxKind.RecordStructDeclaration: 100case SyntaxKind.RecordStructDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
33case SyntaxKind.RecordStructDeclaration: 161case SyntaxKind.RecordStructDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
415: SyntaxKind.RecordStructDeclaration,
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
55SyntaxKind.RecordStructDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
32{ SyntaxKind.RecordStructDeclaration, 15 }, 137case SyntaxKind.RecordStructDeclaration: 352else if (node.Kind() is SyntaxKind.StructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
170case SyntaxKind.RecordStructDeclaration: 199var declarationKind = isRecordClass ? SyntaxKind.RecordDeclaration : SyntaxKind.RecordStructDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
75SyntaxKind.RecordStructDeclaration, 85SyntaxKind.RecordStructDeclaration, 106SyntaxKind.RecordStructDeclaration, 112SyntaxKind.RecordStructDeclaration,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
373case SyntaxKind.RecordStructDeclaration:
Microsoft.CodeAnalysis.CSharp.Features (23)
ChangeSignature\CSharpChangeSignatureService.cs (3)
50SyntaxKind.RecordStructDeclaration, 103SyntaxKind.RecordStructDeclaration, 305or SyntaxKind.RecordStructDeclaration
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
443token.GetAncestor<ParameterSyntax>()?.Parent?.Parent is (kind: SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration))
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
152SyntaxKind.InterfaceDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration;
Completion\KeywordRecommenders\FieldKeywordRecommender.cs (1)
21SyntaxKind.RecordStructDeclaration,
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
63type.Kind() is SyntaxKind.StructDeclaration or SyntaxKind.RecordStructDeclaration &&
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
45SyntaxKind.RecordStructDeclaration or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
57case SyntaxKind.RecordStructDeclaration:
EditAndContinue\BreakpointSpans.cs (1)
184case SyntaxKind.RecordStructDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
326case SyntaxKind.RecordStructDeclaration: 592case SyntaxKind.RecordStructDeclaration: 1429case SyntaxKind.RecordStructDeclaration:
GenerateType\CSharpGenerateTypeService.cs (2)
107SyntaxKind.RecordStructDeclaration; 669if (baseList.Parent.Kind() is SyntaxKind.InterfaceDeclaration or SyntaxKind.StructDeclaration or SyntaxKind.RecordStructDeclaration)
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
174case SyntaxKind.RecordStructDeclaration:
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
71case SyntaxKind.RecordStructDeclaration:
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
51SyntaxKind.RecordStructDeclaration) typeDeclaration)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
68SyntaxKind.RecordStructDeclaration or
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
415: SyntaxKind.RecordStructDeclaration,
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
55SyntaxKind.RecordStructDeclaration)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
104case SyntaxKind.RecordStructDeclaration:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
421case SyntaxKind.RecordStructDeclaration:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\RecordStructTests.cs (6)
384Assert.True(SyntaxFacts.IsTypeDeclaration(SyntaxKind.RecordStructDeclaration)); 486Assert.True(SyntaxFacts.IsTypeDeclaration(SyntaxKind.RecordStructDeclaration)); 5960context.RegisterSyntaxNodeAction(Handle6, SyntaxKind.RecordStructDeclaration); 6043Assert.Equal(SyntaxKind.RecordStructDeclaration, record.Kind()); 6707context.RegisterSyntaxNodeAction(Handle6, SyntaxKind.RecordStructDeclaration); 10651AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, SyntaxFactory.TypeDeclaration(SyntaxKind.RecordStructDeclaration, "Point").NormalizeWhitespace().ToString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (7)
3613N(SyntaxKind.RecordStructDeclaration); 3694N(SyntaxKind.RecordStructDeclaration); 3785N(SyntaxKind.RecordStructDeclaration); 3881N(SyntaxKind.RecordStructDeclaration); 3998N(SyntaxKind.RecordStructDeclaration); 4089N(SyntaxKind.RecordStructDeclaration); 4125N(SyntaxKind.RecordStructDeclaration);
Parsing\DeclarationScopeParsingTests.cs (1)
11226N(SyntaxKind.RecordStructDeclaration);
Parsing\FileModifierParsingTests.cs (2)
216N(SyntaxKind.RecordStructDeclaration); 245N(SyntaxKind.RecordStructDeclaration);
Parsing\MemberDeclarationParsingTests.cs (8)
10475[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 10558[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 10661[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 10776[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 10932[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 11107[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 11280[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)] 11411[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.RecordKeyword)]
Parsing\RecordParsing.cs (15)
2687N(SyntaxKind.RecordStructDeclaration); 2824N(SyntaxKind.RecordStructDeclaration); 2867N(SyntaxKind.RecordStructDeclaration); 3215N(SyntaxKind.RecordStructDeclaration); 3260N(SyntaxKind.RecordStructDeclaration); 3544N(SyntaxKind.RecordStructDeclaration); 3606N(SyntaxKind.RecordStructDeclaration); 3640N(SyntaxKind.RecordStructDeclaration); 3675N(SyntaxKind.RecordStructDeclaration); 3696N(SyntaxKind.RecordStructDeclaration); 3729N(SyntaxKind.RecordStructDeclaration); 3851N(SyntaxKind.RecordStructDeclaration); 4057N(SyntaxKind.RecordStructDeclaration); 4100N(SyntaxKind.RecordStructDeclaration); 4182N(@struct ? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (23)
Classification\ClassificationHelpers.cs (2)
289SyntaxKind.RecordStructDeclaration => ClassificationTypeNames.RecordStructName, 342SyntaxKind.RecordStructDeclaration => ClassificationTypeNames.RecordStructName,
CodeGeneration\CSharpSyntaxGenerator.cs (4)
147case SyntaxKind.RecordStructDeclaration: 761var kind = isRecord ? SyntaxKind.RecordStructDeclaration : SyntaxKind.StructDeclaration; 1556case SyntaxKind.RecordStructDeclaration: 2262case SyntaxKind.RecordStructDeclaration:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
235SyntaxKind.RecordStructDeclaration => DeclaredSymbolInfoKind.RecordStruct, 622case SyntaxKind.RecordStructDeclaration:
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
395if (constructor == null || constructor.GetRequiredParent().Kind() is not (SyntaxKind.StructDeclaration or SyntaxKind.RecordStructDeclaration))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
39case SyntaxKind.RecordStructDeclaration: 78case SyntaxKind.RecordStructDeclaration: 100case SyntaxKind.RecordStructDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
33case SyntaxKind.RecordStructDeclaration: 161case SyntaxKind.RecordStructDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
32{ SyntaxKind.RecordStructDeclaration, 15 }, 137case SyntaxKind.RecordStructDeclaration: 352else if (node.Kind() is SyntaxKind.StructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
170case SyntaxKind.RecordStructDeclaration: 199var declarationKind = isRecordClass ? SyntaxKind.RecordDeclaration : SyntaxKind.RecordStructDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
75SyntaxKind.RecordStructDeclaration, 85SyntaxKind.RecordStructDeclaration, 106SyntaxKind.RecordStructDeclaration, 112SyntaxKind.RecordStructDeclaration,
Microsoft.Extensions.Options.SourceGeneration (2)
Parser.cs (2)
164kind == SyntaxKind.RecordStructDeclaration || 182SyntaxKind.RecordStructDeclaration => "record struct",
Microsoft.Gen.Metrics (1)
Parser.cs (1)
192if (typeDeclaration.IsKind(SyntaxKind.RecordStructDeclaration) &&
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
192if (typeDeclaration.IsKind(SyntaxKind.RecordStructDeclaration) &&
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (1)
110case SyntaxKind.RecordStructDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
47case SyntaxKind.RecordStructDeclaration: 98case SyntaxKind.RecordStructDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
174case SyntaxKind.RecordStructDeclaration:
Progression\CSharpProgressionLanguageService.cs (1)
65SyntaxKind.RecordStructDeclaration or
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
270case SyntaxKind.RecordStructDeclaration:
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
247SyntaxKind.RecordStructDeclaration or