KT-2752: refactor NameSuggestion, change rules for determining name stability and applying mangling

This commit is contained in:
Alexey Andreev
2016-09-21 16:17:49 +03:00
parent 6f7e7d8504
commit 9c7c82b151
21 changed files with 190 additions and 273 deletions
@@ -0,0 +1,19 @@
function createA() {
function ADerived() {
}
ADerived.prototype = Object.create(JS_TESTS.foo.A.prototype);
ADerived.prototype.foo_za3lpa$ = function(n) {
return 24;
};
return new ADerived();
}
function createB() {
function BDerived() {
}
BDerived.prototype = Object.create(JS_TESTS.foo.B.prototype);
BDerived.prototype.bar_za3lpa$ = function(n) {
return this.foo_za3lpa$(n);
};
return new BDerived();
}