199 references to RecordDeclaration
Microsoft.CodeAnalysis.CSharp (35)
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.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
66SyntaxKind.RecordDeclaration or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (15)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Features (30)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
66SyntaxKind.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);
10728=> 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)
9621N(SyntaxKind.RecordDeclaration);
10474[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10476[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10557[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10559[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10660[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10662[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10775[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10777[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10931[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
10933[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11106[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11108[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11279[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11281[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11410[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
11412[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.RecordKeyword)]
18485N(SyntaxKind.RecordDeclaration);
18537N(SyntaxKind.RecordDeclaration);
18609N(SyntaxKind.RecordDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
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 (5)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)