private double ReadDouble(string text)
{
_kind = SyntaxKind.FloatLiteralToken;
try
{
return double.Parse(text, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, CultureInfo.InvariantCulture);
}
catch (OverflowException)
{
_diagnostics.ReportNumberTooLarge(CurrentSpan, text);
}
catch (FormatException)
{
_diagnostics.ReportInvalidReal(CurrentSpan, text);
}
return 0.0;
}