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