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

Unified Diff: frog/leg/scanner/scanner_task.dart

Issue 9418045: Support for native in leg, and start moving native tests to a specific test suite. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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: frog/leg/scanner/scanner_task.dart
===================================================================
--- frog/leg/scanner/scanner_task.dart (revision 4354)
+++ frog/leg/scanner/scanner_task.dart (working copy)
@@ -12,6 +12,20 @@
if (compilationUnit.kind === ElementKind.LIBRARY) {
processScriptTags(compilationUnit);
}
+ for (Link<Element> link = compilationUnit.topLevelElements;
ahe 2012/02/19 14:38:02 This should be in the if case above. Also, I'd lik
ngeoffray 2012/02/20 09:09:37 How about elements defined in a non-library compil
+ !link.isEmpty(); link = link.tail) {
+ Element element = link.head;
+ if (element.kind == ElementKind.CLASS) {
+ ClassElement classElement = element;
+ if (element.isNative()) {
+ compiler.registerInstantiatedClass(classElement);
+ // Also parse the node to know all its methods because
+ // otherwise it will only be parsed if there is a call to
+ // one of its constructor.
+ element.parseNode(compiler);
+ }
+ }
+ }
});
}

Powered by Google App Engine
This is Rietveld 408576698