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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart

Issue 866213005: dart2js: Make emitInstanceMember take a Class and not a classElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Save file... Created 5 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/native_emitter.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/old_emitter/class_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
index d879fb50b7c7bea753eef406862c882b14587c80..f03733a4ed8a88346a5078d6d183747546815965 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
@@ -41,7 +41,7 @@ class ClassEmitter extends CodeEmitterHelper {
emitFields(cls, builder);
emitCheckedClassSetters(cls, builder);
emitClassGettersSettersForCSP(cls, builder);
- emitInstanceMembers(classElement, builder, onlyForRti: cls.onlyForRti);
+ emitInstanceMembers(cls, builder);
emitCallStubs(cls, builder);
emitRuntimeTypeInformation(cls, builder);
if (additionalProperties != null) {
@@ -230,12 +230,12 @@ class ClassEmitter extends CodeEmitterHelper {
*
* Invariant: [classElement] must be a declaration element.
*/
- void emitInstanceMembers(ClassElement classElement,
- ClassBuilder builder,
- {bool onlyForRti: false}) {
+ void emitInstanceMembers(Class cls,
+ ClassBuilder builder) {
+ ClassElement classElement = cls.element;
assert(invariant(classElement, classElement.isDeclaration));
- if (onlyForRti || classElement.isMixinApplication) return;
+ if (cls.onlyForRti || cls.isMixinApplication) return;
void visitMember(ClassElement enclosing, Element member) {
assert(invariant(classElement, member.isDeclaration));
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/native_emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698