Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: runtime/vm/scanner.h

Issue 11316031: - Move MathNatives from dart:core to dart:math. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/scanner.h
===================================================================
--- runtime/vm/scanner.h (revision 14972)
+++ runtime/vm/scanner.h (working copy)
@@ -96,6 +96,13 @@
// Return true if str is an identifier.
static bool IsIdent(const String& str);
+ // Does the token stream contain a valid literal. This is used to implement
+ // the Dart methods int.parse and double.parse.
+ static bool IsValidLiteral(const Scanner::GrowableTokenStream& tokens,
+ Token::Kind literal_kind,
+ bool* is_positive,
+ String** value);
+
private:
struct ScanContext {
ScanContext* next;

Powered by Google App Engine
This is Rietveld 408576698