Base:
property
Operand
Microsoft.CodeAnalysis.VisualBasic.Microsoft.CodeAnalysis.VisualBasic.BoundConversionOrCast.Operand
107 references to Operand
Microsoft.CodeAnalysis.VisualBasic (107)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1383
VisitRvalue(node.
Operand
)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1654
value = DirectCast(value, BoundConversion).
Operand
Binding\Binder_Attributes.vb (4)
794
Not _binder.IsValidTypeForAttributeArgument(conv.
Operand
.Type) Then
798
ReportDiagnostic(diagBag, conv.
Operand
.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.
Operand
.Type, _binder.Compilation.GetSpecialType(SpecialType.System_Object)), conv.Type)
812
node = conv.
Operand
Binding\Binder_Delegates.vb (3)
141
boundFirstArgument = boundConversion.Update(boundConversion.
Operand
,
1244
receiver.
Operand
.Kind = BoundKind.Lambda AndAlso
1245
DirectCast(receiver.
Operand
, BoundLambda).LambdaSymbol.IsAsync AndAlso
Binding\Binder_Operators.vb (3)
476
left = conversion.Update(conversion.
Operand
, conversion.ConversionKind, conversion.Checked, explicitCastInCode:=False,
504
right = conversion.Update(conversion.
Operand
, conversion.ConversionKind, conversion.Checked, explicitCastInCode:=False,
943
cast = conv.
Operand
Binding\Binder_Statements.vb (1)
4008
Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).
Operand
.IsNothingLiteral)
Binding\Binder_Utils.vb (1)
1331
Dim result = CheckConversionForConstantExpression(conv, conv.
Operand
, diagnostics, context)
Binding\MemberSemanticModel.vb (4)
797
originalCollection = conversion.
Operand
2181
If Not conversion.ExplicitCastInCode AndAlso conversion.
Operand
.WasCompilerGenerated Then
2182
Select Case conversion.
Operand
.Kind
2365
Return Visit(node.
Operand
)
BoundTree\BoundAssignmentOperator.vb (2)
105
rightNode = DirectCast(rightNode, BoundConversion).
Operand
130
leftNode = DirectCast(leftNode, BoundConversion).
Operand
BoundTree\BoundConversion.vb (9)
41
Operand
.AssertRValue()
46
Debug.Assert(((ConversionKind And VisualBasic.ConversionKind.UserDefined) <> 0) = (
Operand
.Kind = BoundKind.UserDefinedConversion))
60
Debug.Assert(
Operand
.Kind = BoundKind.ConvertedTupleLiteral OrElse
Operand
.HasErrors)
66
If
Operand
.Kind = BoundKind.UserDefinedConversion Then
67
Dim udc = DirectCast(
Operand
, BoundUserDefinedConversion)
84
Operand
.Kind = BoundKind.UserDefinedConversion Then
85
Dim expr As BoundExpression = DirectCast(
Operand
, BoundUserDefinedConversion).UnderlyingExpression
88
expr = DirectCast(expr, BoundConversion).
Operand
BoundTree\BoundExpressionExtensions.vb (2)
41
constValue = DirectCast(node, BoundConversion).
Operand
.ConstantValueOpt
515
node = conversion.
Operand
BoundTree\BoundUserDefinedConversion.vb (3)
16
Return DirectCast([Call].Arguments(0), BoundConversion).
Operand
46
Return DirectCast(DirectCast(UnderlyingExpression, BoundConversion).
Operand
, BoundCall)
69
operand = inConversion.
Operand
CodeGen\EmitConversion.vb (13)
57
Debug.Assert(underlyingFrom = conversion.
Operand
.Type.GetEnumUnderlyingTypeOrSelf().PrimitiveTypeCode)
62
EmitExpression(conversion.
Operand
, True)
115
Select Case conversion.
Operand
.Kind
118
Select Case (DirectCast(conversion.
Operand
, BoundBinaryOperator).OperatorKind And BinaryOperatorKind.OpMask)
130
Select Case (DirectCast(conversion.
Operand
, BoundUnaryOperator).OperatorKind And UnaryOperatorKind.IntrinsicOpMask)
152
EmitExpression(conversion.
Operand
, False)
158
If conversion.
Operand
.IsNothingLiteral Then
167
Dim typeFrom = conversion.
Operand
.Type
177
EmitExpression(conversion.
Operand
, used:=True)
180
EmitBox(typeFrom, conversion.
Operand
.Syntax)
185
EmitBox(typeFrom, conversion.
Operand
.Syntax)
192
EmitExpression(conversion.
Operand
, True)
196
EmitExpression(conversion.
Operand
, True)
Generated\BoundNodes.xml.Generated.vb (4)
2153
If operand IsNot Me.
Operand
OrElse conversionKind <> Me.ConversionKind OrElse checked <> Me.Checked OrElse explicitCastInCode <> Me.ExplicitCastInCode OrElse constantValueOpt IsNot Me.ConstantValueOpt OrElse extendedInfoOpt IsNot Me.ExtendedInfoOpt OrElse type IsNot Me.Type Then
11291
Me.Visit(node.
Operand
)
12279
Dim operand As BoundExpression = DirectCast(Me.Visit(node.
Operand
), BoundExpression)
13449
New TreeDumperNode("operand", Nothing, new TreeDumperNode() {Visit(node.
Operand
, Nothing)}),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
443
Dim operand As BoundExpression = rewritten.
Operand
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
329
VisitLambdaConversion(node.
Operand
, DirectCast(node.ExtendedInfoOpt, BoundRelaxationLambda)?.Lambda)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
549
Dim operand As BoundExpression = conversion.
Operand
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (2)
110
Dim convKind As ConversionKind = Conversions.ClassifyPredefinedConversion(parameterType, conversion.
Operand
.Type, useSiteInfo)
186
Dim userDefinedConv = DirectCast(conversion.
Operand
, BoundUserDefinedConversion)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (3)
22
Return Me.VisitInternal(node.
Operand
)
26
Return ConvertExpression(node.
Operand
, node.ConversionKind, node.
Operand
.Type, node.Type, node.Checked, node.ExplicitCastInCode, ConversionSemantics.[Default])
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
363
Dim lambda As BoundLambda = TryCast(conversion.
Operand
, BoundLambda)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
960
Dim lambda As BoundLambda = TryCast(conversion.
Operand
, BoundLambda)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
424
nodeToCheck = conversion.
Operand
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
189
Return cast.Update(ReplaceMyGroupCollectionPropertyGetWithUnderlyingField(cast.
Operand
),
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
33
Debug.Assert(boundConversion.
Operand
Is If(node.TestExpressionPlaceholder, node.TestExpression))
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (34)
15
Dim result = DirectCast(Visit(node.
Operand
), BoundExpression)
34
If node.
Operand
.Kind = BoundKind.UserDefinedConversion Then
36
Return node.Update(DirectCast(Visit(node.
Operand
), BoundExpression),
46
Return RewriteNullableUserDefinedConversion(DirectCast(node.
Operand
, BoundUserDefinedConversion))
48
Return Visit(DirectCast(node.
Operand
, BoundUserDefinedConversion).UnderlyingExpression)
54
node.
Operand
.Type IsNot Nothing AndAlso node.
Operand
.Type.IsNullableType) AndAlso
70
If Not node.HasErrors AndAlso node.Type.IsBooleanType() AndAlso node.
Operand
.Type.IsObjectType() Then
71
Dim operand As BoundNode = node.
Operand
169
Dim rewrittenOperand = VisitExpression(node.
Operand
)
235
NoParameterRelaxation(node.
Operand
, relaxationLambda.LambdaSymbol) Then
239
node.Update(node.
Operand
,
315
Debug.Assert(node.
Operand
.Type.IsDelegateType() AndAlso
316
DirectCast(node.
Operand
.Type, NamedTypeSymbol).IsAnonymousType AndAlso
321
If (node.
Operand
.IsDefaultValueConstant) Then
336
If (Not Me._inExpressionLambda AndAlso CouldPossiblyBeNothing(F, node.
Operand
)) Then
337
Dim savedOriginalValue = F.SynthesizedLocal(node.
Operand
.Type)
341
DirectCast(node.
Operand
.Type, NamedTypeSymbol).DelegateInvokeMethod,
348
F.AssignmentExpression(F.Local(savedOriginalValue, True), VisitExpression(node.
Operand
)),
351
Dim convertedValue = New BoundDelegateCreationExpression(node.Syntax, node.
Operand
,
352
DirectCast(node.
Operand
.Type, NamedTypeSymbol).DelegateInvokeMethod,
369
Return CouldPossiblyBeNothing(F, t.
Operand
)
385
Dim rewrittenOperand = DirectCast(Me.Visit(node.
Operand
), BoundExpression)
717
Dim operand = rewrittenConversion.
Operand
797
Dim operand = node.
Operand
821
Debug.Assert(node.
Operand
.IsNothingLiteral() OrElse
823
Conversions.ClassifyDirectCastConversion(node.
Operand
.Type, node.Type, CompoundUseSiteInfo(Of AssemblySymbol).Discarded))
829
Return New BoundDirectCast(node.Syntax, node.
Operand
, node.ConversionKind, node.Type, Nothing)
871
Dim operand = node.
Operand
960
Dim operand = node.
Operand
1029
Dim operand = node.
Operand
1099
Dim operand = node.
Operand
1166
Dim operand = node.
Operand
1195
Dim operand = node.
Operand
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (3)
33
Dim operand = conversion.
Operand
203
If Not conversion.ExplicitCastInCode AndAlso conversion.
Operand
.Type.IsArrayType Then
204
collectionExpression = conversion.
Operand
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
60
Dim node = DirectCast(conversion.
Operand
, BoundInterpolatedStringExpression)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (2)
168
Return conversion.
Operand
231
conversion.Type.GetNullableUnderlyingType().Equals(conversion.
Operand
.Type, TypeCompareKind.AllIgnoreOptionsForVB)
Semantics\Conversions.vb (3)
4251
Dim operandType As TypeSymbol = conversion.
Operand
.Type
4254
Debug.Assert(conversion.
Operand
.IsNothingLiteral() OrElse conversion.
Operand
.Kind = BoundKind.Lambda)