8 references to ConstantValueUtils
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Attributes.cs (1)
952
ConstantValueUtils
.CheckLangVersionForConstantValue(node, diagnostics);
Binder\Binder_Patterns.cs (1)
554
ConstantValueUtils
.CheckLangVersionForConstantValue(convertedExpression, diagnostics);
Binder\SwitchBinder.cs (1)
507
ConstantValueUtils
.CheckLangVersionForConstantValue(gotoCaseExpressionOpt, diagnostics);
Symbols\Source\ParameterHelpers.cs (1)
800
ConstantValueUtils
.CheckLangVersionForConstantValue(convertedExpression, diagnostics);
Symbols\Source\SourceEnumConstantSymbol.cs (1)
174
return
ConstantValueUtils
.EvaluateFieldConstant(this, (EqualsValueClauseSyntax)_equalsValueNodeRef.GetSyntax(), dependencies, earlyDecodingWellKnownAttributes, diagnostics);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
97
ConstantValue sizeConstant =
ConstantValueUtils
.GetAndValidateConstantValue(boundSizeExpression, this, intType, sizeExpression.Location, diagnostics);
Symbols\Source\SourceLocalSymbol.cs (1)
572
value =
ConstantValueUtils
.GetAndValidateConstantValue(boundInitValue, this, type, initValueNodeLocation, diagnostics);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
626
return
ConstantValueUtils
.EvaluateFieldConstant(this, (EqualsValueClauseSyntax)VariableDeclaratorNode.Initializer, dependencies, earlyDecodingWellKnownAttributes, diagnostics);