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

Unified Diff: pkg/compiler/lib/src/js_backend/namer.dart

Issue 2646733006: Use entities in native_emitter.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
Index: pkg/compiler/lib/src/js_backend/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index c46cc9bf812ffeb25b950d87dbb3e073ba2c3fc8..5c51f8405d5f7e24bcf27449230f2880e81e2fd1 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -776,10 +776,14 @@ class Namer {
/// For example: fixedBackendPath for the static method createMap in the
/// Map class of the goog.map JavaScript library would have path
/// "goog.maps.Map".
- String fixedBackendPath(Element element) {
+ String fixedBackendMethodPath(MethodElement element) {
+ return _fixedBackendPath(element);
+ }
+
+ String _fixedBackendPath(Element element) {
if (!backend.isJsInterop(element)) return null;
if (element.isInstanceMember) return 'this';
- if (element.isConstructor) return fixedBackendPath(element.enclosingClass);
+ if (element.isConstructor) return _fixedBackendPath(element.enclosingClass);
if (element.isLibrary) return 'self';
var sb = new StringBuffer();
sb..write(_jsNameHelper(element.library));

Powered by Google App Engine
This is Rietveld 408576698