248 references to StructDeclaration
Microsoft.CodeAnalysis.CSharp (23)
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)
1654
case SyntaxKind.
StructDeclaration
:
Declarations\DeclarationKind.cs (1)
37
case SyntaxKind.
StructDeclaration
: return DeclarationKind.Struct;
Declarations\DeclarationTreeBuilder.cs (2)
731
else if (node.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
or SyntaxKind.InterfaceDeclaration)
1087
case SyntaxKind.
StructDeclaration
:
Declarations\MergedTypeDeclaration.cs (1)
77
case SyntaxKind.
StructDeclaration
:
Parser\LanguageParser.cs (4)
793
case SyntaxKind.
StructDeclaration
:
2405
case SyntaxKind.
StructDeclaration
:
2444
const SyntaxKind parentKind = SyntaxKind.
StructDeclaration
;
5138
case SyntaxKind.
StructDeclaration
:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
102
case SyntaxKind.
StructDeclaration
:
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)
3558
case SyntaxKind.
StructDeclaration
:
4143
&& type.Kind() is (SyntaxKind.RecordStructDeclaration or SyntaxKind.
StructDeclaration
));
Symbols\Source\SourceNamedTypeSymbol.cs (3)
119
case SyntaxKind.
StructDeclaration
:
160
case SyntaxKind.
StructDeclaration
:
469
case SyntaxKind.
StructDeclaration
:
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)
419
case SyntaxKind.
StructDeclaration
:
Syntax\SyntaxKindFacts.cs (2)
380
case SyntaxKind.
StructDeclaration
:
838
return SyntaxKind.
StructDeclaration
;
Syntax\TypeDeclarationSyntax.cs (2)
73
case SyntaxKind.
StructDeclaration
:
125
case SyntaxKind.
StructDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
95
case SyntaxKind.
StructDeclaration
:
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
67
SyntaxKind.
StructDeclaration
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
38
case SyntaxKind.
StructDeclaration
:
77
case SyntaxKind.
StructDeclaration
:
99
case SyntaxKind.
StructDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
32
case SyntaxKind.
StructDeclaration
:
160
case SyntaxKind.
StructDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
162
public int? StructDeclaration => (int)SyntaxKind.
StructDeclaration
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
53
SyntaxKind.
StructDeclaration
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
238
SyntaxKind.
StructDeclaration
=> CodeGenerationDestination.StructType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
29
{ SyntaxKind.
StructDeclaration
, 12 },
136
case SyntaxKind.
StructDeclaration
:
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)
169
case SyntaxKind.
StructDeclaration
:
209
var kind = namedType.TypeKind == TypeKind.Struct ? SyntaxKind.
StructDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
74
SyntaxKind.
StructDeclaration
,
84
SyntaxKind.
StructDeclaration
,
105
SyntaxKind.
StructDeclaration
,
111
SyntaxKind.
StructDeclaration
,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
393
case SyntaxKind.
StructDeclaration
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\PrimaryConstructorTests.cs (3)
5261
context.RegisterSyntaxNodeAction(Handle6, SyntaxKind.
StructDeclaration
);
5344
Assert.Equal(SyntaxKind.
StructDeclaration
, record.Kind());
5981
context.RegisterSyntaxNodeAction(Handle6, SyntaxKind.
StructDeclaration
);
Microsoft.CodeAnalysis.CSharp.Features (22)
ChangeSignature\CSharpChangeSignatureService.cs (3)
52
SyntaxKind.
StructDeclaration
,
105
SyntaxKind.
StructDeclaration
,
308
or SyntaxKind.
StructDeclaration
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
141
=> node.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
or
Completion\KeywordRecommenders\FieldKeywordRecommender.cs (1)
18
SyntaxKind.
StructDeclaration
,
Completion\KeywordRecommenders\MethodKeywordRecommender.cs (1)
30
or TypeDeclarationSyntax(kind: SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
) { ParameterList: not null }
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
63
type.Kind() is SyntaxKind.
StructDeclaration
or SyntaxKind.RecordStructDeclaration &&
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
44
SyntaxKind.
StructDeclaration
or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
56
case SyntaxKind.
StructDeclaration
:
EditAndContinue\BreakpointSpans.cs (1)
185
case SyntaxKind.
StructDeclaration
:
EditAndContinue\SyntaxComparer.cs (3)
324
case SyntaxKind.
StructDeclaration
:
589
case SyntaxKind.
StructDeclaration
:
1426
case SyntaxKind.
StructDeclaration
:
GenerateType\CSharpGenerateTypeService.cs (2)
98
SyntaxKind.
StructDeclaration
or
645
if (baseList.Parent.Kind() is SyntaxKind.InterfaceDeclaration or SyntaxKind.
StructDeclaration
or SyntaxKind.RecordStructDeclaration)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
47
if (selectedParameter.Parent is not ParameterListSyntax { Parent: TypeDeclarationSyntax(kind: SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
) typeDeclaration })
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
170
case SyntaxKind.
StructDeclaration
:
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
95
case SyntaxKind.
StructDeclaration
:
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
67
SyntaxKind.
StructDeclaration
or
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
53
SyntaxKind.
StructDeclaration
or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
102
case SyntaxKind.
StructDeclaration
:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
419
case SyntaxKind.
StructDeclaration
:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
SymbolDisplay\SymbolDisplayTests.cs (7)
7039
var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.
StructDeclaration
).Cast<BaseTypeDeclarationSyntax>().ToArray();
7077
var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.
StructDeclaration
).Cast<BaseTypeDeclarationSyntax>().ToArray();
7115
var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.
StructDeclaration
).Cast<BaseTypeDeclarationSyntax>().ToArray();
7175
var declaration = (BaseTypeDeclarationSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.
StructDeclaration
);
7247
var declaration = (BaseTypeDeclarationSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.
StructDeclaration
);
7507
var declaration = (BaseTypeDeclarationSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.
StructDeclaration
);
7660
var declaration = (BaseTypeDeclarationSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.
StructDeclaration
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (122)
IncrementalParsing\IncrementalParsingTests.cs (1)
211
SyntaxKind.
StructDeclaration
,
Parsing\DeclarationParsingTests.cs (45)
1690
Assert.Equal(SyntaxKind.
StructDeclaration
, file.Members[0].Kind());
2793
Assert.Equal(SyntaxKind.
StructDeclaration
, file.Members[0].Kind());
2840
Assert.Equal(SyntaxKind.
StructDeclaration
, file.Members[0].Kind());
2890
Assert.Equal(SyntaxKind.
StructDeclaration
, file.Members[0].Kind());
2931
Assert.Equal(SyntaxKind.
StructDeclaration
, file.Members[0].Kind());
9319
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9349
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9371
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9395
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9427
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9464
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9500
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9535
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9577
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9616
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9671
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9719
[InlineDataAttribute(SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
9754
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9788
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9815
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9855
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9895
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9926
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
9971
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10020
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10063
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10120
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10180
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10234
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10302
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10367
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10419
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10468
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10520
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10573
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10607
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10651
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10700
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10748
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10810
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10852
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10904
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
10961
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
11016
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
11081
N(@struct ? SyntaxKind.
StructDeclaration
: SyntaxKind.ClassDeclaration);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (18)
1983
N(SyntaxKind.
StructDeclaration
);
2058
N(SyntaxKind.
StructDeclaration
);
2066
N(SyntaxKind.
StructDeclaration
);
2115
N(SyntaxKind.
StructDeclaration
);
2175
N(SyntaxKind.
StructDeclaration
);
2194
N(SyntaxKind.
StructDeclaration
);
2276
N(SyntaxKind.
StructDeclaration
);
2370
N(SyntaxKind.
StructDeclaration
);
2487
N(SyntaxKind.
StructDeclaration
);
2594
N(SyntaxKind.
StructDeclaration
);
2711
N(SyntaxKind.
StructDeclaration
);
2827
N(SyntaxKind.
StructDeclaration
);
3703
N(SyntaxKind.
StructDeclaration
);
3812
N(SyntaxKind.
StructDeclaration
);
4007
N(SyntaxKind.
StructDeclaration
);
4164
N(SyntaxKind.
StructDeclaration
);
4181
N(SyntaxKind.
StructDeclaration
);
4199
N(SyntaxKind.
StructDeclaration
);
Parsing\DeclarationScopeParsingTests.cs (18)
11149
N(SyntaxKind.
StructDeclaration
);
11168
N(SyntaxKind.
StructDeclaration
);
11253
N(SyntaxKind.
StructDeclaration
);
11545
N(SyntaxKind.
StructDeclaration
);
11584
N(SyntaxKind.
StructDeclaration
);
13543
N(SyntaxKind.
StructDeclaration
);
13605
N(SyntaxKind.
StructDeclaration
);
13675
N(SyntaxKind.
StructDeclaration
);
13761
N(SyntaxKind.
StructDeclaration
);
13874
N(SyntaxKind.
StructDeclaration
);
13973
N(SyntaxKind.
StructDeclaration
);
14032
N(SyntaxKind.
StructDeclaration
);
14093
N(SyntaxKind.
StructDeclaration
);
14161
N(SyntaxKind.
StructDeclaration
);
14286
N(SyntaxKind.
StructDeclaration
);
14369
N(SyntaxKind.
StructDeclaration
);
14431
N(SyntaxKind.
StructDeclaration
);
14499
N(SyntaxKind.
StructDeclaration
);
Parsing\FileModifierParsingTests.cs (5)
312
N(SyntaxKind.
StructDeclaration
);
375
N(SyntaxKind.
StructDeclaration
);
438
N(SyntaxKind.
StructDeclaration
);
1571
N(SyntaxKind.
StructDeclaration
);
1835
N(SyntaxKind.
StructDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (8)
10472
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
10555
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
10658
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
10773
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
10929
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
11104
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
11277
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
11408
[InlineData("struct", SyntaxKind.
StructDeclaration
, SyntaxKind.StructKeyword)]
Parsing\RecordParsing.cs (8)
2788
N(SyntaxKind.
StructDeclaration
);
3302
N(SyntaxKind.
StructDeclaration
);
3322
N(SyntaxKind.
StructDeclaration
);
3342
N(SyntaxKind.
StructDeclaration
);
3777
N(SyntaxKind.
StructDeclaration
);
3827
N(SyntaxKind.
StructDeclaration
);
3975
N(SyntaxKind.
StructDeclaration
);
4038
N(SyntaxKind.
StructDeclaration
);
Parsing\RefFieldParsingTests.cs (11)
26
N(SyntaxKind.
StructDeclaration
);
63
N(SyntaxKind.
StructDeclaration
);
104
N(SyntaxKind.
StructDeclaration
);
140
N(SyntaxKind.
StructDeclaration
);
174
N(SyntaxKind.
StructDeclaration
);
232
N(SyntaxKind.
StructDeclaration
);
297
N(SyntaxKind.
StructDeclaration
);
357
N(SyntaxKind.
StructDeclaration
);
407
N(SyntaxKind.
StructDeclaration
);
469
N(SyntaxKind.
StructDeclaration
);
558
N(SyntaxKind.
StructDeclaration
);
Parsing\ScriptParsingTests.cs (1)
2400
N(SyntaxKind.
StructDeclaration
);
Parsing\TopLevelStatementsParsingTests.cs (4)
3094
N(SyntaxKind.
StructDeclaration
);
3113
N(SyntaxKind.
StructDeclaration
);
3127
N(SyntaxKind.
StructDeclaration
);
3572
N(SyntaxKind.
StructDeclaration
);
Parsing\TypeArgumentListParsingTests.cs (1)
864
N(SyntaxKind.
StructDeclaration
);
Parsing\UsingDirectiveParsingTests.cs (2)
639
N(SyntaxKind.
StructDeclaration
);
691
N(SyntaxKind.
StructDeclaration
);
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Classification\ClassificationHelpers.cs (2)
290
SyntaxKind.
StructDeclaration
=> ClassificationTypeNames.StructName,
339
SyntaxKind.
StructDeclaration
=> ClassificationTypeNames.StructName,
CodeGeneration\CSharpSyntaxGenerator.cs (4)
143
case SyntaxKind.
StructDeclaration
:
759
var kind = isRecord ? SyntaxKind.RecordStructDeclaration : SyntaxKind.
StructDeclaration
;
1553
case SyntaxKind.
StructDeclaration
:
2241
case SyntaxKind.
StructDeclaration
:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
233
SyntaxKind.
StructDeclaration
=> DeclaredSymbolInfoKind.Struct,
621
case SyntaxKind.
StructDeclaration
:
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)
38
case SyntaxKind.
StructDeclaration
:
77
case SyntaxKind.
StructDeclaration
:
99
case SyntaxKind.
StructDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
32
case SyntaxKind.
StructDeclaration
:
160
case SyntaxKind.
StructDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
162
public int? StructDeclaration => (int)SyntaxKind.
StructDeclaration
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
238
SyntaxKind.
StructDeclaration
=> CodeGenerationDestination.StructType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
29
{ SyntaxKind.
StructDeclaration
, 12 },
136
case SyntaxKind.
StructDeclaration
:
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)
169
case SyntaxKind.
StructDeclaration
:
209
var kind = namedType.TypeKind == TypeKind.Struct ? SyntaxKind.
StructDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
74
SyntaxKind.
StructDeclaration
,
84
SyntaxKind.
StructDeclaration
,
105
SyntaxKind.
StructDeclaration
,
111
SyntaxKind.
StructDeclaration
,
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SyntaxPathTests.cs (2)
351
Assert.Equal(SyntaxKind.
StructDeclaration
, n2.Kind());
390
Assert.Equal(SyntaxKind.
StructDeclaration
, n2.Kind());
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
548
kind == SyntaxKind.
StructDeclaration
||
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
163
kind == SyntaxKind.
StructDeclaration
||
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
334
kind == SyntaxKind.
StructDeclaration
||
Microsoft.Gen.Metrics (1)
Parser.cs (1)
151
SyntaxKind.
StructDeclaration
or
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
151
SyntaxKind.
StructDeclaration
or
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
88
context.RegisterSyntaxNodeAction(AnalyzeStruct, SyntaxKind.
StructDeclaration
);
Microsoft.VisualStudio.LanguageServices.CSharp (16)
CodeModel\CSharpCodeModelService.cs (12)
109
case SyntaxKind.
StructDeclaration
:
239
case SyntaxKind.
StructDeclaration
:
548
case SyntaxKind.
StructDeclaration
:
602
case SyntaxKind.
StructDeclaration
:
805
case SyntaxKind.
StructDeclaration
:
883
case SyntaxKind.
StructDeclaration
:
944
if (typeNode.Kind() == SyntaxKind.
StructDeclaration
)
3511
case SyntaxKind.
StructDeclaration
:
3528
or SyntaxKind.
StructDeclaration
3806
if (node.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
)
3816
if (node.Kind() is not (SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
))
3851
if (node.Kind() is not (SyntaxKind.ClassDeclaration or SyntaxKind.
StructDeclaration
))
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
46
case SyntaxKind.
StructDeclaration
:
97
case SyntaxKind.
StructDeclaration
:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
173
case SyntaxKind.
StructDeclaration
:
Progression\CSharpProgressionLanguageService.cs (1)
69
SyntaxKind.
StructDeclaration
or
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
266
case SyntaxKind.
StructDeclaration
:
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
245
SyntaxKind.
StructDeclaration
or