25 references to YieldKeyword
Microsoft.CodeAnalysis.CSharp (6)
Parser\LanguageParser.cs (2)
8149
return this.CurrentToken.ContextualKind == SyntaxKind.
YieldKeyword
&&
9654
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
YieldKeyword
);
Syntax\SyntaxKindFacts.cs (4)
1169
for (int i = (int)SyntaxKind.
YieldKeyword
; i <= (int)SyntaxKind.AllowsKeyword; i++)
1184
case SyntaxKind.
YieldKeyword
:
1265
return SyntaxKind.
YieldKeyword
;
1705
case SyntaxKind.
YieldKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
516
return targetToken.IsKindOrHasMatchingText(SyntaxKind.
YieldKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
62
context.TargetToken.IsKindOrHasMatchingText(SyntaxKind.
YieldKeyword
))
Completion\KeywordRecommenders\YieldKeywordRecommender.cs (1)
13
: base(SyntaxKind.
YieldKeyword
)
ExtractMethod\CSharpSelectionValidator.cs (1)
349
if (tokens.Any(t => t.Kind() == SyntaxKind.
YieldKeyword
))
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (3)
42
if (token.GetPreviousToken().IsKind(SyntaxKind.
YieldKeyword
))
44
goto case SyntaxKind.
YieldKeyword
;
53
case SyntaxKind.
YieldKeyword
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Generated\Syntax.Test.xml.Generated.cs (4)
389
=> 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));
2237
Assert.Equal(SyntaxKind.
YieldKeyword
, node.YieldKeyword.Kind);
10605
=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.
YieldKeyword
), SyntaxFactory.Token(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
12453
Assert.Equal(SyntaxKind.
YieldKeyword
, node.YieldKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (2)
684
N(SyntaxKind.
YieldKeyword
);
758
N(SyntaxKind.
YieldKeyword
);
Parsing\StatementParsingTests.cs (2)
1148
Assert.Equal(SyntaxKind.
YieldKeyword
, ys.YieldKeyword.Kind());
1172
Assert.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)
90
case SyntaxKind.
YieldKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
516
return targetToken.IsKindOrHasMatchingText(SyntaxKind.
YieldKeyword
);