96 references to InterfaceKeyword
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (7)
344case SyntaxKind.InterfaceKeyword: 1627case SyntaxKind.InterfaceKeyword: 1709case SyntaxKind.InterfaceKeyword: 1729Debug.Assert(this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword or SyntaxKind.InterfaceKeyword || 1943case SyntaxKind.InterfaceKeyword: 2372case SyntaxKind.InterfaceKeyword: 2416case SyntaxKind.InterfaceKeyword:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
781AddKeyword(SyntaxKind.InterfaceKeyword);
Syntax.xml.Internal.Generated.cs (2)
31740if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 37107if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
Syntax.xml.Main.Generated.cs (1)
5023if (keyword.Kind() != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
Syntax\SyntaxFactory.cs (3)
2957=> SyntaxFactory.InterfaceDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), identifier, typeParameterList, baseList, constraintClauses, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), members, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2961=> SyntaxFactory.InterfaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), identifier, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2965=> SyntaxFactory.InterfaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier(identifier), null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
Syntax\SyntaxKindFacts.cs (3)
864case SyntaxKind.InterfaceKeyword: 1024return SyntaxKind.InterfaceKeyword; 1716case SyntaxKind.InterfaceKeyword:
Syntax\TypeDeclarationSyntax.cs (2)
61return SyntaxKind.InterfaceKeyword; 76return SyntaxKind.InterfaceKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
50public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.InterfaceKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316case SyntaxKind.InterfaceKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
696or SyntaxKind.InterfaceKeyword &&
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
80case SyntaxKind.InterfaceKeyword:
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
12internal sealed class InterfaceKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.InterfaceKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (66)
Generated\Syntax.Test.xml.Generated.cs (4)
509=> InternalSyntaxFactory.InterfaceDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.InterfaceKeyword), 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); 2818Assert.Equal(SyntaxKind.InterfaceKeyword, node.Keyword.Kind); 10859=> SyntaxFactory.InterfaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 13168Assert.Equal(SyntaxKind.InterfaceKeyword, node.Keyword.Kind());
IncrementalParsing\IncrementalParsingTests.cs (1)
203SyntaxKind.InterfaceKeyword);
Parsing\AsyncParsingTests.cs (3)
1455N(SyntaxKind.InterfaceKeyword); 2481N(SyntaxKind.InterfaceKeyword); 2530N(SyntaxKind.InterfaceKeyword);
Parsing\DeclarationParsingTests.cs (27)
1608Assert.Equal(SyntaxKind.InterfaceKeyword, cs.Keyword.Kind()); 1633Assert.Equal(SyntaxKind.InterfaceKeyword, cs.Keyword.Kind()); 1663Assert.Equal(SyntaxKind.InterfaceKeyword, cs.Keyword.Kind()); 6062N(SyntaxKind.InterfaceKeyword); 6070N(SyntaxKind.InterfaceKeyword); 6122N(SyntaxKind.InterfaceKeyword); 6130N(SyntaxKind.InterfaceKeyword); 6188N(SyntaxKind.InterfaceKeyword); 6196N(SyntaxKind.InterfaceKeyword); 6261N(SyntaxKind.InterfaceKeyword); 6269N(SyntaxKind.InterfaceKeyword); 9162N(SyntaxKind.InterfaceKeyword); 9184N(SyntaxKind.InterfaceKeyword); 9205N(SyntaxKind.InterfaceKeyword); 9237N(SyntaxKind.InterfaceKeyword); 9277N(SyntaxKind.InterfaceKeyword); 9314N(SyntaxKind.InterfaceKeyword); 9427[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9451[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9483[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9520[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9556[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9591[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9633[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9672[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9727[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9775[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)]
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (9)
1284N(SyntaxKind.InterfaceKeyword); 1310N(SyntaxKind.InterfaceKeyword); 1329N(SyntaxKind.InterfaceKeyword); 1408N(SyntaxKind.InterfaceKeyword); 1468N(SyntaxKind.InterfaceKeyword); 1496N(SyntaxKind.InterfaceKeyword); 1578N(SyntaxKind.InterfaceKeyword); 1672N(SyntaxKind.InterfaceKeyword); 6736[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)]
Parsing\FileModifierParsingTests.cs (5)
45[InlineData(SyntaxKind.InterfaceKeyword)] 71[InlineData(SyntaxKind.InterfaceKeyword)] 125[InlineData(SyntaxKind.InterfaceKeyword)] 497[InlineData(SyntaxKind.InterfaceKeyword)] 530[InlineData(SyntaxKind.InterfaceKeyword)]
Parsing\MemberDeclarationParsingTests.cs (9)
9249N(SyntaxKind.InterfaceKeyword); 10476[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10559[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10662[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10777[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10933[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 11108[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 11281[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 11412[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)]
Parsing\ParsingErrorRecoveryTests.cs (1)
8757N(SyntaxKind.InterfaceKeyword);
Parsing\RecordParsing.cs (7)
317N(SyntaxKind.InterfaceKeyword); 351N(SyntaxKind.InterfaceKeyword); 2533N(SyntaxKind.InterfaceKeyword); 2563N(SyntaxKind.InterfaceKeyword); 2615N(SyntaxKind.InterfaceKeyword); 3081N(SyntaxKind.InterfaceKeyword); 3476N(SyntaxKind.InterfaceKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
50public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.InterfaceKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316case SyntaxKind.InterfaceKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
696or SyntaxKind.InterfaceKeyword &&
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
50public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.InterfaceKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316case SyntaxKind.InterfaceKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
696or SyntaxKind.InterfaceKeyword &&