diff --git a/src/main/java/spoon/support/reflect/declaration/CtElementImpl.java b/src/main/java/spoon/support/reflect/declaration/CtElementImpl.java index f9cea55e532..b039fc83821 100644 --- a/src/main/java/spoon/support/reflect/declaration/CtElementImpl.java +++ b/src/main/java/spoon/support/reflect/declaration/CtElementImpl.java @@ -602,6 +602,9 @@ public ElementSourceFragment getOriginalSourceFragment() { } } + /** + * Replace the statement with a CtComment having the statement as text + */ public void comment() { if (this instanceof CtStatement && getParent() instanceof CtBlock) { final String stmt = toString();