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

Side by Side Diff: frog/world.dart

Issue 8478025: Restore r1383: Fix method resolution to warn about things that don't exist on the declared type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** The one true [World]. */ 5 /** The one true [World]. */
6 World world; 6 World world;
7 7
8 /** 8 /**
9 * Should be called exactly once to setup singleton world. 9 * Should be called exactly once to setup singleton world.
10 * Can use world.reset() to reinitialize. 10 * Can use world.reset() to reinitialize.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 /** Internal map to track name conflicts in the generated javascript. */ 77 /** Internal map to track name conflicts in the generated javascript. */
78 Map<String, Named> _topNames; 78 Map<String, Named> _topNames;
79 79
80 Map<String, MemberSet> _members; 80 Map<String, MemberSet> _members;
81 81
82 int errors = 0, warnings = 0; 82 int errors = 0, warnings = 0;
83 int dartBytesRead = 0, jsBytesWritten = 0; 83 int dartBytesRead = 0, jsBytesWritten = 0;
84 bool seenFatal = false; 84 bool seenFatal = false;
85 85
86 // Special types to Dart. 86 // Special types to Dart.
87 Type varType; 87 DefinedType varType;
jimhug 2011/11/10 15:47:21 FYI: This is both cool and a little bit weird to s
88 // TODO(jimhug): Is this ever not === varType? 88 // TODO(jimhug): Is this ever not === varType?
89 Type dynamicType; 89 DefinedType dynamicType;
90 90
91 Type voidType; 91 DefinedType voidType;
92 92
93 Type objectType; 93 DefinedType objectType;
94 Type numType; 94 DefinedType numType;
95 Type intType; 95 DefinedType intType;
96 Type doubleType; 96 DefinedType doubleType;
97 Type boolType; 97 DefinedType boolType;
98 Type stringType; 98 DefinedType stringType;
99 Type listType; 99 DefinedType listType;
100 Type mapType; 100 DefinedType mapType;
101 Type functionType; 101 DefinedType functionType;
102 102
103 World(this.files) 103 World(this.files)
104 : libraries = {}, _todo = [], _members = {}, _topNames = {}, 104 : libraries = {}, _todo = [], _members = {}, _topNames = {},
105 // TODO(jmesserly): these two types don't actually back our Date and 105 // TODO(jmesserly): these two types don't actually back our Date and
106 // RegExp yet, so we need to add them manually. 106 // RegExp yet, so we need to add them manually.
107 reader = new LibraryReader() { 107 reader = new LibraryReader() {
108 } 108 }
109 109
110 void reset() { 110 void reset() {
111 // TODO(jimhug): Use a smaller hammer in the future. 111 // TODO(jimhug): Use a smaller hammer in the future.
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 withTiming(String name, f()) { 433 withTiming(String name, f()) {
434 final sw = new StopWatch(); 434 final sw = new StopWatch();
435 sw.start(); 435 sw.start();
436 var result = f(); 436 var result = f();
437 sw.stop(); 437 sw.stop();
438 info('$name in ${sw.elapsedInMs()}msec'); 438 info('$name in ${sw.elapsedInMs()}msec');
439 return result; 439 return result;
440 } 440 }
441 } 441 }
OLDNEW
« frog/value.dart ('K') | « frog/value.dart ('k') | tests/co19/co19-frog.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698