41 references to YieldReturnStatement
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Statements.cs (2)
136case SyntaxKind.YieldReturnStatement: 335case SyntaxKind.YieldReturnStatement:
Binder\ExpressionVariableFinder.cs (1)
43case SyntaxKind.YieldReturnStatement:
Binder\LocalBinderFactory.cs (1)
1050case SyntaxKind.YieldReturnStatement:
Binder\LocalScopeBinder.cs (1)
262case SyntaxKind.YieldReturnStatement:
Parser\LanguageParser.cs (1)
9668kind = SyntaxKind.YieldReturnStatement;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5215case SyntaxKind.YieldReturnStatement:
Syntax\LambdaUtilities.cs (1)
415case SyntaxKind.YieldReturnStatement:
Syntax\LookupPosition.cs (2)
362case SyntaxKind.YieldReturnStatement: 438case SyntaxKind.YieldReturnStatement:
Syntax\SyntaxBindingUtilities.cs (1)
14=> node.IsKind(SyntaxKind.YieldReturnStatement) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
573case SyntaxKind.YieldReturnStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
142(nodeParent is YieldStatementSyntax(SyntaxKind.YieldReturnStatement) yieldStatement && yieldStatement.Expression == node) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
154public int YieldReturnStatement => (int)SyntaxKind.YieldReturnStatement;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
75SyntaxKind.YieldReturnStatement,
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
117if (node.Parent is (kind: SyntaxKind.ReturnStatement or SyntaxKind.YieldReturnStatement)) 136var onYield = node.IsParentKind(SyntaxKind.YieldReturnStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
101=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, (ExpressionSyntax)expression);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
365case SyntaxKind.YieldReturnStatement:
Microsoft.CodeAnalysis.CSharp.Features (10)
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
280case SyntaxKind.YieldReturnStatement:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
573=> YieldStatement(SyntaxKind.YieldReturnStatement, expression); 765=> YieldStatement(SyntaxKind.YieldReturnStatement, expression), queryExpressionProcessingInfo);
EditAndContinue\BreakpointSpans.cs (1)
755case SyntaxKind.YieldReturnStatement:
EditAndContinue\SyntaxComparer.cs (1)
370case SyntaxKind.YieldReturnStatement:
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
75SyntaxKind.YieldReturnStatement,
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
117if (node.Parent is (kind: SyntaxKind.ReturnStatement or SyntaxKind.YieldReturnStatement)) 136var onYield = node.IsParentKind(SyntaxKind.YieldReturnStatement);
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
415case SyntaxKind.YieldReturnStatement:
src\Compilers\CSharp\Portable\Syntax\SyntaxBindingUtilities.cs (1)
14=> node.IsKind(SyntaxKind.YieldReturnStatement) ||
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\IteratorTests.cs (1)
461Assert.Equal(SyntaxKind.YieldReturnStatement, yieldNode.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Generated\Syntax.Test.xml.Generated.cs (2)
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)); 10605=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.YieldKeyword), SyntaxFactory.Token(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
Parsing\StatementAttributeParsingTests.cs (2)
670N(SyntaxKind.YieldReturnStatement); 744N(SyntaxKind.YieldReturnStatement);
Parsing\StatementParsingTests.cs (1)
1141Assert.Equal(SyntaxKind.YieldReturnStatement, statement.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
115case SyntaxKind.YieldReturnStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
573case SyntaxKind.YieldReturnStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
142(nodeParent is YieldStatementSyntax(SyntaxKind.YieldReturnStatement) yieldStatement && yieldStatement.Expression == node) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
154public int YieldReturnStatement => (int)SyntaxKind.YieldReturnStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
101=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, (ExpressionSyntax)expression);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
448case SyntaxKind.ReturnKeyword when token.Parent.IsKind(SyntaxKind.YieldReturnStatement):