19 references to ReturnKeyword
Microsoft.CodeAnalysis.CSharp (15)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1888
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.
ReturnKeyword
), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
7300
if (attributeLists != this.AttributeLists || returnKeyword != this.
ReturnKeyword
|| expression != this.Expression || semicolonToken != this.SemicolonToken)
7311
public new ReturnStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
ReturnKeyword
, this.Expression, this.SemicolonToken);
7313
public ReturnStatementSyntax WithExpression(ExpressionSyntax? expression) => Update(this.AttributeLists, this.
ReturnKeyword
, expression, this.SemicolonToken);
7314
public ReturnStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.
ReturnKeyword
, this.Expression, semicolonToken);
Binder\Binder_Statements.cs (9)
3062
diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.
ReturnKeyword
.GetLocation());
3070
diagnostics.Add(ErrorCode.ERR_MustNotHaveRefReturn, syntax.
ReturnKeyword
.GetLocation());
3075
diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.
ReturnKeyword
.GetLocation());
3084
diagnostics.Add(errorCode, syntax.
ReturnKeyword
.GetLocation());
3113
Error(diagnostics, ErrorCode.ERR_RetNoObjectRequiredLambda, syntax.
ReturnKeyword
);
3117
Error(diagnostics, ErrorCode.ERR_TaskRetNoObjectRequiredLambda, syntax.
ReturnKeyword
, retType);
3133
Error(diagnostics, ErrorCode.ERR_RetNoObjectRequired, syntax.
ReturnKeyword
, container);
3137
Error(diagnostics, ErrorCode.ERR_TaskRetNoObjectRequired, syntax.
ReturnKeyword
, container, retType);
3153
Error(diagnostics, ErrorCode.ERR_RetObjectRequired, syntax.
ReturnKeyword
, requiredType);
Syntax\LookupPosition.cs (1)
349
return ((ReturnStatementSyntax)statement).
ReturnKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2103
if (previousToken.HasValue && previousToken.Value != returnStatement.
ReturnKeyword
)
Microsoft.CodeAnalysis.CSharp.Features (1)
Highlighting\KeywordHighlighters\ReturnStatementHighlighter.cs (1)
53
spans.Add(statement.
ReturnKeyword
.Span);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2103
if (previousToken.HasValue && previousToken.Value != returnStatement.
ReturnKeyword
)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2103
if (previousToken.HasValue && previousToken.Value != returnStatement.
ReturnKeyword
)