* rename own binding inside methods if it collides with class ref. fix #11994 * fix name collisions in constructor * do fix name collisions in constructor * move logic in ReplaceSupers * fix tests of helper-create-class-features-plugin * remove replaceSupers in pushConstructor * use environmentVisitor * skip classLike nodes * fix super ref in computed key
27 lines
313 B
JavaScript
27 lines
313 B
JavaScript
class Foo {
|
|
method(Foo) {
|
|
return super.method(Foo);
|
|
}
|
|
}
|
|
|
|
class Bar {
|
|
method() {
|
|
return () => {
|
|
let Bar;
|
|
return super.method(Bar);
|
|
};
|
|
}
|
|
}
|
|
|
|
class Baz {
|
|
method() {
|
|
class Baz {
|
|
f() {
|
|
let Baz = 1;
|
|
return Baz;
|
|
}
|
|
}
|
|
|
|
return super.method(Baz)
|
|
}
|
|
} |