(int lineno, int column, String comment)
| 397 | } |
| 398 | |
| 399 | private void recordComment(int lineno, int column, String comment) { |
| 400 | if (scannedComments == null) { |
| 401 | scannedComments = new ArrayList<>(); |
| 402 | } |
| 403 | Comment commentNode = |
| 404 | new Comment(ts.tokenBeg, ts.getTokenLength(), ts.commentType, comment); |
| 405 | if (ts.commentType == Token.CommentType.JSDOC |
| 406 | && compilerEnv.isRecordingLocalJsDocComments()) { |
| 407 | currentJsDocComment = |
| 408 | new Comment(ts.tokenBeg, ts.getTokenLength(), ts.commentType, comment); |
| 409 | currentJsDocComment.setLineColumnNumber(lineno, column); |
| 410 | } |
| 411 | commentNode.setLineColumnNumber(lineno, column); |
| 412 | scannedComments.add(commentNode); |
| 413 | } |
| 414 | |
| 415 | private Comment getAndResetJsDoc() { |
| 416 | Comment saved = currentJsDocComment; |
no test coverage detected