23 references to YieldKeyword
Microsoft.CodeAnalysis.CSharp (6)
Parser\LanguageParser.cs (2)
7562return this.CurrentToken.ContextualKind == SyntaxKind.YieldKeyword && 9029Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.YieldKeyword);
Syntax\SyntaxKindFacts.cs (4)
1141for (int i = (int)SyntaxKind.YieldKeyword; i <= (int)SyntaxKind.FileKeyword; i++) 1151case SyntaxKind.YieldKeyword: 1231return SyntaxKind.YieldKeyword; 1669case SyntaxKind.YieldKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
512return targetToken.IsKindOrHasMatchingText(SyntaxKind.YieldKeyword);
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
70context.TargetToken.IsKindOrHasMatchingText(SyntaxKind.YieldKeyword))
Completion\KeywordRecommenders\YieldKeywordRecommender.cs (1)
13: base(SyntaxKind.YieldKeyword)
ExtractMethod\CSharpSelectionValidator.cs (1)
313if (tokens.Any(t => t.Kind() == SyntaxKind.YieldKeyword))
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (3)
40if (token.GetPreviousToken().IsKind(SyntaxKind.YieldKeyword)) 42goto case SyntaxKind.YieldKeyword; 51case SyntaxKind.YieldKeyword:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Generated\Syntax.Test.xml.Generated.cs (4)
377=> 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)); 2176Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.Kind); 10353=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.YieldKeyword), SyntaxFactory.Token(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12152Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (2)
683N(SyntaxKind.YieldKeyword); 757N(SyntaxKind.YieldKeyword);
Parsing\StatementParsingTests.cs (2)
1148Assert.Equal(SyntaxKind.YieldKeyword, ys.YieldKeyword.Kind()); 1172Assert.Equal(SyntaxKind.YieldKeyword, ys.YieldKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
91case SyntaxKind.YieldKeyword:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
512return targetToken.IsKindOrHasMatchingText(SyntaxKind.YieldKeyword);