18 references to constantDeclaration
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (18)
Emit\NumericIntPtrTests.cs (18)
8870constantDeclaration(opType, declarations, expr, expectedResult, diagnostics);
8871constantDeclaration(opType, declarations, $"checked({expr})", expectedResult, diagnostics);
8872constantDeclaration(opType, declarations, $"unchecked({expr})", expectedResult, diagnostics);
8885constantDeclaration(opType, declarations, expr, null,
8890constantDeclaration(opType, declarations, $"checked({expr})", null,
8895constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });
8907constantDeclaration(opType, declarations, expr, null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, expr).WithArguments("Library.F") });
8908constantDeclaration(opType, declarations, $"checked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"checked({expr})").WithArguments("Library.F") });
8909constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });
8924constantDeclaration(opType, declarations, expr, expectedResult, diagnostics);
8925constantDeclaration(opType, declarations, $"checked({expr})", expectedResult, diagnostics);
8926constantDeclaration(opType, declarations, $"unchecked({expr})", expectedResult, diagnostics);
8939constantDeclaration(opType, declarations, expr, null,
8944constantDeclaration(opType, declarations, $"checked({expr})", null,
8949constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });
8961constantDeclaration(opType, declarations, expr, null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, expr).WithArguments("Library.F") });
8962constantDeclaration(opType, declarations, $"checked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"checked({expr})").WithArguments("Library.F") });
8963constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });