18 references to NullableKeyword
Microsoft.CodeAnalysis.CSharp (5)
Parser\DirectiveParser.cs (1)
111
case SyntaxKind.
NullableKeyword
:
Syntax\SyntaxKindFacts.cs (4)
104
case SyntaxKind.
NullableKeyword
:
242
case SyntaxKind.
NullableKeyword
:
1155
return SyntaxKind.
NullableKeyword
;
1695
case SyntaxKind.
NullableKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
51
if (token.Kind() is not (SyntaxKind.EnableKeyword or SyntaxKind.RestoreKeyword or SyntaxKind.DisableKeyword or SyntaxKind.
NullableKeyword
or SyntaxKind.HashToken) ||
Completion\KeywordRecommenders\AnnotationsKeywordRecommender.cs (1)
27
previousToken2.Kind() == SyntaxKind.
NullableKeyword
&&
Completion\KeywordRecommenders\DisableKeywordRecommender.cs (1)
23
if (previousToken1.Kind() == SyntaxKind.
NullableKeyword
&&
Completion\KeywordRecommenders\EnableKeywordRecommender.cs (1)
24
if (previousToken1.Kind() == SyntaxKind.
NullableKeyword
&&
Completion\KeywordRecommenders\NullableKeywordRecommender.cs (1)
13
: base(SyntaxKind.
NullableKeyword
, isValidInPreprocessorContext: true)
Completion\KeywordRecommenders\RestoreKeywordRecommender.cs (1)
31
(previousToken1.Kind() == SyntaxKind.
NullableKeyword
&&
Completion\KeywordRecommenders\WarningsKeywordRecommender.cs (1)
27
previousToken2.Kind() == SyntaxKind.
NullableKeyword
&&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.cs (4)
743
=> InternalSyntaxFactory.NullableDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.
NullableKeyword
), InternalSyntaxFactory.Token(SyntaxKind.EnableKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
3869
Assert.Equal(SyntaxKind.
NullableKeyword
, node.NullableKeyword.Kind);
10959
=> SyntaxFactory.NullableDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.
NullableKeyword
), SyntaxFactory.Token(SyntaxKind.EnableKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
14085
Assert.Equal(SyntaxKind.
NullableKeyword
, node.NullableKeyword.Kind());
LexicalAndXml\PreprocessorTests.cs (2)
279
Assert.Equal(SyntaxKind.
NullableKeyword
, nn.DirectiveNameToken.Kind());
281
Assert.True(SyntaxFacts.IsPreprocessorKeyword(SyntaxKind.
NullableKeyword
));