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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 994323002: Support static getters and setters in the new dart2js code generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
Index: pkg/compiler/lib/src/js_backend/codegen/glue.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
index 712e90a69c22bdf99d18b449b5aab110efc109d5..5dfd8de7541ce7bf45fe4a3ce41d5cb83353bfdc 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -43,10 +43,14 @@ class Glue {
return _backend.constants.getConstantForVariable(variable);
}
- js.Expression staticFunctionAccess(Element element) {
+ js.Expression staticFunctionAccess(FunctionElement element) {
return _backend.emitter.staticFunctionAccess(element);
}
+ js.Expression staticFieldAccess(FieldElement element) {
+ return _backend.emitter.staticFieldAccess(element);
+ }
+
String safeVariableName(String name) {
return _namer.safeVariableName(name);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698