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