Skip to content

Commit

Permalink
Add API doc for CtElementImpl#comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshyAAAgrawal committed Jul 17, 2020
1 parent de0994f commit 8a2bbdf
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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();
Expand Down

0 comments on commit 8a2bbdf

Please sign in to comment.