90 references to Return
Microsoft.CodeAnalysis.CSharp (90)
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)
119F.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)
163F.CloseMethod(F.Return()); 174F.Return()); 188F.Return(F.Literal(false))); 201F.Return(this.F.Local(_methodValue))); 288return F.Return(result); 408F.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)
500bodyBuilder.Add(F.Return(F.Local(resultVariable)));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
39f.Return());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
39f.Return());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (5)
58return f.Return(f.Convert(method.ReturnType, itemFieldReference)); 70return f.Return(itemFieldReference); 82return f.Return( 102return f.Block(f.Assignment(moveNextCalledFieldReference, f.Literal(false)), f.Return()); 108static (f, method, interfaceMethod) => f.Return()));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (19)
481return f.Return(f.New(enumeratorType, fieldReference)); 486return f.Return( 502return f.Return( 511return f.Return( 518return f.Return( 527return f.Return(f.Literal(false)); 534return f.Return( 544return f.Return(f.Literal(true)); 551return f.Return(f.Literal(true)); 564return f.Return( 570return f.Return( 582return f.Return( 644return f.Block(statement, f.Return()); 664f.Return(fieldReference)); 669return f.Return( 676return f.Return( 691return f.Return( 701return f.Return( 713return f.Return(
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
70F.CloseMethod(F.Block(F.Return(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
127F.CloseMethod(F.Return(F.New(ctor, F.This())));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
94statementsBuilder.Add(F.Return());
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
179F.CloseMethod(F.Block(F.Return(F.Typeof(ContainingType, ReturnType))));
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
77F.CloseMethod(F.Block(F.Return(expression)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
172F.CloseMethod(F.Block(F.Return(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
118F.CloseMethod(F.Block(F.Return(currentHashValue)));
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
41F.CloseMethod(F.Block(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
72F.CloseMethod(F.Block(ImmutableArray.Create<BoundStatement>(F.Return(expression))));
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (3)
137F.CloseMethod(F.Return(F.Literal(false))); 168F.CloseMethod(F.Return(basePrintCall)); 226block.Add(F.Return(F.Literal(true)));
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
78block.Add(F.Return(F.Call(builderLocal, F.SpecialMethod(SpecialMember.System_Object__ToString))));
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
62factory.Return()
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
30var body = f.Return(f.Call(null,
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
30var body = f.Return(f.Call(null,
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (1)
32var body = f.Return(f.Call(null,
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (1)
32var body = f.Return(f.Call(null,
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (1)
31var body = f.Return(f.Call(null,
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (1)
31var body = f.Return(f.Call(null,
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
308statements.Add(factory.Return());