64 references to Block
Microsoft.CodeAnalysis.CSharp (64)
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)
90
return (asyncDispatch != null) ? F.
Block
(asyncDispatch, iteratorDispatch) : iteratorDispatch;
174
thenClause: F.
Block
(
218
return F.
Block
(
255
return F.
Block
(
324
return F.
Block
(
382
tryBlock: F.
Block
(node.TryBlock, F.Label(finallyEntry)),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
240
body: F.
Block
(
374
var awaitIfIncomplete = F.
Block
(
593
elseClauseOpt: F.
Block
(
661
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 (8)
147
var faultBlock = F.
Block
(F.ExpressionStatement(F.Call(F.This(), disposeMethod)));
164
var disposeBody = F.
Block
(
192
return F.
Block
(
270
body = F.
Block
(
277
var tryBlock = body != null ? F.
Block
(body) : F.Block();
281
F.
Block
(F.ExpressionStatement(F.Call(F.This(), frame.handler))));
312
return this.F.
Block
(
340
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)
265
result = F.
Block
(result, missingStateDispatch);
382
translatedStatement = F.
Block
(
405
return F.
Block
(new BoundStateMachineScope(F.Syntax, hoistedLocals, statement));
882
BoundBlock tryBlock = F.
Block
((BoundStatement)this.Visit(node.TryBlock));
888
tryBlock = F.
Block
(
901
BoundBlock finallyBlockOpt = node.FinallyBlockOpt == null ? null : F.
Block
(
913
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(),