50 references to ValueOpt
Microsoft.CodeAnalysis.VisualBasic (50)
Analysis\FlowAnalysis\AbstractFlowPass.vb (3)
830
Debug.Assert(node.
ValueOpt
IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
831
If node.
ValueOpt
IsNot Nothing Then
832
VisitRvalue(node.
ValueOpt
)
BoundTree\BoundSequence.vb (9)
16
Debug.Assert(Me.
ValueOpt
IsNot Nothing OrElse Me.HasErrors OrElse Me.Type.SpecialType = SpecialType.System_Void)
17
Return Me.
ValueOpt
IsNot Nothing AndAlso Me.
ValueOpt
.IsLValue
27
Debug.Assert(Me.
ValueOpt
IsNot Nothing)
28
Return Update(_Locals, _SideEffects, Me.
ValueOpt
.MakeRValue(), Type)
36
If
ValueOpt
Is Nothing Then
39
Debug.Assert(Type.IsSameTypeIgnoringAll(
ValueOpt
.Type))
40
If Not
ValueOpt
.IsLValue Then
41
ValueOpt
.AssertRValue() ' Value must return a result, if it doesn't, add that expression into side-effects instead.
CodeGen\EmitAddress.vb (6)
161
Debug.Assert(sequence.
ValueOpt
IsNot Nothing)
163
Dim tempOpt = Me.EmitAddress(sequence.
ValueOpt
, addressKind)
170
Dim referencedLocal As BoundLocal = DigForLocal(sequence.
ValueOpt
)
200
Return DigForLocal((DirectCast(value, BoundSequence)).
ValueOpt
)
222
Dim boundSequenceValue = DirectCast(expression, BoundSequence).
ValueOpt
301
Dim boundSequenceValue = DirectCast(expression, BoundSequence).
ValueOpt
CodeGen\EmitExpression.vb (9)
523
Debug.Assert(sequence.
ValueOpt
IsNot Nothing OrElse sequence.Type.SpecialType = SpecialType.System_Void)
524
Me.EmitExpression(sequence.
ValueOpt
, used)
775
Return FieldLoadPrefersRef(DirectCast(receiver, BoundSequence).
ValueOpt
)
920
Dim seqValue = DirectCast(receiver, BoundSequence).
ValueOpt
953
Dim seqValue = DirectCast(receiver, BoundSequence).
ValueOpt
1254
receiver = sequence.
ValueOpt
1540
Return StackMergeType(sequence.
ValueOpt
)
1956
lhsUsesStack = EmitAssignmentPreamble(sequence.
ValueOpt
)
2053
EmitStore(sequence.
ValueOpt
)
CodeGen\EmitStatement.vb (4)
321
If seq.
ValueOpt
Is Nothing Then
324
exceptionSource = seq.
ValueOpt
831
Debug.Assert(sequence.
ValueOpt
IsNot Nothing)
832
Me.EmitCondBranch(sequence.
ValueOpt
, lazyDest, sense)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (3)
267
Return LhsUsesStackWhenAssignedTo(DirectCast(node, BoundSequence).
ValueOpt
, context)
379
Dim value As BoundExpression = Me.VisitExpression(node.
ValueOpt
, origContext)
631
Debug.Assert(Not IsByRefVariable(DirectCast(node, BoundSequence).
ValueOpt
))
Generated\BoundNodes.xml.Generated.vb (4)
4869
If locals <> Me.Locals OrElse sideEffects <> Me.SideEffects OrElse valueOpt IsNot Me.
ValueOpt
OrElse type IsNot Me.Type Then
11569
Me.Visit(node.
ValueOpt
)
12596
Dim valueOpt As BoundExpression = DirectCast(Me.Visit(node.
ValueOpt
), BoundExpression)
13893
New TreeDumperNode("valueOpt", Nothing, new TreeDumperNode() {Visit(node.
ValueOpt
, Nothing)}),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
55
Dim valueOpt As BoundExpression = rewritten.
ValueOpt
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
253
Return SpillLValue(sequence.
ValueOpt
, evaluateSideEffects, isReceiver, builder)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
703
Dim value As BoundExpression = node.
ValueOpt
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (3)
181
If sequence.
ValueOpt
Is Nothing Then
187
operand = sequence.
ValueOpt
207
operand = sequence.
ValueOpt
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
155
Return IsFloatingPointExpressionOfUnknownPrecision(sequence.
ValueOpt
)
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (3)
418
Debug.Assert(sequence.
ValueOpt
IsNot Nothing AndAlso sequence.
ValueOpt
.Kind = BoundKind.ObjectCreationExpression)
421
ReplaceObjectOrCollectionInitializer(sequence.
ValueOpt
, rewrittenInitializer),
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
485
Debug.Assert(node.
ValueOpt
IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
486
Dim newValue = DirectCast(Me.Visit(node.
ValueOpt
), BoundExpression)