41 references to ReturnKeyword
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (5)
4294if (returnKeyword.Kind() != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 4301=> SyntaxFactory.ReturnStatement(attributeLists, SyntaxFactory.Token(SyntaxKind.ReturnKeyword), expression, SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4306=> SyntaxFactory.ReturnStatement(default, SyntaxFactory.Token(SyntaxKind.ReturnKeyword), expression, SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4339case SyntaxKind.ReturnKeyword: 4360SyntaxKind.YieldReturnStatement => SyntaxKind.ReturnKeyword,
_generated\1\Syntax.xml.Internal.Generated.cs (4)
31382if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 31416case SyntaxKind.ReturnKeyword: 36804if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 36838case SyntaxKind.ReturnKeyword:
Parser\LanguageParser.cs (7)
8392case SyntaxKind.ReturnKeyword: 8565this.PeekToken(1).Kind is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword; 9283case SyntaxKind.ReturnKeyword: 10179Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ReturnKeyword); 10182this.EatToken(SyntaxKind.ReturnKeyword), 10204returnOrBreak = this.EatToken(SyntaxKind.ReturnKeyword); 11226case SyntaxKind.ReturnKeyword:
Syntax\SyntaxKindFacts.cs (3)
56case SyntaxKind.ReturnKeyword: 961return SyntaxKind.ReturnKeyword; 1660case SyntaxKind.ReturnKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
89public static readonly SyntaxToken ReturnKeyword = Token(SyntaxKind.ReturnKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
217case SyntaxKind.ReturnKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
75Token(leadingTrivia, SyntaxKind.ReturnKeyword, trailing: default),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
541SyntaxKind.ReturnKeyword => AttributeTargets.ReturnValue,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2600if (token.IsKind(SyntaxKind.ReturnKeyword))
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
222case SyntaxKind.ReturnKeyword:
Completion\KeywordRecommenders\ReturnKeywordRecommender.cs (1)
13internal sealed class ReturnKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.ReturnKeyword)
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (1)
43case SyntaxKind.ReturnKeyword:
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
75Token(leadingTrivia, SyntaxKind.ReturnKeyword, trailing: default),
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (1)
86case SyntaxKind.ReturnKeyword:
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1019=> list.Target?.Identifier.IsKind(SyntaxKind.ReturnKeyword) ?? false;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
89public static readonly SyntaxToken ReturnKeyword = Token(SyntaxKind.ReturnKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
217case SyntaxKind.ReturnKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
541SyntaxKind.ReturnKeyword => AttributeTargets.ReturnValue,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2600if (token.IsKind(SyntaxKind.ReturnKeyword))
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
64CSharpSyntaxKind.ReturnKeyword,
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
424localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.ReturnKeyword))));
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
369localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.ReturnKeyword))));
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
89public static readonly SyntaxToken ReturnKeyword = Token(SyntaxKind.ReturnKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
217case SyntaxKind.ReturnKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
541SyntaxKind.ReturnKeyword => AttributeTargets.ReturnValue,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2600if (token.IsKind(SyntaxKind.ReturnKeyword))