492 references to ClassDeclarationSyntax
IdeCoreBenchmarks (1)
ILLink.CodeFixProvider (1)
Microsoft.Analyzers.Extra (8)
Microsoft.Analyzers.Extra.Tests (2)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.CodeFixes (2)
Microsoft.AspNetCore.App.SourceGenerators (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (6)
Microsoft.CodeAnalysis.CSharp (11)
Syntax\ClassDeclarationSyntax.cs (1)
9public ClassDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\SyntaxFactory.cs (5)
2857public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
2866public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2872public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2876public static ClassDeclarationSyntax ClassDeclaration(SyntaxToken identifier)
2880public static ClassDeclarationSyntax ClassDeclaration(string identifier)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (18)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Features (17)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (19)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (177)
SourceGeneration\GeneratorDriverTests.cs (21)
1501var name = ctx.ForAttributeWithSimpleName<ClassDeclarationSyntax>("Attr")
2393var input = ctx.SyntaxProvider.CreateSyntaxProvider(static (n, _) => n is ClassDeclarationSyntax, (gsc, _) => (ClassDeclarationSyntax)gsc.Node)
2406Assert.Equal("C", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText);
2411Assert.Equal("D", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText);
2422Assert.Equal("C", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText);
2427Assert.Equal("D", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText);
2439Assert.Equal("E", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText);
2444Assert.Equal("D", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText);
2554IncrementalValuesProvider<ClassDeclarationSyntax> classDeclarations = ctx.SyntaxProvider
2558IncrementalValueProvider<(Compilation, ImmutableArray<ClassDeclarationSyntax>)> compilationAndClasses =
2584static void validate(Compilation compilation, ImmutableArray<ClassDeclarationSyntax> nodes)
2586foreach (var node in nodes)
2593=> node is ClassDeclarationSyntax { AttributeLists: { Count: > 0 } };
2595static ClassDeclarationSyntax? getSemanticTargetForGeneration(GeneratorSyntaxContext context, CancellationToken cancellationToken)
2597var classDeclarationSyntax = (ClassDeclarationSyntax)context.Node;
3151ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { });
3285ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { });
4054static (node, _) => node is ClassDeclarationSyntax c,
4056.Select(static (node, _) => (ClassDeclarationSyntax)node)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (25)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (67)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Microsoft.DotNet.GenFacades (1)
Microsoft.Extensions.Logging.Generators (8)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (5)
Microsoft.Gen.Metrics (4)
Microsoft.Gen.MetricsReports (3)
Microsoft.Interop.ComInterfaceGenerator (9)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.VisualStudio.LanguageServices.CSharp (15)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
System.Private.CoreLib.Generators (3)
System.Text.Json.SourceGeneration (9)
System.Text.RegularExpressions.Generator (1)