8 references to ConstantValueUtils
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Attributes.cs (1)
857
ConstantValueUtils
.CheckLangVersionForConstantValue(node, diagnostics);
Binder\Binder_Patterns.cs (1)
554
ConstantValueUtils
.CheckLangVersionForConstantValue(convertedExpression, diagnostics);
Binder\SwitchBinder.cs (1)
511
ConstantValueUtils
.CheckLangVersionForConstantValue(gotoCaseExpressionOpt, diagnostics);
Symbols\Source\ParameterHelpers.cs (1)
827
ConstantValueUtils
.CheckLangVersionForConstantValue(convertedExpression, diagnostics);
Symbols\Source\SourceEnumConstantSymbol.cs (1)
177
return
ConstantValueUtils
.EvaluateFieldConstant(this, syntax.EqualsValue, dependencies, earlyDecodingWellKnownAttributes, diagnostics);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
97
ConstantValue sizeConstant =
ConstantValueUtils
.GetAndValidateConstantValue(boundSizeExpression, this, intType, sizeExpression, diagnostics);
Symbols\Source\SourceLocalSymbol.cs (1)
588
value =
ConstantValueUtils
.GetAndValidateConstantValue(boundInitValue, this, type, _initializer.Value, diagnostics);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
630
return
ConstantValueUtils
.EvaluateFieldConstant(this, (EqualsValueClauseSyntax)VariableDeclaratorNode.Initializer, dependencies, earlyDecodingWellKnownAttributes, diagnostics);