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

Unified Diff: pkg/dartdoc/mirrors/dart2js_mirror.dart

Issue 10836312: Add a couple of workarounds for issues caused by current dart2js patch (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. 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
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/mirrors/dart2js_mirror.dart
diff --git a/pkg/dartdoc/mirrors/dart2js_mirror.dart b/pkg/dartdoc/mirrors/dart2js_mirror.dart
index 8e06b6946b81e5ac70374a20638fa6f1b0500c9c..9993320640ab02ecdf8cffc2fd9c06279664163e 100644
--- a/pkg/dartdoc/mirrors/dart2js_mirror.dart
+++ b/pkg/dartdoc/mirrors/dart2js_mirror.dart
@@ -244,8 +244,6 @@ class LibraryCompiler extends api.Compiler {
world.forEach((WorkItem work) {
withCurrentElement(work.element, () => work.run(this, world));
});
- //world.queueIsClosed = true;
- assert(world.checkNoEnqueuedInvokedInstanceMethods());
}
String codegen(WorkItem work, Enqueuer world) {
@@ -1308,6 +1306,11 @@ class Dart2JsMethodMirror extends Dart2JsElementMirror
var node = _function.parseNode(_diagnosticListener);
if (node !== null) {
var script = _function.getCompilationUnit().script;
+ if (_function.isPatched) {
+ // TODO(ager): This should not be necessary when patch
+ // support has been reworked.
+ script = _function.patch.getCompilationUnit().script;
+ }
var span = system.compiler.spanFromNode(node, script.uri);
return new Dart2JsLocation(script, span);
}
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698