use of org.mozilla.javascript.ast.Comment in project HL4A by HL4A.
the class Parser method recordComment.
private void recordComment(int lineno, String comment) {
if (scannedComments == null) {
scannedComments = new ArrayList<Comment>();
}
Comment commentNode = new Comment(ts.tokenBeg, ts.getTokenLength(), ts.commentType, comment);
if (ts.commentType == Token.CommentType.JSDOC && compilerEnv.isRecordingLocalJsDocComments()) {
currentJsDocComment = commentNode;
}
commentNode.setLineno(lineno);
scannedComments.add(commentNode);
}
Aggregations