19 references to ReturnKeyword
Microsoft.CodeAnalysis.CSharp (15)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1908
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.
ReturnKeyword
), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
7394
if (attributeLists != this.AttributeLists || returnKeyword != this.
ReturnKeyword
|| expression != this.Expression || semicolonToken != this.SemicolonToken)
7405
public new ReturnStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
ReturnKeyword
, this.Expression, this.SemicolonToken);
7407
public ReturnStatementSyntax WithExpression(ExpressionSyntax? expression) => Update(this.AttributeLists, this.
ReturnKeyword
, expression, this.SemicolonToken);
7408
public ReturnStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.
ReturnKeyword
, this.Expression, semicolonToken);
Binder\Binder_Statements.cs (9)
3087
diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.
ReturnKeyword
.GetLocation());
3095
diagnostics.Add(ErrorCode.ERR_MustNotHaveRefReturn, syntax.
ReturnKeyword
.GetLocation());
3100
diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.
ReturnKeyword
.GetLocation());
3109
diagnostics.Add(errorCode, syntax.
ReturnKeyword
.GetLocation());
3138
Error(diagnostics, ErrorCode.ERR_RetNoObjectRequiredLambda, syntax.
ReturnKeyword
);
3142
Error(diagnostics, ErrorCode.ERR_TaskRetNoObjectRequiredLambda, syntax.
ReturnKeyword
, retType);
3158
Error(diagnostics, ErrorCode.ERR_RetNoObjectRequired, syntax.
ReturnKeyword
, container);
3162
Error(diagnostics, ErrorCode.ERR_TaskRetNoObjectRequired, syntax.
ReturnKeyword
, container, retType);
3178
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
)