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

Unified Diff: frog/library.dart

Issue 10264021: Fix codegen and isolate issues for frog dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « frog/gen.dart ('k') | frog/member.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/library.dart
diff --git a/frog/library.dart b/frog/library.dart
index 7007a571d8cd2b67b25f963eb3584a99d16d820e..792cc314583e70489198d272291cfa7b8f1a7174 100644
--- a/frog/library.dart
+++ b/frog/library.dart
@@ -53,7 +53,7 @@ class Library extends Element {
bool get isCoreImpl() => this == world.coreimpl;
// TODO(jmesserly): we shouldn't be special casing DOM anywhere.
- bool get isDom() => this == world.dom;
+ bool get isDomOrHtml() => this == world.dom || this == world.html;
SourceSpan get span() => new SourceSpan(baseSource, 0, 0);
@@ -372,10 +372,6 @@ class _LibraryVisitor implements TreeVisitor {
name = getSingleStringArg(node);
if (library.name == null) {
library.name = name;
- // TODO(jimhug): Hack to get native fields for io and dom - generalize.
- if (name == 'node' || name == 'dom') {
- library.topType.isNative = true;
- }
if (seenImport || seenSource || seenResource) {
world.error('#library must be first directive in file', node.span);
}
« no previous file with comments | « frog/gen.dart ('k') | frog/member.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698