102 references to CloseMethod
Microsoft.CodeAnalysis.CSharp (102)
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)
210F.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)
153F.CloseMethod(newBody); 168F.CloseMethod(disposeBody); 182F.CloseMethod(disposeBody); 417F.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)
505F.CloseMethod(F.Block(ImmutableArray.Create(resultVariable), bodyBuilder.ToImmutableAndFree()));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (2)
40f.CloseMethod(block); 45f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (2)
40f.CloseMethod(block); 45f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListMethod.cs (2)
29f.CloseMethod(body); 34f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (3)
61F.CloseMethod(F.ThrowNull()); 70F.CloseMethod(F.Block(F.Return(retExpr))); 75F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (3)
116F.CloseMethod(F.ThrowNull()); 127F.CloseMethod(F.Return(F.New(ctor, F.This()))); 137F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
56F.CloseMethod(F.ThrowNull()); 77F.CloseMethod(F.ThrowNull()); 95F.CloseMethod(F.Block(statementsBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
179F.CloseMethod(F.Block(F.Return(F.Typeof(ContainingType, ReturnType)))); 184F.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)
73F.CloseMethod(F.ThrowNull()); 80F.CloseMethod(F.ThrowNull()); 111F.CloseMethod(F.ThrowNull()); 172F.CloseMethod(F.Block(F.Return(retExpr))); 177F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (5)
60F.CloseMethod(F.ThrowNull()); 66F.CloseMethod(F.ThrowNull()); 84F.CloseMethod(F.ThrowNull()); 118F.CloseMethod(F.Block(F.Return(currentHashValue))); 123F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (2)
41F.CloseMethod(F.Block(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(), 47F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (3)
50F.CloseMethod(F.ThrowNull()); 72F.CloseMethod(F.Block(ImmutableArray.Create<BoundStatement>(F.Return(expression)))); 77F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (6)
126F.CloseMethod(F.ThrowNull()); 137F.CloseMethod(F.Return(F.Literal(false))); 160F.CloseMethod(F.ThrowNull()); // an error was reported in base checks already 168F.CloseMethod(F.Return(basePrintCall)); 228F.CloseMethod(F.Block(block.ToImmutableAndFree())); 233F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
80F.CloseMethod(F.Block(ImmutableArray.Create(builderLocalSymbol), block.ToImmutableAndFree())); 85F.CloseMethod(F.ThrowNull());
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (2)
51factory.CloseMethod(factory.Block()); 65factory.CloseMethod(block);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (2)
40f.CloseMethod(body); 45f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (2)
38f.CloseMethod(body); 43f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (2)
40f.CloseMethod(body); 45f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (2)
42f.CloseMethod(body); 47f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (2)
36f.CloseMethod(body); 41f.CloseMethod(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (2)
38f.CloseMethod(body); 43f.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\SynthesizedThrowSwitchExpressionExceptionMethod.cs (2)
37F.CloseMethod(body); 42F.CloseMethod(F.ThrowNull());