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