41 references to ReturnKeyword
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (5)
4256if (returnKeyword.Kind() != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 4263=> SyntaxFactory.ReturnStatement(attributeLists, SyntaxFactory.Token(SyntaxKind.ReturnKeyword), expression, SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4268=> SyntaxFactory.ReturnStatement(default, SyntaxFactory.Token(SyntaxKind.ReturnKeyword), expression, SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4301case SyntaxKind.ReturnKeyword: 4322SyntaxKind.YieldReturnStatement => SyntaxKind.ReturnKeyword,
_generated\1\Syntax.xml.Internal.Generated.cs (4)
31247if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 31281case SyntaxKind.ReturnKeyword: 36674if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 36708case SyntaxKind.ReturnKeyword:
Parser\LanguageParser.cs (7)
8387case SyntaxKind.ReturnKeyword: 8544this.PeekToken(1).Kind is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword; 9262case SyntaxKind.ReturnKeyword: 10156Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ReturnKeyword); 10159this.EatToken(SyntaxKind.ReturnKeyword), 10181returnOrBreak = this.EatToken(SyntaxKind.ReturnKeyword); 11202case SyntaxKind.ReturnKeyword:
Syntax\SyntaxKindFacts.cs (3)
56case SyntaxKind.ReturnKeyword: 959return SyntaxKind.ReturnKeyword; 1658case 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)
2607if (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)
54case 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)
2607if (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)
2607if (token.IsKind(SyntaxKind.ReturnKeyword))