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