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

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
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698