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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart

Issue 11419250: Add @JSName annotation for native fields and methods - second try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
index 4a481ff818aecc76f96a8ab0a0de9ddd9ca85b39..986b586d6fa10e662bcc817755af1a5dd6056d0b 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
@@ -138,35 +138,10 @@ $classesCollector.$mangledName = {'': function $mangledName(self, target) {
if (emitEndingComma) buffer.add(', ');
}
- void emitClassGettersSetters(ClassElement classElement,
- CodeBuffer buffer,
- bool emitLeadingComma) {
- emitComma() {
- if (emitLeadingComma) {
- buffer.add(",\n ");
- } else {
- emitLeadingComma = true;
- }
- }
-
- visitClassFields(classElement, (Element member,
- String name,
- bool needsGetter,
- bool needsSetter,
- bool needsCheckedSetter) {
- if (needsGetter) {
- emitComma();
- generateGetter(member, name, buffer);
- }
- if (needsSetter) {
- emitComma();
- generateSetter(member, name, buffer);
- }
- if (needsCheckedSetter) {
- assert(!needsSetter);
- emitComma();
- generateCheckedSetter(member, name, buffer);
- }
- });
+ bool getterAndSetterCanBeImplementedByFieldSpec(Element member,
+ String name,
+ bool needsGetter,
+ bool needsSetter) {
+ return false;
}
}

Powered by Google App Engine
This is Rietveld 408576698