@@ -41,7 +41,7 @@ public class JSDocParser {
4141 public JSDocComment parse (Comment comment ) {
4242 source = comment .getText ();
4343 JSDocTagParser p = new JSDocTagParser ();
44- Pair <String , List <JSDocTagParser .Tag >> r = p .new TagParser (null ).parse ( source );
44+ Pair <String , List <JSDocTagParser .Tag >> r = p .new TagParser (null ).parseComment ( );
4545 List <JSDocTag > tags = new ArrayList <>();
4646 for (JSDocTagParser .Tag tag : r .snd ()) {
4747 String title = tag .title ;
@@ -1184,7 +1184,6 @@ private JSDocTypeExpression parseParamType(String src) throws ParseError {
11841184
11851185 private class JSDocTagParser {
11861186 int index , lineNumber , lineStart , length ;
1187- String source ;
11881187 boolean recoverable = true , sloppy = false ;
11891188
11901189 private int skipStars (int index ) {
@@ -1861,13 +1860,11 @@ String scanJSDocDescription() {
18611860 return description .toString ().trim ();
18621861 }
18631862
1864- public Pair <String , List <Tag >> parse ( String comment ) {
1863+ public Pair <String , List <Tag >> parseComment ( ) {
18651864 List <Tag > tags = new ArrayList <>();
18661865 Tag tag ;
18671866 String description ;
18681867
1869- source = comment ;
1870-
18711868 length = source .length ();
18721869 index = 1 ; // Skip initial "*"
18731870 lineNumber = 0 ;
0 commit comments