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

Unified Diff: frog/leg/compiler.dart

Issue 9666006: Support for "a is Function". (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | frog/leg/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/compiler.dart
===================================================================
--- frog/leg/compiler.dart (revision 5320)
+++ frog/leg/compiler.dart (working copy)
@@ -53,6 +53,7 @@
LibraryElement jsHelperLibrary;
LibraryElement mainApp;
ClassElement objectClass;
+ ClassElement closureClass;
Element get currentElement() => _currentElement;
withCurrentElement(Element element, f()) {
@@ -84,6 +85,7 @@
static final SourceString NO_SUCH_METHOD_EXCEPTION =
const SourceString('NoSuchMethodException');
static final SourceString OBJECT = const SourceString('Object');
+ static final SourceString CLOSURE = const SourceString('Closure');
bool enabledNoSuchMethod = false;
static final String GREEN_COLOR = '\u001b[32m';
@@ -189,6 +191,7 @@
jsHelperLibrary = scanBuiltinLibrary('js_helper.dart');
coreLibrary = scanBuiltinLibrary('core.dart');
objectClass = coreLibrary.find(OBJECT);
+ closureClass = jsHelperLibrary.find(CLOSURE);
// Since coreLibrary import the libraries "coreimpl", and
// "js_helper", coreLibrary is null when they are being built. So
// we add the implicit import of coreLibrary now. This can be
« no previous file with comments | « no previous file | frog/leg/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698