25 references to YieldKeyword
Microsoft.CodeAnalysis.CSharp (6)
Parser\LanguageParser.cs (2)
8137return this.CurrentToken.ContextualKind == SyntaxKind.YieldKeyword && 9597Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.YieldKeyword);
Syntax\SyntaxKindFacts.cs (4)
1169for (int i = (int)SyntaxKind.YieldKeyword; i <= (int)SyntaxKind.AllowsKeyword; i++) 1184case SyntaxKind.YieldKeyword: 1265return SyntaxKind.YieldKeyword; 1705case SyntaxKind.YieldKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
516return targetToken.IsKindOrHasMatchingText(SyntaxKind.YieldKeyword);
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
62context.TargetToken.IsKindOrHasMatchingText(SyntaxKind.YieldKeyword))
Completion\KeywordRecommenders\YieldKeywordRecommender.cs (1)
13: base(SyntaxKind.YieldKeyword)
ExtractMethod\CSharpSelectionValidator.cs (1)
349if (tokens.Any(t => t.Kind() == SyntaxKind.YieldKeyword))
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (3)
42if (token.GetPreviousToken().IsKind(SyntaxKind.YieldKeyword)) 44goto case SyntaxKind.YieldKeyword; 53case SyntaxKind.YieldKeyword:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Generated\Syntax.Test.xml.Generated.cs (4)
386=> InternalSyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.YieldKeyword), InternalSyntaxFactory.Token(SyntaxKind.ReturnKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 2224Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.Kind); 10563=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.YieldKeyword), SyntaxFactory.Token(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12401Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (2)
684N(SyntaxKind.YieldKeyword); 758N(SyntaxKind.YieldKeyword);
Parsing\StatementParsingTests.cs (2)
1148Assert.Equal(SyntaxKind.YieldKeyword, ys.YieldKeyword.Kind()); 1172Assert.Equal(SyntaxKind.YieldKeyword, ys.YieldKeyword.Kind());
Syntax\SyntaxTests.cs (2)
299[InlineData(nameof(SyntaxFacts.GetContextualKeywordKinds), SyntaxKind.YieldKeyword, SyntaxKind.ElifKeyword)] 301[InlineData(nameof(SyntaxFacts.GetReservedKeywordKinds), SyntaxKind.BoolKeyword, SyntaxKind.YieldKeyword)]
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
91case SyntaxKind.YieldKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
516return targetToken.IsKindOrHasMatchingText(SyntaxKind.YieldKeyword);