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