@Test public void testClosingTag() { String source = ""; JavaDocCommentNode comment = new JavaDocParser(source).comment(); assertEquals(1, comment.children.size()); assertEquals(new HtmlTagStartNode(new SourceString(source, 8, 9), 7, 10), comment.children.get(0)); }
public JavaDocCommentNode comment() { JavaDocCommentNode result = new JavaDocCommentNode(); while (!isEof()) { int start = idx; HtmlTagStartNode node = htmlTagStart(); if (node != null) { result.children.add(node); continue; } idx = start; nextCp(); } return result; }
JavaDocParser { public JavaDocCommentNode comment() { JavaDocCommentNode result = new JavaDocCommentNode(); while (!isEof()) { int start = idx; HtmlTagStartNode node = htmlTagStart(); if (node != null) { result.children.add(node); continue; } idx = start; nextCp(); } return result; } }
JavaDocParser { public JavaDocCommentNode comment() { JavaDocCommentNode result = new JavaDocCommentNode(); while (!isEof()) { int start = idx; HtmlTagStartNode node = htmlTagStart(); if (node != null) { result.children.add(node); continue; } idx = start; nextCp(); } return result; } JavaDocParser(String source);  JavaDocParser(String source, int sourceStart, int sourceEnd); }
JavaDocParser { public JavaDocCommentNode comment() { JavaDocCommentNode result = new JavaDocCommentNode(); while (!isEof()) { int start = idx; HtmlTagStartNode node = htmlTagStart(); if (node != null) { result.children.add(node); continue; } idx = start; nextCp(); } return result; } JavaDocParser(String source);  JavaDocParser(String source, int sourceStart, int sourceEnd); JavaDocCommentNode comment(); HtmlTagStartNode htmlTagStart(); List<HtmlTagAttr> attrs(); void optWhitespace(); SourceString ident(); }
JavaDocParser { public JavaDocCommentNode comment() { JavaDocCommentNode result = new JavaDocCommentNode(); while (!isEof()) { int start = idx; HtmlTagStartNode node = htmlTagStart(); if (node != null) { result.children.add(node); continue; } idx = start; nextCp(); } return result; } JavaDocParser(String source);  JavaDocParser(String source, int sourceStart, int sourceEnd); JavaDocCommentNode comment(); HtmlTagStartNode htmlTagStart(); List<HtmlTagAttr> attrs(); void optWhitespace(); SourceString ident();  }