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