27 references to ERR_ExpressionOverflow1
Microsoft.CodeAnalysis.VisualBasic (9)
Binding\Binder_Conversions.vb (1)
581
ReportDiagnostic(diagnostics, argument.Syntax, ERRID.
ERR_ExpressionOverflow1
, errorTargetType)
Binding\Binder_Operators.vb (2)
511
ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.
ERR_ExpressionOverflow1
, operatorResultType))
1195
ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.
ERR_ExpressionOverflow1
, resultType))
Errors\ErrorFacts.vb (1)
302
ERRID.
ERR_ExpressionOverflow1
,
Preprocessor\ExpressionEvaluator.vb (4)
691
Return ReportSemanticError(ERRID.
ERR_ExpressionOverflow1
, expr, toSpecialType.GetDisplayName())
937
Return ReportSemanticError(ERRID.
ERR_ExpressionOverflow1
, expr)
1273
Return ReportSemanticError(ERRID.
ERR_ExpressionOverflow1
, expr, resultType.GetDisplayName())
1486
Return ReportSemanticError(ERRID.
ERR_ExpressionOverflow1
, expr, resultType.GetDisplayName())
Symbols\Source\SourceEnumConstantSymbol.vb (1)
147
diagnostics.Add(ERRID.
ERR_ExpressionOverflow1
, Locations(0), Me)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (18)
Semantics\BinaryOperators.vb (1)
802
VerifyDiagnostics(compilation, Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Integer.MaxValue + 1").WithArguments("Integer"))
Semantics\Conversions.vb (14)
2787
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Int64.MaxValue").WithArguments("Integer"),
2788
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Int64.MaxValue").WithArguments("Integer"),
2789
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "System.Double.MaxValue").WithArguments("Decimal"),
2790
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "System.Double.MaxValue").WithArguments("Decimal"),
2839
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Int64.MaxValue").WithArguments("Integer"),
2840
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Int64.MaxValue").WithArguments("Integer"),
2841
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "System.Double.MaxValue").WithArguments("Decimal"),
2842
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "System.Double.MaxValue").WithArguments("Decimal"),
2892
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Int64.MaxValue").WithArguments("Integer"),
2893
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Int64.MaxValue").WithArguments("Integer"),
2894
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "System.Double.MaxValue").WithArguments("Decimal"),
2895
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "System.Double.MaxValue").WithArguments("Decimal"),
4207
VerifyDiagnostics(compilation, Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Z1").WithArguments("Byte"),
4208
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "300").WithArguments("Byte"),
Semantics\GetSemanticInfoTests.vb (1)
4418
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "Integer.MaxValue + 1").WithArguments("Integer"))
Semantics\UnaryOperators.vb (2)
583
VerifyDiagnostics(compilation, Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "+2147483648").WithArguments("Integer"),
584
Diagnostic(ERRID.
ERR_ExpressionOverflow1
, "(-(-2147483648))").WithArguments("Integer"))