58 references to Return
Microsoft.CodeAnalysis.CSharp (58)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (5)
62
statements[statementIndex++] = F.
Return
();
87
F.CloseMethod(F.Block(F.
Return
(F.Field(F.This(), _property.BackingField))));
146
BoundStatement retStatement = F.
Return
(retExpression);
212
F.CloseMethod(F.Block(F.
Return
(retExpression)));
291
F.CloseMethod(F.Block(F.
Return
(retExpression)));
Compiler\MethodBodySynthesizer.Lowered.cs (4)
116
F.
Return
(F.Local(hashCode))
209
F.
Return
(F.Local(hashCode))
470
? F.Block(F.ExpressionStatement(invocation), F.
Return
())
471
: F.Block(F.
Return
(invocation));
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
73
BoundStatement returnStatement = factory.
Return
();
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
118
F.
Return
(),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
185
bodyBuilder.Add(F.
Return
());
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (14)
185
bodyBuilder.Add(F.
Return
());
270
F.
Return
(
333
thenClause: F.
Return
(F.Default(moveNextAsyncReturnType)));
346
thenClause: F.
Return
(F.New(valueTaskT_ctorValue, F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_GetResult, versionLocal))));
351
var returnStatement = F.
Return
(F.New(valueTaskT_ctor, F.This(), versionLocal));
449
thenClause: F.
Return
(F.Default(returnType)));
456
var returnStatement = F.
Return
(F.New(valueTask_ctor, F.This(), F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_get_Version)));
487
F.CloseMethod(F.Block(F.
Return
(F.InstanceField(_currentField))));
511
F.CloseMethod(F.
Return
(
536
F.CloseMethod(F.
Return
(
569
F.
Return
())); // return;
592
F.
Return
()));
613
F.CloseMethod(F.
Return
(
642
F.
Return
())); // return;
Lowering\AsyncRewriter\AsyncRewriter.cs (5)
174
F.CloseMethod(F.
Return
());
186
F.
Return
()));
198
F.CloseMethod(F.Block(ImmutableArray.Create(F.BaseInitialization(), F.
Return
())));
268
? F.
Return
()
269
: F.
Return
(
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (6)
170
F.CloseMethod(F.
Return
());
181
F.
Return
());
195
F.
Return
(F.Literal(false)));
208
F.
Return
(this.F.Local(_methodValue)));
295
return F.
Return
(result);
415
F.
Return
()
Lowering\IteratorRewriter\IteratorRewriter.cs (5)
235
F.CloseMethod(F.
Return
(F.Field(F.This(), _currentField)));
247
F.CloseMethod(F.
Return
(F.Field(F.This(), _currentField)));
266
F.CloseMethod(F.
Return
(F.Call(F.This(), getEnumeratorGeneric)));
296
bodyBuilder.Add(F.
Return
());
320
F.
Return
(
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
482
bodyBuilder.Add(F.
Return
(F.Local(resultVariable)));
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
79
F.CloseMethod(F.Block(F.
Return
(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
132
F.CloseMethod(F.
Return
(F.New(ctor, F.This())));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
104
statementsBuilder.Add(F.
Return
());
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
173
F.CloseMethod(F.Block(F.
Return
(F.Typeof(ContainingType))));
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
77
F.CloseMethod(F.Block(F.
Return
(expression)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
178
F.CloseMethod(F.Block(F.
Return
(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
120
F.CloseMethod(F.Block(F.
Return
(currentHashValue)));
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
46
F.CloseMethod(F.Block(F.
Return
(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
74
F.CloseMethod(F.Block(ImmutableArray.Create<BoundStatement>(F.
Return
(expression))));
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (3)
138
F.CloseMethod(F.
Return
(F.Literal(false)));
169
F.CloseMethod(F.
Return
(basePrintCall));
226
block.Add(F.
Return
(F.Literal(true)));
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
81
block.Add(F.
Return
(F.Call(builderLocal, F.SpecialMethod(SpecialMember.System_Object__ToString))));
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
308
statements.Add(factory.
Return
());
Symbols\Synthesized\SynthesizedThrowIfNullMethod.cs (1)
48
F.
Return
());