86 references to ExternKeyword
Microsoft.CodeAnalysis.CSharp (27)
_generated\0\Syntax.xml.Main.Generated.cs (3)
4804if (externKeyword.Kind() != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 4813=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.AliasKeyword), identifier, SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4817=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.AliasKeyword), SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
_generated\1\Syntax.xml.Internal.Generated.cs (2)
31778if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 37205if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
Binder\Binder_Statements.cs (1)
604else if (modifier.IsKind(SyntaxKind.ExternKeyword))
Parser\LanguageParser.cs (10)
633case SyntaxKind.ExternKeyword: 873case SyntaxKind.ExternKeyword: 928return this.CurrentToken.Kind == SyntaxKind.ExternKeyword 941Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ExternKeyword); 944this.EatToken(SyntaxKind.ExternKeyword), 1322case SyntaxKind.ExternKeyword: 2442case SyntaxKind.ExternKeyword: 9267case SyntaxKind.ExternKeyword: 10931case SyntaxKind.ExternKeyword: 11006case SyntaxKind.ExternKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
966AddKeyword(SyntaxKind.ExternKeyword);
Symbols\Source\LocalFunctionSymbol.cs (1)
139Syntax.Modifiers.GetModifierLocation(SyntaxKind.ExternKeyword, Syntax.Identifier.GetLocation()));
Symbols\Source\ModifierUtils.cs (2)
339return SyntaxFacts.GetText(SyntaxKind.ExternKeyword); 391case SyntaxKind.ExternKeyword:
Symbols\Source\SourceEventSymbol.cs (1)
893(MemberSyntax?.Modifiers).GetModifierLocation(SyntaxKind.ExternKeyword, location));
Symbols\Source\SourceMemberContainerSymbol.cs (2)
3233!ContainsModifier(propertyDecl.Modifiers, SyntaxKind.ExternKeyword) && 3243!ContainsModifier(eventFieldDecl.Modifiers, SyntaxKind.ExternKeyword);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1001Modifiers.GetModifierLocation(SyntaxKind.ExternKeyword, _location));
Symbols\Source\SourcePropertySymbolBase.cs (1)
1056(Syntax?.Modifiers).GetModifierLocation(SyntaxKind.ExternKeyword, GetFirstLocation()));
Syntax\SyntaxKindFacts.cs (2)
993return SyntaxKind.ExternKeyword; 1694case SyntaxKind.ExternKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
42public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
165SyntaxKind.ExternKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
93case SyntaxKind.ExternKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
138SyntaxKind.ExternKeyword => Modifiers.Extern,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
23SyntaxKind.ExternKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (2)
34SyntaxKind.ExternKeyword, 52SyntaxKind.ExternKeyword,
Microsoft.CodeAnalysis.CSharp.Features (29)
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
121case SyntaxKind.ExternKeyword:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (2)
16SyntaxKind.ExternKeyword, 27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\AliasKeywordRecommender.cs (1)
21if (token.Kind() == SyntaxKind.ExternKeyword)
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
27SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (1)
18SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
13internal sealed class ExternKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.ExternKeyword)
Completion\KeywordRecommenders\FileKeywordRecommender.cs (1)
17.Where(s => s != SyntaxKind.FileKeyword && s != SyntaxKind.ExternKeyword && !SyntaxFacts.IsAccessibilityModifier(s))
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)
25SyntaxKind.ExternKeyword, 46SyntaxKind.ExternKeyword, 64SyntaxKind.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)
31SyntaxKind.ExternKeyword, 47SyntaxKind.ExternKeyword, 59SyntaxKind.ExternKeyword,
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (2)
103if (nextToken.Kind() == SyntaxKind.ExternKeyword) 166if (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.Workspaces (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
42public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
165SyntaxKind.ExternKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
93case SyntaxKind.ExternKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
138SyntaxKind.ExternKeyword => Modifiers.Extern,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
23SyntaxKind.ExternKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (2)
34SyntaxKind.ExternKeyword, 52SyntaxKind.ExternKeyword,
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
63CSharpSyntaxKind.ExternKeyword,
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
352modifiers = modifiers.AddToModifiers(SyntaxKind.ExternKeyword); 411Token(SyntaxKind.ExternKeyword),
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
300modifiers = modifiers.AddToModifiers(SyntaxKind.ExternKeyword); 356Token(SyntaxKind.ExternKeyword),
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
131return modifiers.Any(token => token.IsKind(SyntaxKind.ExternKeyword));
Roslyn.Diagnostics.CSharp.Analyzers (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
42public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
165SyntaxKind.ExternKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
93case SyntaxKind.ExternKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
138SyntaxKind.ExternKeyword => Modifiers.Extern,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
20SyntaxKind.ExternKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
23SyntaxKind.ExternKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (2)
34SyntaxKind.ExternKeyword, 52SyntaxKind.ExternKeyword,