63 references to Block
Microsoft.CodeAnalysis.CSharp (63)
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)
194
_F.
Block
(
202
BoundBlock syntheticFinallyBlock = _F.
Block
(
345
unpendReturn = _F.
Block
(
390
return _F.
Block
(
493
_F.
Block
(
587
body: _F.
Block
(
633
body: _F.
Block
(
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (6)
89
return (asyncDispatch != null) ? F.
Block
(asyncDispatch, iteratorDispatch) : iteratorDispatch;
163
thenClause: F.
Block
(
207
return F.
Block
(
244
return F.
Block
(
313
return F.
Block
(
366
tryBlock: F.
Block
(node.TryBlock, F.Label(finallyEntry)),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
253
body: F.
Block
(
371
var awaitIfIncomplete = F.
Block
(
590
elseClauseOpt: F.
Block
(
658
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)
558
var body = F.
Block
(
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (7)
146
var faultBlock = F.
Block
(F.ExpressionStatement(F.Call(F.This(), disposeMethod)));
186
return F.
Block
(
264
body = F.
Block
(
271
var tryBlock = body != null ? F.
Block
(body) : F.Block();
275
F.
Block
(F.ExpressionStatement(F.Call(F.This(), frame.handler))));
306
return this.F.
Block
(
334
return F.
Block
(
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (3)
68
_factory.
Block
(cleanup)));
287
return factory.
Block
(pinnedTempInit, localInit);
489
return factory.
Block
(stringTempInit, localInit, conditionalAdd);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (7)
260
result = F.
Block
(result, missingStateDispatch);
377
translatedStatement = F.
Block
(
400
return F.
Block
(new BoundStateMachineScope(F.Syntax, hoistedLocals, statement));
864
BoundBlock tryBlock = F.
Block
((BoundStatement)this.Visit(node.TryBlock));
870
tryBlock = F.
Block
(
883
BoundBlock finallyBlockOpt = node.FinallyBlockOpt == null ? null : F.
Block
(
895
result = F.
Block
(
Lowering\SyntheticBoundNodeFactory.cs (3)
533
statements.Add(Try(
Block
(statement), ImmutableArray<BoundCatchBlock>.Empty,
Block
(instrumentation.Epilogue)));
574
body =
Block
(body);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
33
var block = f.
Block
(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
33
var block = f.
Block
(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
102
return f.
Block
(f.Assignment(moveNextCalledFieldReference, f.Literal(false)), f.Return());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
644
return f.
Block
(statement, f.Return());
660
return f.
Block
(
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
70
F.CloseMethod(F.
Block
(F.Return(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
179
F.CloseMethod(F.
Block
(F.Return(F.Typeof(ContainingType, ReturnType))));
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
77
F.CloseMethod(F.
Block
(F.Return(expression)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
172
F.CloseMethod(F.
Block
(F.Return(retExpr)));
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
118
F.CloseMethod(F.
Block
(F.Return(currentHashValue)));
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
41
F.CloseMethod(F.
Block
(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),