219 references to RecordDeclaration
Microsoft.CodeAnalysis.CSharp (40)
Syntax\RecordDeclarationSyntax.cs (3)
31return RecordDeclaration(SyntaxKind.RecordDeclaration, attributeLists, modifiers, keyword, classOrStructKeyword: default, identifier,
42return RecordDeclaration(SyntaxKind.RecordDeclaration, attributeLists, modifiers, keyword, classOrStructKeyword: default, identifier,
53return RecordDeclaration(SyntaxKind.RecordDeclaration, attributeLists: default, modifiers: default, keyword, classOrStructKeyword: default, identifier,
Syntax\TypeDeclarationSyntax.cs (4)
37if (Kind() is (SyntaxKind.RecordDeclaration or SyntaxKind.ClassDeclaration))
77case SyntaxKind.RecordDeclaration:
129case SyntaxKind.RecordDeclaration:
130return SyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, attributes, modifiers, keyword, classOrStructKeyword: default, identifier, typeParameterList, parameterList: null, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
58SyntaxKind.RecordDeclaration or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (16)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Features (30)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
58SyntaxKind.RecordDeclaration or
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (63)
Generated\Syntax.Test.xml.Generated.cs (2)
512=> InternalSyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Identifier("Keyword"), null, InternalSyntaxFactory.Identifier("Identifier"), null, null, null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.TypeParameterConstraintClauseSyntax>(), null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.MemberDeclarationSyntax>(), null, null);
10862=> SyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Keyword"), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
Parsing\MemberDeclarationParsingTests.cs (20)
9624N(SyntaxKind.RecordDeclaration);
10477[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10479[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10560[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10562[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10663[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10665[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10778[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10780[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10934[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10936[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11109[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11111[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11282[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11284[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11413[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11415[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
19989N(SyntaxKind.RecordDeclaration);
20041N(SyntaxKind.RecordDeclaration);
20113N(SyntaxKind.RecordDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Roslyn.Diagnostics.CSharp.Analyzers (16)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)