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