36 references to IsConstant
Microsoft.CodeAnalysis.VisualBasic (36)
Analysis\FlowAnalysis\AbstractFlowPass.vb (4)
303If Not node.IsConstant Then 318If Not node.IsConstant Then 1449If node.TestExpression.IsConstant AndAlso node.TestExpression.ConstantValueOpt.IsNothing Then 1464If node.Receiver.IsConstant Then
Binding\Binder_Attributes.vb (2)
748If node.IsConstant Then 860If lastIndex.IsConstant AndAlso Not lastIndex.ConstantValueOpt.IsDefaultValue Then
Binding\Binder_Expressions.vb (3)
1791If expr.IsConstant Then 1993Return candidate.IsConstant AndAlso 2159If Not testExpression.IsConstant Then
Binding\Binder_InterpolatedString.vb (2)
49If alignmentOpt.IsConstant AndAlso alignmentOpt.ConstantValueOpt.IsIntegral Then 196Debug.Assert(interpolation.AlignmentOpt.IsConstant AndAlso interpolation.AlignmentOpt.ConstantValueOpt.IsIntegral)
Binding\Binder_Invocation.vb (1)
1089If arguments.Length = 1 AndAlso arguments(0).IsConstant AndAlso Not arguments(0).ConstantValueOpt.IsBad Then
BoundTree\BoundBinaryConditionalExpression.vb (1)
29(TestExpression.IsConstant AndAlso Not TestExpression.ConstantValueOpt.IsNothing) OrElse
BoundTree\BoundExpressionExtensions.vb (1)
425If Not expression.HasErrors AndAlso expression.IsConstant Then
BoundTree\BoundLocalDeclaration.vb (1)
44InitializerOpt.IsConstant AndAlso InitializerOpt.ConstantValueOpt.IsNothing))
CodeGen\EmitAddress.vb (1)
358If boundLocal.IsConstant Then
CodeGen\EmitOperators.vb (2)
615If _ilEmitStyle = ILEmitStyle.Release AndAlso condition.IsConstant Then 645If condition.IsConstant Then
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (3)
52Not nodeLeft.IsConstant OrElse 153If leftFieldAccess.IsConstant Then 357If nodeToCheck.IsConstant Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
878If (rightValue.IsConstant OrElse rightValue.Kind = BoundKind.Local OrElse rightValue.Kind = BoundKind.Parameter) AndAlso
Lowering\LocalRewriter\LocalRewriter_Call.vb (1)
17Debug.Assert(Not node.IsConstant, "Constant calls should become literals by now")
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (1)
84If rewrittenReceiver.IsConstant Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (4)
187If testExpr.IsConstant AndAlso (TypeSymbol.Equals(testExpr.Type, elseExpr.Type, TypeCompareKind.ConsiderEverything)) Then 335If node.Condition.IsConstant AndAlso node.WhenTrue.IsConstant AndAlso node.WhenFalse.IsConstant Then
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (2)
95If operand.IsConstant Then 558If operand.IsConstant Then
Semantics\Conversions.vb (5)
955sourceIsConstant = DirectCast(source, BoundFieldAccess).FieldSymbol.GetConstantValue(binder.ConstantFieldsInProgress) IsNot Nothing AndAlso source.IsConstant 957sourceIsConstant = DirectCast(source, BoundLocal).LocalSymbol.GetConstantValue(binder) IsNot Nothing AndAlso source.IsConstant 959sourceIsConstant = source.IsConstant 1794If source.IsConstant Then 1850If source.IsConstant Then
Semantics\OverloadResolution.vb (1)
3401If Not passedExpression.IsConstant Then ' Trying to match native compiler behavior in Semantics::IsValidAttributeConstant