mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
revert overload method names erasing when excluded source element
This commit is contained in:
parent
3299d5ae2d
commit
90973c5659
@ -4210,8 +4210,7 @@ public class Java2TypeScriptTranslator extends AbstractTreePrinter {
|
|||||||
if (methSym != null) {
|
if (methSym != null) {
|
||||||
if (context.isInvalidOverload(methSym) && ((!Util.hasTypeParameters(methSym)
|
if (context.isInvalidOverload(methSym) && ((!Util.hasTypeParameters(methSym)
|
||||||
&& !methSym.isDefault() && getParent(JCMethodDecl.class) != null
|
&& !methSym.isDefault() && getParent(JCMethodDecl.class) != null
|
||||||
&& !getParent(JCMethodDecl.class).sym.isDefault()) || !context.options.isGenerateOverloadStubs())
|
&& !getParent(JCMethodDecl.class).sym.isDefault()) || !context.options.isGenerateOverloadStubs())) {
|
||||||
&& !context.isExcludedSourceElement(methSym)) {
|
|
||||||
if (context.options.isGenerateOverloadStubs() && context.isInterface((TypeSymbol) methSym.getEnclosingElement())) {
|
if (context.options.isGenerateOverloadStubs() && context.isInterface((TypeSymbol) methSym.getEnclosingElement())) {
|
||||||
removeLastChar('.');
|
removeLastChar('.');
|
||||||
print("['" + getOverloadMethodName(methSym) + "']");
|
print("['" + getOverloadMethodName(methSym) + "']");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user