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

Unified Diff: runtime/vm/parser.cc

Issue 10832401: Gentle start with removing explicit interfaces (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months 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/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 11241)
+++ runtime/vm/parser.cc (working copy)
@@ -4511,7 +4511,7 @@
// parameterized type to be patched after the actual type is known.
// We temporarily use the class of the Function interface.
const Class& unknown_signature_class = Class::Handle(
- Type::Handle(Type::FunctionInterface()).type_class());
+ Type::Handle(Type::Function()).type_class());
function_type = Type::New(
unknown_signature_class, TypeArguments::Handle(), ident_pos);
function_type.set_is_finalized_instantiated(); // No finalization needed.
@@ -4678,11 +4678,11 @@
bool Parser::IsSimpleLiteral(const AbstractType& type, Instance* value) {
bool no_check = type.IsDynamicType();
if ((CurrentToken() == Token::kINTEGER) &&
- (no_check || type.IsIntInterface() || type.IsNumberInterface())) {
+ (no_check || type.IsIntInterface() || type.IsNumberType())) {
*value = CurrentIntegerLiteral();
return true;
} else if ((CurrentToken() == Token::kDOUBLE) &&
- (no_check || type.IsDoubleInterface() || type.IsNumberInterface())) {
+ (no_check || type.IsDoubleInterface() || type.IsNumberType())) {
*value = CurrentDoubleLiteral();
return true;
} else if ((CurrentToken() == Token::kSTRING) &&

Powered by Google App Engine
This is Rietveld 408576698