From 2511d95a9ff41d1e811b9eadee03deecb216b05c Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Sat, 26 Apr 2014 20:10:18 +0200 Subject: [PATCH] getDescription von FormalParameter angepasst --- src/mycompiler/myclass/FormalParameter.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mycompiler/myclass/FormalParameter.java b/src/mycompiler/myclass/FormalParameter.java index 4271a327..10378694 100755 --- a/src/mycompiler/myclass/FormalParameter.java +++ b/src/mycompiler/myclass/FormalParameter.java @@ -26,6 +26,7 @@ import org.apache.log4j.Logger; + import sun.reflect.generics.reflectiveObjects.NotImplementedException; import typinferenz.JavaCodeResult; import typinferenz.ResultSet; @@ -233,6 +234,8 @@ public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementL + + @Override public void setOffset(int offset) { //Das Offset steht in declId @@ -247,7 +250,6 @@ public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementL } - @Override public void parserPostProcessing(SyntaxTreeNode parent) { super.parserPostProcessing(parent); @@ -285,6 +287,16 @@ public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementL } return ret; } + + + @Override + public String getDescription() { + String ret = ""; + if(this.getType() != null && !(this.getType() instanceof TypePlaceholder)){ + ret += this.getType().getName() + " "; + } + return ret+this.getIdentifier(); + } } // ino.end