12 references to ConstantContext
Microsoft.CodeAnalysis.VisualBasic (12)
Binding\Binder_Initializers.vb (4)
563
constValue = Me.GetExpressionConstantValueIfAny(boundInitValue, BindingDiagnosticBag.Discarded,
ConstantContext
.Default)
565
constValue = Me.GetExpressionConstantValueIfAny(boundInitValue, initValueDiagnostics,
ConstantContext
.Default)
622
constValue = binder.GetExpressionConstantValueIfAny(valueExpression, diagnostics,
ConstantContext
.Default)
662
constValue = GetExpressionConstantValueIfAny(boundInitValue, diagnostics,
ConstantContext
.ParameterDefaultValue)
Binding\Binder_Utils.vb (8)
1299
Public Function GetExpressionConstantValueIfAny(boundExpression As BoundExpression, diagnostics As BindingDiagnosticBag, context As
ConstantContext
) As ConstantValue
1391
Private Function CheckConversionForConstantExpression(conv As BoundExpression, operand As BoundExpression, diagnostics As BindingDiagnosticBag, context As
ConstantContext
) As ConstantValue
1401
If context =
ConstantContext
.Default Then
1416
Debug.Assert(context =
ConstantContext
.ParameterDefaultValue)
1442
If context =
ConstantContext
.ParameterDefaultValue AndAlso
1460
If context =
ConstantContext
.ParameterDefaultValue AndAlso conversionType.IsNullableType Then
1497
(conversionType.IsReferenceType OrElse context =
ConstantContext
.ParameterDefaultValue) Then
1502
If context =
ConstantContext
.ParameterDefaultValue Then