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

Unified Diff: test/codegen/expect/constructors.js

Issue 1042943003: fixes private named constructors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
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
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/constructors.js
diff --git a/test/codegen/expect/constructors.js b/test/codegen/expect/constructors.js
index 853a29316f275ce9cd48d960c502ce61ee028a26..289c4633db489ecde6fa10fc02f1a6a8e592be21 100644
--- a/test/codegen/expect/constructors.js
+++ b/test/codegen/expect/constructors.js
@@ -8,20 +8,20 @@ var constructors;
}
}
class C extends core.Object {
- C$named() {
+ named() {
}
}
dart.defineNamedConstructor(C, 'named');
class C2 extends C {
- C2$named() {
- super.C$named();
+ named() {
+ super.named();
}
}
dart.defineNamedConstructor(C2, 'named');
class D extends core.Object {
D() {
}
- D$named() {
+ named() {
}
}
dart.defineNamedConstructor(D, 'named');
@@ -50,7 +50,7 @@ var constructors;
I() {
this.name = 'default';
}
- I$named(name) {
+ named(name) {
this.name = name;
}
}
@@ -65,7 +65,7 @@ var constructors;
K() {
this.s = 'a';
}
- K$withS(s) {
+ withS(s) {
this.s = s;
}
}
@@ -76,26 +76,26 @@ var constructors;
}
}
class M extends L {
- M$named(x) {
+ named(x) {
super.L(dart.notNull(x) + 42);
}
}
dart.defineNamedConstructor(M, 'named');
class N extends M {
- N$named(y) {
- super.M$named(dart.notNull(y) + 100);
+ named(y) {
+ super.named(dart.notNull(y) + 100);
}
}
dart.defineNamedConstructor(N, 'named');
class P extends N {
P(z) {
- super.N$named(dart.notNull(z) + 9000);
+ super.named(dart.notNull(z) + 9000);
}
- P$foo(x) {
+ foo(x) {
this.P(dart.notNull(x) + 42);
}
- P$bar() {
- this.P$foo(1);
+ bar() {
+ this.foo(1);
}
}
dart.defineNamedConstructor(P, 'foo');
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698