More improvements re Bug 355274 - [assist] make the add signatures assist smarter vis-a-vis ambiguous method bindings
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
index 8df3875..50beb8f 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
@@ -1781,6 +1781,15 @@
return result;
}
+//{ObjectTeams: create a fake method node that knows its parent but not vice versa:
+ public MethodDeclaration newFakedMethodDeclaration(TypeDeclaration declaringType) {
+ MethodDeclaration result = new MethodDeclaration(this);
+ result.setConstructor(false);
+ result.setParent(declaringType, declaringType.getBodyDeclarationsProperty());
+ return result;
+ }
+// SH}
+
/**
* Creates an unparented method invocation expression node owned by this
* AST. By default, the name of the method is unspecified (but legal)