61 references to Block
Microsoft.CodeAnalysis.CSharp (61)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (4)
65
F.CloseMethod(F.
Block
(statements));
87
F.CloseMethod(F.
Block
(F.Return(F.Field(F.This(), _property.BackingField))));
212
F.CloseMethod(F.
Block
(F.Return(retExpression)));
291
F.CloseMethod(F.
Block
(F.Return(retExpression)));
Compiler\MethodBodySynthesizer.Lowered.cs (4)
88
F.
Block
(
333
if (body.Kind != BoundKind.Block) body = F.
Block
(body);
470
? F.
Block
(F.ExpressionStatement(invocation), F.Return())
471
: F.
Block
(F.Return(invocation));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (7)
182
_F.
Block
(
190
BoundBlock syntheticFinallyBlock = _F.
Block
(
332
unpendReturn = _F.
Block
(
377
return _F.
Block
(
474
_F.
Block
(
556
body: _F.
Block
(
602
body: _F.
Block
(
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (6)
88
return (asyncDispatch != null) ? F.
Block
(asyncDispatch, iteratorDispatch) : iteratorDispatch;
162
thenClause: F.
Block
(
206
return F.
Block
(
243
return F.
Block
(
312
return F.
Block
(
354
tryBlock: F.
Block
(node.TryBlock, F.Label(finallyEntry)),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (6)
211
F.Try(F.
Block
(newBody), ImmutableArray<BoundCatchBlock>.Empty, F.
Block
(instrumentation.Epilogue)));
259
body: F.
Block
(
371
var awaitIfIncomplete = F.
Block
(
575
elseClauseOpt: F.
Block
(
643
return F.
Block
(
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (5)
246
elseClauseOpt: F.
Block
(
487
F.CloseMethod(F.
Block
(F.Return(F.InstanceField(_currentField))));
561
F.CloseMethod(F.
Block
(
588
F.CloseMethod(F.
Block
(
634
F.CloseMethod(F.
Block
(
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
180
F.
Block
(
Lowering\ClosureConversion\ClosureConversion.cs (1)
550
var body = F.
Block
(
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (9)
145
var faultBlock = F.
Block
(F.ExpressionStatement(F.Call(F.This(), disposeMethod)));
156
F.Try(F.
Block
(newBody), ImmutableArray<BoundCatchBlock>.Empty, F.
Block
(instrumentation.Epilogue)));
193
return F.
Block
(
271
body = F.
Block
(
278
var tryBlock = body != null ? F.
Block
(body) : F.Block();
282
F.
Block
(F.ExpressionStatement(F.Call(F.This(), frame.handler))));
313
return this.F.
Block
(
341
return F.
Block
(
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (3)
68
_factory.
Block
(cleanup)));
287
return factory.
Block
(pinnedTempInit, localInit);
456
return factory.
Block
(stringTempInit, localInit, conditionalAdd);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (1)
125
resultBuilder.Add(_factory.
Block
(_statements.ToArray()));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (7)
260
result = F.
Block
(result, missingStateDispatch);
376
translatedStatement = F.
Block
(
399
return F.
Block
(new BoundStateMachineScope(F.Syntax, hoistedLocals, statement));
845
BoundBlock tryBlock = F.
Block
((BoundStatement)this.Visit(node.TryBlock));
851
tryBlock = F.
Block
(
864
BoundBlock finallyBlockOpt = node.FinallyBlockOpt == null ? null : F.
Block
(
876
result = F.
Block
(
Lowering\SyntheticBoundNodeFactory.cs (1)
542
body =
Block
(body);
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
79
F.CloseMethod(F.
Block
(F.Return(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
173
F.CloseMethod(F.
Block
(F.Return(F.Typeof(ContainingType))));
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
77
F.CloseMethod(F.
Block
(F.Return(expression)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
178
F.CloseMethod(F.
Block
(F.Return(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
120
F.CloseMethod(F.
Block
(F.Return(currentHashValue)));
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
46
F.CloseMethod(F.
Block
(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),