86 references to CloseMethod
Microsoft.CodeAnalysis.CSharp (86)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (5)
65F.CloseMethod(F.Block(statements)); 87F.CloseMethod(F.Block(F.Return(F.Field(F.This(), _property.BackingField)))); 149F.CloseMethod(F.Block(ImmutableArray.Create<LocalSymbol>(boundLocal.LocalSymbol), assignment, retStatement)); 212F.CloseMethod(F.Block(F.Return(retExpression))); 291F.CloseMethod(F.Block(F.Return(retExpression)));
Compiler\MethodBodySynthesizer.Lowered.cs (8)
120F.CloseMethod(body); 125F.CloseMethod(F.ThrowNull()); 213F.CloseMethod(body); 218F.CloseMethod(F.ThrowNull()); 252F.CloseMethod(MethodBodySynthesizer.ConstructSingleInvocationMethodBody(F, methodToInvoke, useBaseReference: false)); 257F.CloseMethod(F.ThrowNull()); 285F.CloseMethod(MethodBodySynthesizer.ConstructSingleInvocationMethodBody(F, this.OverriddenAccessor, useBaseReference: true)); 290F.CloseMethod(F.ThrowNull());
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
76factory.CloseMethod(factory.Block(body.ToImmutableAndFree()));
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
214F.CloseMethod(newBody);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (10)
186F.CloseMethod(F.Block(bodyBuilder.ToImmutableAndFree())); 353F.CloseMethod(F.Block( 458F.CloseMethod(F.Block( 487F.CloseMethod(F.Block(F.Return(F.InstanceField(_currentField)))); 511F.CloseMethod(F.Return( 536F.CloseMethod(F.Return( 561F.CloseMethod(F.Block( 588F.CloseMethod(F.Block( 613F.CloseMethod(F.Return( 634F.CloseMethod(F.Block(
Lowering\AsyncRewriter\AsyncRewriter.cs (3)
174F.CloseMethod(F.Return()); 178F.CloseMethod( 198F.CloseMethod(F.Block(ImmutableArray.Create(F.BaseInitialization(), F.Return())));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (4)
159F.CloseMethod(newBody); 170F.CloseMethod(F.Return()); 183F.CloseMethod(disposeBody); 418F.CloseMethod(rewrittenHandler);
Lowering\IteratorRewriter\IteratorRewriter.cs (5)
235F.CloseMethod(F.Return(F.Field(F.This(), _currentField))); 241F.CloseMethod(F.Throw(F.New(F.WellKnownType(WellKnownType.System_NotSupportedException)))); 247F.CloseMethod(F.Return(F.Field(F.This(), _currentField))); 266F.CloseMethod(F.Return(F.Call(F.This(), getEnumeratorGeneric))); 297F.CloseMethod(F.Block(bodyBuilder.ToImmutableAndFree()));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
483F.CloseMethod(F.Block(ImmutableArray.Create(resultVariable), bodyBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (3)
70F.CloseMethod(F.ThrowNull()); 79F.CloseMethod(F.Block(F.Return(retExpr))); 84F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (3)
121F.CloseMethod(F.ThrowNull()); 132F.CloseMethod(F.Return(F.New(ctor, F.This()))); 142F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
66F.CloseMethod(F.ThrowNull()); 87F.CloseMethod(F.ThrowNull()); 105F.CloseMethod(F.Block(statementsBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
173F.CloseMethod(F.Block(F.Return(F.Typeof(ContainingType)))); 178F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (3)
57F.CloseMethod(F.ThrowNull()); 77F.CloseMethod(F.Block(F.Return(expression))); 82F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (5)
79F.CloseMethod(F.ThrowNull()); 86F.CloseMethod(F.ThrowNull()); 117F.CloseMethod(F.ThrowNull()); 178F.CloseMethod(F.Block(F.Return(retExpr))); 183F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (5)
62F.CloseMethod(F.ThrowNull()); 68F.CloseMethod(F.ThrowNull()); 86F.CloseMethod(F.ThrowNull()); 120F.CloseMethod(F.Block(F.Return(currentHashValue))); 125F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (2)
46F.CloseMethod(F.Block(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(), 52F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (3)
52F.CloseMethod(F.ThrowNull()); 74F.CloseMethod(F.Block(ImmutableArray.Create<BoundStatement>(F.Return(expression)))); 79F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (6)
127F.CloseMethod(F.ThrowNull()); 138F.CloseMethod(F.Return(F.Literal(false))); 161F.CloseMethod(F.ThrowNull()); // an error was reported in base checks already 169F.CloseMethod(F.Return(basePrintCall)); 228F.CloseMethod(F.Block(block.ToImmutableAndFree())); 233F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
83F.CloseMethod(F.Block(ImmutableArray.Create(builderLocalSymbol), block.ToImmutableAndFree())); 88F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (3)
293factory.CloseMethod(factory.Block()); 301factory.CloseMethod(factory.Block()); 312factory.CloseMethod(block);
Symbols\Synthesized\SynthesizedParameterlessThrowMethod.cs (2)
36F.CloseMethod(body); 41F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\SynthesizedThrowIfNullMethod.cs (2)
51F.CloseMethod(body); 56F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\SynthesizedThrowMethod.cs (2)
35F.CloseMethod(body); 40F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (2)
37F.CloseMethod(body); 42F.CloseMethod(F.ThrowNull());