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

Unified Diff: sdk/lib/_internal/lib/js_mirrors.dart

Issue 416873002: Don't include class-static functions in library mirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos. Created 6 years, 5 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: sdk/lib/_internal/lib/js_mirrors.dart
diff --git a/sdk/lib/_internal/lib/js_mirrors.dart b/sdk/lib/_internal/lib/js_mirrors.dart
index 912af14a257dfcc692e14c9b283ab7f93312b26d..b1a092077d36da1a5b73d004452714f194551903 100644
--- a/sdk/lib/_internal/lib/js_mirrors.dart
+++ b/sdk/lib/_internal/lib/js_mirrors.dart
@@ -426,12 +426,8 @@ class JsLibraryMirror extends JsDeclarationMirror with JsObjectMirror
// TODO(floitsch): Remove the getterStub hack.
continue;
}
- bool isConstructor = unmangledName.startsWith('new ');
- bool isStatic = !isConstructor; // Top-level functions are static, but
- // constructors are not.
- if (isConstructor) {
- unmangledName = unmangledName.substring(4).replaceAll(r'$', '.');
- }
+ bool isStatic = true;
+ bool isConstructor = false;
JsMethodMirror mirror =
new JsMethodMirror.fromUnmangledName(
unmangledName, jsFunction, isStatic, isConstructor);

Powered by Google App Engine
This is Rietveld 408576698