96 references to InterfaceKeyword
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (7)
344
case SyntaxKind.
InterfaceKeyword
:
1627
case SyntaxKind.
InterfaceKeyword
:
1709
case SyntaxKind.
InterfaceKeyword
:
1729
Debug.Assert(this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword or SyntaxKind.
InterfaceKeyword
||
1943
case SyntaxKind.
InterfaceKeyword
:
2372
case SyntaxKind.
InterfaceKeyword
:
2416
case SyntaxKind.
InterfaceKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
781
AddKeyword(SyntaxKind.
InterfaceKeyword
);
Syntax.xml.Internal.Generated.cs (2)
31740
if (keyword.Kind != SyntaxKind.
InterfaceKeyword
) throw new ArgumentException(nameof(keyword));
37107
if (keyword.Kind != SyntaxKind.
InterfaceKeyword
) throw new ArgumentException(nameof(keyword));
Syntax.xml.Main.Generated.cs (1)
5023
if (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)
864
case SyntaxKind.
InterfaceKeyword
:
1024
return SyntaxKind.
InterfaceKeyword
;
1716
case SyntaxKind.
InterfaceKeyword
:
Syntax\TypeDeclarationSyntax.cs (2)
61
return SyntaxKind.
InterfaceKeyword
;
76
return SyntaxKind.
InterfaceKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
50
public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.
InterfaceKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316
case SyntaxKind.
InterfaceKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
696
or SyntaxKind.
InterfaceKeyword
&&
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
80
case SyntaxKind.
InterfaceKeyword
:
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
12
internal 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);
2818
Assert.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));
13168
Assert.Equal(SyntaxKind.
InterfaceKeyword
, node.Keyword.Kind());
IncrementalParsing\IncrementalParsingTests.cs (1)
203
SyntaxKind.
InterfaceKeyword
);
Parsing\AsyncParsingTests.cs (3)
1455
N(SyntaxKind.
InterfaceKeyword
);
2481
N(SyntaxKind.
InterfaceKeyword
);
2530
N(SyntaxKind.
InterfaceKeyword
);
Parsing\DeclarationParsingTests.cs (27)
1608
Assert.Equal(SyntaxKind.
InterfaceKeyword
, cs.Keyword.Kind());
1633
Assert.Equal(SyntaxKind.
InterfaceKeyword
, cs.Keyword.Kind());
1663
Assert.Equal(SyntaxKind.
InterfaceKeyword
, cs.Keyword.Kind());
6062
N(SyntaxKind.
InterfaceKeyword
);
6070
N(SyntaxKind.
InterfaceKeyword
);
6122
N(SyntaxKind.
InterfaceKeyword
);
6130
N(SyntaxKind.
InterfaceKeyword
);
6188
N(SyntaxKind.
InterfaceKeyword
);
6196
N(SyntaxKind.
InterfaceKeyword
);
6261
N(SyntaxKind.
InterfaceKeyword
);
6269
N(SyntaxKind.
InterfaceKeyword
);
9162
N(SyntaxKind.
InterfaceKeyword
);
9184
N(SyntaxKind.
InterfaceKeyword
);
9205
N(SyntaxKind.
InterfaceKeyword
);
9237
N(SyntaxKind.
InterfaceKeyword
);
9277
N(SyntaxKind.
InterfaceKeyword
);
9314
N(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)
1284
N(SyntaxKind.
InterfaceKeyword
);
1310
N(SyntaxKind.
InterfaceKeyword
);
1329
N(SyntaxKind.
InterfaceKeyword
);
1408
N(SyntaxKind.
InterfaceKeyword
);
1468
N(SyntaxKind.
InterfaceKeyword
);
1496
N(SyntaxKind.
InterfaceKeyword
);
1578
N(SyntaxKind.
InterfaceKeyword
);
1672
N(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)
9249
N(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)
8757
N(SyntaxKind.
InterfaceKeyword
);
Parsing\RecordParsing.cs (7)
317
N(SyntaxKind.
InterfaceKeyword
);
351
N(SyntaxKind.
InterfaceKeyword
);
2533
N(SyntaxKind.
InterfaceKeyword
);
2563
N(SyntaxKind.
InterfaceKeyword
);
2615
N(SyntaxKind.
InterfaceKeyword
);
3081
N(SyntaxKind.
InterfaceKeyword
);
3476
N(SyntaxKind.
InterfaceKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
50
public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.
InterfaceKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316
case SyntaxKind.
InterfaceKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
696
or SyntaxKind.
InterfaceKeyword
&&
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
50
public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.
InterfaceKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316
case SyntaxKind.
InterfaceKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
696
or SyntaxKind.
InterfaceKeyword
&&