18 references to constantDeclaration
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\NativeIntegerTests.cs (18)
13160constantDeclaration(opType, declarations, expr, expectedResult, diagnostics);
13161constantDeclaration(opType, declarations, $"checked({expr})", expectedResult, diagnostics);
13162constantDeclaration(opType, declarations, $"unchecked({expr})", expectedResult, diagnostics);
13175constantDeclaration(opType, declarations, expr, null,
13180constantDeclaration(opType, declarations, $"checked({expr})", null,
13185constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });
13197constantDeclaration(opType, declarations, expr, null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, expr).WithArguments("Library.F") });
13198constantDeclaration(opType, declarations, $"checked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"checked({expr})").WithArguments("Library.F") });
13199constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });
13214constantDeclaration(opType, declarations, expr, expectedResult, diagnostics);
13215constantDeclaration(opType, declarations, $"checked({expr})", expectedResult, diagnostics);
13216constantDeclaration(opType, declarations, $"unchecked({expr})", expectedResult, diagnostics);
13229constantDeclaration(opType, declarations, expr, null,
13234constantDeclaration(opType, declarations, $"checked({expr})", null,
13239constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });
13251constantDeclaration(opType, declarations, expr, null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, expr).WithArguments("Library.F") });
13252constantDeclaration(opType, declarations, $"checked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"checked({expr})").WithArguments("Library.F") });
13253constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });