32 references to Block
Microsoft.CodeAnalysis.CSharp (32)
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
76
factory.CloseMethod(factory.
Block
(body.ToImmutableAndFree()));
FlowAnalysis\FlowAnalysisPass.cs (1)
160
var initializations = F.HiddenSequencePoint(F.
Block
(builder.ToImmutableAndFree()));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
276
return _F.
Block
(bodyStatements.ToImmutableAndFree());
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (3)
135
return F.
Block
(builder.ToImmutableAndFree());
199
return F.
Block
(builder.ToImmutableAndFree());
312
return F.
Block
(blockBuilder.ToImmutableAndFree());
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
288
return F.
Block
(builder.ToImmutableAndFree());
534
return F.
Block
(blockBuilder.ToImmutableAndFree());
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
186
F.CloseMethod(F.
Block
(bodyBuilder.ToImmutableAndFree()));
274
return F.
Block
(bodyBuilder.ToImmutableAndFree());
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
198
F.CloseMethod(F.
Block
(ImmutableArray.Create(F.BaseInitialization(), F.Return())));
274
return F.
Block
(bodyBuilder.ToImmutableAndFree());
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
466
return F.
Block
(bodyStatements.ToImmutableAndFree());
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
297
F.CloseMethod(F.
Block
(bodyBuilder.ToImmutableAndFree()));
323
return F.
Block
(bodyBuilder.ToImmutableAndFree());
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
66
_factory.
Block
(statementBuilder.ToImmutableAndFree()),
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (1)
118
resultBuilder.Add(_factory.
Block
(loweredDag));
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
124
result.Add(_factory.
Block
(loweredDag));
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
84
result.Add(_factory.
Block
(loweredDag));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
384
F.
Block
(variableCleanup.SelectAsArray((e, f) => (BoundStatement)f.ExpressionStatement(e), F)));
455
var result = F.
Block
(variableCleanup.SelectAsArray((e, f) => (BoundStatement)f.ExpressionStatement(e), F));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
342
return F.
Block
(builtBody);
457
thenClause: F.
Block
(thenBuilder.ToImmutableAndFree()),
Lowering\SyntheticBoundNodeFactory.cs (4)
453
return
Block
(ImmutableArray<BoundStatement>.Empty);
463
return
Block
(ImmutableArray.Create(statements));
990
return
Block
(statements.ToImmutableAndFree());
1112
return
Block
(statements.ToImmutableAndFree());
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
95
F.CloseMethod(F.
Block
(statementsBuilder.ToImmutableAndFree()));
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
72
F.CloseMethod(F.
Block
(ImmutableArray.Create<BoundStatement>(F.Return(expression))));
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
228
F.CloseMethod(F.
Block
(block.ToImmutableAndFree()));
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
55
var block = factory.
Block
(
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
310
var block = factory.
Block
(statements.ToImmutableAndFree());