93 references to ExternKeyword
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Statements.cs (1)
599else if (modifier.IsKind(SyntaxKind.ExternKeyword))
Parser\LanguageParser.cs (10)
476case SyntaxKind.ExternKeyword: 697case SyntaxKind.ExternKeyword: 752return this.CurrentToken.Kind == SyntaxKind.ExternKeyword 765Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ExternKeyword); 768this.EatToken(SyntaxKind.ExternKeyword), 1040case SyntaxKind.ExternKeyword: 1998case SyntaxKind.ExternKeyword: 8232case SyntaxKind.ExternKeyword: 9734case SyntaxKind.ExternKeyword: 9809case SyntaxKind.ExternKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
962AddKeyword(SyntaxKind.ExternKeyword);
Symbols\Source\ModifierUtils.cs (2)
307return SyntaxFacts.GetText(SyntaxKind.ExternKeyword); 355case SyntaxKind.ExternKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2667!ContainsModifier(propertyDecl.Modifiers, SyntaxKind.ExternKeyword) && 2676!ContainsModifier(eventFieldDecl.Modifiers, SyntaxKind.ExternKeyword);
Syntax\SyntaxKindFacts.cs (2)
935return SyntaxKind.ExternKeyword; 1575case SyntaxKind.ExternKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAccessibilityFacts.cs (1)
143SyntaxKind.ExternKeyword => DeclarationModifiers.Extern,
CSharpIdeCodeStyleOptions.cs (1)
22SyntaxKind.ExternKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
43case SyntaxKind.ExternKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
22SyntaxKind.ExternKeyword,
SyntaxKindSet.cs (2)
34SyntaxKind.ExternKeyword, 52SyntaxKind.ExternKeyword,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
267if (method.Modifiers.Any(SyntaxKind.AbstractKeyword) || method.Modifiers.Any(SyntaxKind.ExternKeyword) ||
Microsoft.CodeAnalysis.CSharp.Features (28)
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
127case SyntaxKind.ExternKeyword:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (2)
16SyntaxKind.ExternKeyword, 27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\AliasKeywordRecommender.cs (1)
26if (token.Kind() == SyntaxKind.ExternKeyword)
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (1)
18SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
46: base(SyntaxKind.ExternKeyword)
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (1)
18SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
21SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
16SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
27SyntaxKind.ExternKeyword, 48SyntaxKind.ExternKeyword, 66SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (2)
16SyntaxKind.ExternKeyword, 27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
28SyntaxKind.ExternKeyword, 43SyntaxKind.ExternKeyword, 58SyntaxKind.ExternKeyword, 70SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
30SyntaxKind.ExternKeyword, 46SyntaxKind.ExternKeyword, 58SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (2)
108if (nextToken.Kind() == SyntaxKind.ExternKeyword) 171if (nextToken.Kind() == SyntaxKind.ExternKeyword ||
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
16SyntaxKind.ExternKeyword, 27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
27SyntaxKind.ExternKeyword,
EditAndContinue\SyntaxUtilities.cs (1)
250property.Modifiers.Any(SyntaxKind.ExternKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (4)
455=> InternalSyntaxFactory.ExternAliasDirective(InternalSyntaxFactory.Token(SyntaxKind.ExternKeyword), InternalSyntaxFactory.Token(SyntaxKind.AliasKeyword), InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 2545Assert.Equal(SyntaxKind.ExternKeyword, node.ExternKeyword.Kind); 10431=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.AliasKeyword), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12521Assert.Equal(SyntaxKind.ExternKeyword, node.ExternKeyword.Kind());
Parsing\DeclarationParsingTests.cs (3)
42Assert.Equal(SyntaxKind.ExternKeyword, ea.ExternKeyword.Kind()); 3748TestClassFieldModifier(SyntaxKind.ExternKeyword); 3803TestClassEventFieldModifier(SyntaxKind.ExternKeyword);
Parsing\DeclarationScopeParsingTests.cs (2)
3085N(SyntaxKind.ExternKeyword); 3239N(SyntaxKind.ExternKeyword);
Parsing\LocalFunctionParsingTests.cs (3)
752N(SyntaxKind.ExternKeyword); 838N(SyntaxKind.ExternKeyword); 887N(SyntaxKind.ExternKeyword);
Parsing\ScriptParsingTests.cs (5)
963NewModifier_WithOtherModifier("extern", SyntaxKind.ExternKeyword); 1754N(SyntaxKind.ExternKeyword); 1761N(SyntaxKind.ExternKeyword); 1776N(SyntaxKind.ExternKeyword); 1795N(SyntaxKind.ExternKeyword);
Parsing\SingleLineDeclarationParsingTests.cs (2)
629N(SyntaxKind.ExternKeyword); 667N(SyntaxKind.ExternKeyword);
Parsing\StatementAttributeParsingTests.cs (2)
6899N(SyntaxKind.ExternKeyword); 6981N(SyntaxKind.ExternKeyword);
Parsing\TopLevelStatementsParsingTests.cs (5)
419N(SyntaxKind.ExternKeyword); 1203N(SyntaxKind.ExternKeyword); 1344N(SyntaxKind.ExternKeyword); 1689N(SyntaxKind.ExternKeyword); 2900N(SyntaxKind.ExternKeyword);
Syntax\SyntaxNodeTests.cs (3)
540Assert.Equal(SyntaxKind.ExternKeyword, tokens[0].Kind()); 557Assert.Equal(SyntaxKind.ExternKeyword, tokens[0].Kind()); 569Assert.Equal(SyntaxKind.ExternKeyword, tokens[0].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1727list.Add(SyntaxFactory.Token(SyntaxKind.ExternKeyword));
CSharpAccessibilityFacts.cs (1)
143SyntaxKind.ExternKeyword => DeclarationModifiers.Extern,
CSharpIdeCodeStyleOptions.cs (1)
22SyntaxKind.ExternKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
43case SyntaxKind.ExternKeyword:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
22SyntaxKind.ExternKeyword,
SyntaxKindSet.cs (2)
34SyntaxKind.ExternKeyword, 52SyntaxKind.ExternKeyword,
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
30{ ModifierFlags.Extern, SyntaxKind.ExternKeyword }, 77case SyntaxKind.ExternKeyword: