18 references to NullableKeyword
Microsoft.CodeAnalysis.CSharp (5)
Parser\DirectiveParser.cs (1)
106case SyntaxKind.NullableKeyword:
Syntax\SyntaxKindFacts.cs (4)
104case SyntaxKind.NullableKeyword: 242case SyntaxKind.NullableKeyword: 1155return SyntaxKind.NullableKeyword; 1695case SyntaxKind.NullableKeyword:
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
51if (token.Kind() is not (SyntaxKind.EnableKeyword or SyntaxKind.RestoreKeyword or SyntaxKind.DisableKeyword or SyntaxKind.NullableKeyword or SyntaxKind.HashToken) ||
Completion\KeywordRecommenders\AnnotationsKeywordRecommender.cs (1)
27previousToken2.Kind() == SyntaxKind.NullableKeyword &&
Completion\KeywordRecommenders\DisableKeywordRecommender.cs (1)
23if (previousToken1.Kind() == SyntaxKind.NullableKeyword &&
Completion\KeywordRecommenders\EnableKeywordRecommender.cs (1)
24if (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)
27previousToken2.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()); 3869Assert.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()); 14085Assert.Equal(SyntaxKind.NullableKeyword, node.NullableKeyword.Kind());
LexicalAndXml\PreprocessorTests.cs (2)
279Assert.Equal(SyntaxKind.NullableKeyword, nn.DirectiveNameToken.Kind()); 281Assert.True(SyntaxFacts.IsPreprocessorKeyword(SyntaxKind.NullableKeyword));