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