22 references to ToStatement
Microsoft.CodeAnalysis.VisualBasic (22)
Analysis\InitializerRewriter.vb (1)
157MakeCompilerGenerated().ToStatement().MakeCompilerGenerated())
Lowering\LocalRewriter\LocalRewriter.vb (2)
851rewritten = boundNode.ToStatement() 872rewritten = nodeFactory.Call(Nothing, endApp, ImmutableArray(Of BoundExpression).Empty).ToStatement()
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (2)
131rewrittenStatement = VisitExpressionNode(initialValueToRewrite).ToStatement 139suppressObjectClone:=False)).ToStatement
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
721ErrorTypeSymbol.UnknownResultType, hasErrors:=True).ToStatement()
Lowering\LocalRewriter\LocalRewriter_Label.vb (1)
32suppressObjectClone:=True).ToStatement()
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (3)
230Dim conditionalFlagInit = RewriteIfStatement(syntax, flagIsNothing, interlockedCompareExchangeFlagWithNewInstance.ToStatement(), Nothing, instrumentationTargetOpt:=Nothing) 274Dim flagStateAssignTwo = New BoundAssignmentOperator(syntax, flagState, two, suppressObjectClone:=True).ToStatement() 321suppressObjectClone:=True).ToStatement()
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
242type:=selectExprType).ToStatement().MakeCompilerGenerated())
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (4)
103Dim boundHelperCallStatement = boundHelperCall.ToStatement 219Dim boundMonitorEnterCallStatement = boundMonitorEnterCall.ToStatement 225Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, parameters, ErrorTypeSymbol.UnknownResultType, hasErrors:=True).ToStatement() 252Dim boundMonitorExitCallStatement = boundMonitorExitCall.ToStatement
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (6)
216nodeFactory.Local(_unstructuredExceptionHandling.CurrentStatementTemporary, isLValue:=False))).ToStatement()) 301New BoundCall(node.Syntax, clearProjectError, Nothing, Nothing, ImmutableArray(Of BoundExpression).Empty, Nothing, clearProjectError.ReturnType).ToStatement(), 349nodeFactory.Literal(0)).ToStatement()) 371nodeFactory.Literal(newErrorHandlerIndex)).ToStatement()) 423nodeFactory.Literal(0)).ToStatement()) 464nodeFactory.Literal(_unstructuredExceptionHandling.ResumeTargets.Count)).ToStatement())
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
77callerInfoOpt:=Nothing).ToStatement()