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