18 references to constantDeclaration
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (18)
Emit\NumericIntPtrTests.cs (18)
8910constantDeclaration(opType, declarations, expr, expectedResult, diagnostics); 8911constantDeclaration(opType, declarations, $"checked({expr})", expectedResult, diagnostics); 8912constantDeclaration(opType, declarations, $"unchecked({expr})", expectedResult, diagnostics); 8925constantDeclaration(opType, declarations, expr, null, 8930constantDeclaration(opType, declarations, $"checked({expr})", null, 8935constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") }); 8947constantDeclaration(opType, declarations, expr, null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, expr).WithArguments("Library.F") }); 8948constantDeclaration(opType, declarations, $"checked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"checked({expr})").WithArguments("Library.F") }); 8949constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") }); 8964constantDeclaration(opType, declarations, expr, expectedResult, diagnostics); 8965constantDeclaration(opType, declarations, $"checked({expr})", expectedResult, diagnostics); 8966constantDeclaration(opType, declarations, $"unchecked({expr})", expectedResult, diagnostics); 8979constantDeclaration(opType, declarations, expr, null, 8984constantDeclaration(opType, declarations, $"checked({expr})", null, 8989constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") }); 9001constantDeclaration(opType, declarations, expr, null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, expr).WithArguments("Library.F") }); 9002constantDeclaration(opType, declarations, $"checked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"checked({expr})").WithArguments("Library.F") }); 9003constantDeclaration(opType, declarations, $"unchecked({expr})", null, new[] { Diagnostic(ErrorCode.ERR_NotConstantExpression, $"unchecked({expr})").WithArguments("Library.F") });