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