102 references to CloseMethod
Microsoft.CodeAnalysis.CSharp (102)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (5)
65
F.
CloseMethod
(F.Block(statements));
87
F.
CloseMethod
(F.Block(F.Return(F.Field(F.This(), _property.BackingField))));
149
F.
CloseMethod
(F.Block(ImmutableArray.Create<LocalSymbol>(boundLocal.LocalSymbol), assignment, retStatement));
212
F.
CloseMethod
(F.Block(F.Return(retExpression)));
291
F.
CloseMethod
(F.Block(F.Return(retExpression)));
Compiler\MethodBodySynthesizer.Lowered.cs (8)
120
F.
CloseMethod
(body);
125
F.
CloseMethod
(F.ThrowNull());
213
F.
CloseMethod
(body);
218
F.
CloseMethod
(F.ThrowNull());
252
F.
CloseMethod
(MethodBodySynthesizer.ConstructSingleInvocationMethodBody(F, methodToInvoke, useBaseReference: false));
257
F.
CloseMethod
(F.ThrowNull());
285
F.
CloseMethod
(MethodBodySynthesizer.ConstructSingleInvocationMethodBody(F, this.OverriddenAccessor, useBaseReference: true));
290
F.
CloseMethod
(F.ThrowNull());
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
76
factory.
CloseMethod
(factory.Block(body.ToImmutableAndFree()));
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
208
F.
CloseMethod
(newBody);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (10)
186
F.
CloseMethod
(F.Block(bodyBuilder.ToImmutableAndFree()));
353
F.
CloseMethod
(F.Block(
458
F.
CloseMethod
(F.Block(
487
F.
CloseMethod
(F.Block(F.Return(F.InstanceField(_currentField))));
511
F.
CloseMethod
(F.Return(
536
F.
CloseMethod
(F.Return(
561
F.
CloseMethod
(F.Block(
588
F.
CloseMethod
(F.Block(
613
F.
CloseMethod
(F.Return(
634
F.
CloseMethod
(F.Block(
Lowering\AsyncRewriter\AsyncRewriter.cs (3)
174
F.
CloseMethod
(F.Return());
178
F.
CloseMethod
(
198
F.
CloseMethod
(F.Block(ImmutableArray.Create(F.BaseInitialization(), F.Return())));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (4)
152
F.
CloseMethod
(newBody);
163
F.
CloseMethod
(F.Return());
176
F.
CloseMethod
(disposeBody);
411
F.
CloseMethod
(rewrittenHandler);
Lowering\IteratorRewriter\IteratorRewriter.cs (5)
235
F.
CloseMethod
(F.Return(F.Field(F.This(), _currentField)));
241
F.
CloseMethod
(F.Throw(F.New(F.WellKnownType(WellKnownType.System_NotSupportedException))));
247
F.
CloseMethod
(F.Return(F.Field(F.This(), _currentField)));
266
F.
CloseMethod
(F.Return(F.Call(F.This(), getEnumeratorGeneric)));
297
F.
CloseMethod
(F.Block(bodyBuilder.ToImmutableAndFree()));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
501
F.
CloseMethod
(F.Block(ImmutableArray.Create(resultVariable), bodyBuilder.ToImmutableAndFree()));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (2)
40
f.
CloseMethod
(block);
45
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (2)
40
f.
CloseMethod
(block);
45
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListMethod.cs (2)
29
f.
CloseMethod
(body);
34
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (3)
61
F.
CloseMethod
(F.ThrowNull());
70
F.
CloseMethod
(F.Block(F.Return(retExpr)));
75
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (3)
116
F.
CloseMethod
(F.ThrowNull());
127
F.
CloseMethod
(F.Return(F.New(ctor, F.This())));
137
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
56
F.
CloseMethod
(F.ThrowNull());
77
F.
CloseMethod
(F.ThrowNull());
95
F.
CloseMethod
(F.Block(statementsBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
179
F.
CloseMethod
(F.Block(F.Return(F.Typeof(ContainingType, ReturnType))));
184
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (3)
57
F.
CloseMethod
(F.ThrowNull());
77
F.
CloseMethod
(F.Block(F.Return(expression)));
82
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (5)
73
F.
CloseMethod
(F.ThrowNull());
80
F.
CloseMethod
(F.ThrowNull());
111
F.
CloseMethod
(F.ThrowNull());
172
F.
CloseMethod
(F.Block(F.Return(retExpr)));
177
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (5)
60
F.
CloseMethod
(F.ThrowNull());
66
F.
CloseMethod
(F.ThrowNull());
84
F.
CloseMethod
(F.ThrowNull());
118
F.
CloseMethod
(F.Block(F.Return(currentHashValue)));
123
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (2)
41
F.
CloseMethod
(F.Block(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),
47
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (3)
50
F.
CloseMethod
(F.ThrowNull());
72
F.
CloseMethod
(F.Block(ImmutableArray.Create<BoundStatement>(F.Return(expression))));
77
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (6)
126
F.
CloseMethod
(F.ThrowNull());
137
F.
CloseMethod
(F.Return(F.Literal(false)));
160
F.
CloseMethod
(F.ThrowNull()); // an error was reported in base checks already
168
F.
CloseMethod
(F.Return(basePrintCall));
228
F.
CloseMethod
(F.Block(block.ToImmutableAndFree()));
233
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
80
F.
CloseMethod
(F.Block(ImmutableArray.Create(builderLocalSymbol), block.ToImmutableAndFree()));
85
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (2)
51
factory.
CloseMethod
(factory.Block());
65
factory.
CloseMethod
(block);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (2)
40
f.
CloseMethod
(body);
45
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (2)
38
f.
CloseMethod
(body);
43
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (2)
40
f.
CloseMethod
(body);
45
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (2)
42
f.
CloseMethod
(body);
47
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (2)
36
f.
CloseMethod
(body);
41
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (2)
38
f.
CloseMethod
(body);
43
f.
CloseMethod
(f.ThrowNull());
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (3)
293
factory.
CloseMethod
(factory.Block());
301
factory.
CloseMethod
(factory.Block());
312
factory.
CloseMethod
(block);
Symbols\Synthesized\SynthesizedParameterlessThrowMethod.cs (2)
36
F.
CloseMethod
(body);
41
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (2)
37
F.
CloseMethod
(body);
42
F.
CloseMethod
(F.ThrowNull());