275 references to StructDeclaration
Microsoft.CodeAnalysis.CSharp (26)
Syntax.xml.Internal.Generated.cs (2)
31733return new StructDeclarationSyntax(SyntaxKind.StructDeclaration, attributeLists.Node, modifiers.Node, keyword, identifier, typeParameterList, parameterList, baseList, constraintClauses.Node, openBraceToken, members.Node, closeBraceToken, semicolonToken, this.context);
37100return new StructDeclarationSyntax(SyntaxKind.StructDeclaration, attributeLists.Node, modifiers.Node, keyword, identifier, typeParameterList, parameterList, baseList, constraintClauses.Node, openBraceToken, members.Node, closeBraceToken, semicolonToken);
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
59SyntaxKind.StructDeclaration or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Features (26)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
59SyntaxKind.StructDeclaration or
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (124)
Parsing\DeclarationParsingTests.cs (46)
1690Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind());
2793Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind());
2840Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind());
2890Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind());
2931Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind());
2988N(SyntaxKind.StructDeclaration);
9373N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9403N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9425[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9449[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9481[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9518[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9554[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9589[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9631[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9670[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9725[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9773[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
9808N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9842N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9869N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9909N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9949N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
9980N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10025N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10074N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10117N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10174N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10234N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10288N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10356N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10421N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10473N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10522N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10574N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10627N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10661N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10705N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10754N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10802N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10864N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10906N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
10958N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
11015N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
11070N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
11135N(@struct ? SyntaxKind.StructDeclaration : SyntaxKind.ClassDeclaration);
Parsing\MemberDeclarationParsingTests.cs (8)
10475[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
10558[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
10661[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
10776[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
10932[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
11107[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
11280[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
11411[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.StructKeyword)]
Microsoft.CodeAnalysis.CSharp.Workspaces (26)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.VisualStudio.LanguageServices.CSharp (15)
Roslyn.Diagnostics.CSharp.Analyzers (16)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)