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

Unified Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart

Issue 2647893002: Use entities in js_emitter/model.dart (Closed)
Patch Set: Created 3 years, 11 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 | « pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
index ab2403c7bcd1539304def583c39fcfb893532755..bd3a080c37fcbdb293cb056a1e6e17326cb62509 100644
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
@@ -681,8 +681,9 @@ class FragmentEmitter {
.map((Class cls) {
var proto = js.js.statement(
'#.prototype = #;', [classReference(cls), emitPrototype(cls)]);
- compiler.dumpInfoTask.registerElementAst(cls.element, proto);
- compiler.dumpInfoTask.registerElementAst(cls.element.library, proto);
+ ClassElement element = cls.element;
+ compiler.dumpInfoTask.registerElementAst(element, proto);
+ compiler.dumpInfoTask.registerElementAst(element.library, proto);
return proto;
}).toList(growable: false);
@@ -964,7 +965,8 @@ class FragmentEmitter {
bool isIntercepted = false;
if (method is InstanceMethod) {
- isIntercepted = backend.isInterceptedMethod(method.element);
+ MethodElement element = method.element;
+ isIntercepted = backend.isInterceptedMethod(element);
}
int requiredParameterCount = 0;
js.Expression optionalParameterDefaultValues = new js.LiteralNull();
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698