-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds comment support #554
Adds comment support #554
Conversation
Buggy copied/pasted comment in CtVisitor.java
|
599d240
to
fb893b6
Compare
looks promising! |
9987eff
to
5ad4ce4
Compare
@@ -297,6 +297,16 @@ void report(Processor<?> processor, Level level, | |||
void setGenerateJavadoc(boolean generateJavadoc); | |||
|
|||
/** | |||
* Returns the value of the option generate-comments. | |||
*/ | |||
boolean isGenerateComments(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keepInlineComments
781a534
to
462c8d4
Compare
* This code element defines a comment | ||
* | ||
*/ | ||
public interface CtComment extends CtElement, CtStatement { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only extends CtStatement
add Javadoc DocComment in List (and remove the original String field in CtElement) |
reuse same option as javadoc (and change doc of this doc option) |
Done |
* Get the type of the comment | ||
* @return the comment type | ||
*/ | ||
CommentType getType(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getCommentType (in order not to confuse with getType of CtTypedElem
8d6551f
to
16c1593
Compare
*/ | ||
public interface CtComment extends CtStatement { | ||
enum CommentType { | ||
FILE_COMMENT, // comment at the top of a file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FILE before the package line (typically the license)
doc of comment type enum, depreciation, documentation of contract for java doc |
@@ -1,5 +1,7 @@ | |||
language: java | |||
|
|||
sudo: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change to sudo: required
? https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
Done |
@@ -743,6 +744,11 @@ public void visitCtCircularTypeReference(CtCircularTypeReference reference) { | |||
} | |||
|
|||
@Override | |||
public void visitCtComment(CtComment comment) { | |||
throw new RuntimeException("Unknow Element"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Unknow -> Unknown
No description provided.