86 references to CloseMethod
Microsoft.CodeAnalysis.CSharp (86)
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)
214
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)
159
F.
CloseMethod
(newBody);
170
F.
CloseMethod
(F.Return());
183
F.
CloseMethod
(disposeBody);
418
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)
483
F.
CloseMethod
(F.Block(ImmutableArray.Create(resultVariable), bodyBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (3)
70
F.
CloseMethod
(F.ThrowNull());
79
F.
CloseMethod
(F.Block(F.Return(retExpr)));
84
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (3)
121
F.
CloseMethod
(F.ThrowNull());
132
F.
CloseMethod
(F.Return(F.New(ctor, F.This())));
142
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
66
F.
CloseMethod
(F.ThrowNull());
87
F.
CloseMethod
(F.ThrowNull());
105
F.
CloseMethod
(F.Block(statementsBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
173
F.
CloseMethod
(F.Block(F.Return(F.Typeof(ContainingType))));
178
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)
79
F.
CloseMethod
(F.ThrowNull());
86
F.
CloseMethod
(F.ThrowNull());
117
F.
CloseMethod
(F.ThrowNull());
178
F.
CloseMethod
(F.Block(F.Return(retExpr)));
183
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (5)
62
F.
CloseMethod
(F.ThrowNull());
68
F.
CloseMethod
(F.ThrowNull());
86
F.
CloseMethod
(F.ThrowNull());
120
F.
CloseMethod
(F.Block(F.Return(currentHashValue)));
125
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (2)
46
F.
CloseMethod
(F.Block(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),
52
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (3)
52
F.
CloseMethod
(F.ThrowNull());
74
F.
CloseMethod
(F.Block(ImmutableArray.Create<BoundStatement>(F.Return(expression))));
79
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (6)
127
F.
CloseMethod
(F.ThrowNull());
138
F.
CloseMethod
(F.Return(F.Literal(false)));
161
F.
CloseMethod
(F.ThrowNull()); // an error was reported in base checks already
169
F.
CloseMethod
(F.Return(basePrintCall));
228
F.
CloseMethod
(F.Block(block.ToImmutableAndFree()));
233
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
83
F.
CloseMethod
(F.Block(ImmutableArray.Create(builderLocalSymbol), block.ToImmutableAndFree()));
88
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\SynthesizedThrowIfNullMethod.cs (2)
51
F.
CloseMethod
(body);
56
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\SynthesizedThrowMethod.cs (2)
35
F.
CloseMethod
(body);
40
F.
CloseMethod
(F.ThrowNull());
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (2)
37
F.
CloseMethod
(body);
42
F.
CloseMethod
(F.ThrowNull());