99 references to ExternKeyword
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Statements.cs (1)
602else if (modifier.IsKind(SyntaxKind.ExternKeyword))
Parser\LanguageParser.cs (10)
633case SyntaxKind.ExternKeyword: 864case SyntaxKind.ExternKeyword: 919return this.CurrentToken.Kind == SyntaxKind.ExternKeyword 932Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ExternKeyword); 935this.EatToken(SyntaxKind.ExternKeyword), 1313case SyntaxKind.ExternKeyword: 2313case SyntaxKind.ExternKeyword: 8786case SyntaxKind.ExternKeyword: 10350case SyntaxKind.ExternKeyword: 10425case SyntaxKind.ExternKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
952AddKeyword(SyntaxKind.ExternKeyword);
Symbols\Source\ModifierUtils.cs (2)
306return SyntaxFacts.GetText(SyntaxKind.ExternKeyword); 354case SyntaxKind.ExternKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2800!ContainsModifier(propertyDecl.Modifiers, SyntaxKind.ExternKeyword) && 2810!ContainsModifier(eventFieldDecl.Modifiers, SyntaxKind.ExternKeyword);
Syntax\SyntaxKindFacts.cs (2)
963return SyntaxKind.ExternKeyword; 1611case SyntaxKind.ExternKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
31public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
156SyntaxKind.ExternKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
91case SyntaxKind.ExternKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
143SyntaxKind.ExternKeyword => DeclarationModifiers.Extern,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
22SyntaxKind.ExternKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (2)
31SyntaxKind.ExternKeyword, 49SyntaxKind.ExternKeyword,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
275if (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)
20SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
16SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
29SyntaxKind.ExternKeyword, 50SyntaxKind.ExternKeyword, 68SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (2)
16SyntaxKind.ExternKeyword, 27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
29SyntaxKind.ExternKeyword, 44SyntaxKind.ExternKeyword, 59SyntaxKind.ExternKeyword, 71SyntaxKind.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)
194property.Modifiers.Any(SyntaxKind.ExternKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (4)
467=> InternalSyntaxFactory.ExternAliasDirective(InternalSyntaxFactory.Token(SyntaxKind.ExternKeyword), InternalSyntaxFactory.Token(SyntaxKind.AliasKeyword), InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 2606Assert.Equal(SyntaxKind.ExternKeyword, node.ExternKeyword.Kind); 10683=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.AliasKeyword), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12822Assert.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)
3066N(SyntaxKind.ExternKeyword); 3220N(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)
6911N(SyntaxKind.ExternKeyword); 6993N(SyntaxKind.ExternKeyword);
Parsing\TopLevelStatementsParsingTests.cs (5)
419N(SyntaxKind.ExternKeyword); 1203N(SyntaxKind.ExternKeyword); 1344N(SyntaxKind.ExternKeyword); 1689N(SyntaxKind.ExternKeyword); 2903N(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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
31public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
156SyntaxKind.ExternKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
91case SyntaxKind.ExternKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
143SyntaxKind.ExternKeyword => DeclarationModifiers.Extern,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
22SyntaxKind.ExternKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (2)
31SyntaxKind.ExternKeyword, 49SyntaxKind.ExternKeyword,
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
415modifiers = modifiers.AddToModifiers(SyntaxKind.ExternKeyword); 445Token(SyntaxKind.ExternKeyword),
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
294modifiers = modifiers.AddToModifiers(SyntaxKind.ExternKeyword); 321Token(SyntaxKind.ExternKeyword),
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
131return modifiers.Any(token => token.IsKind(SyntaxKind.ExternKeyword));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
29{ ModifierFlags.Extern, SyntaxKind.ExternKeyword }, 76case SyntaxKind.ExternKeyword: