Skip to content

Commit

Permalink
Reorder methods in Rest.AnnotatedTextBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed Apr 11, 2021
1 parent 1672013 commit 5832d4d
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,17 +379,6 @@ public CodeAnnotatedTextBuilder addCode(String code) {
return matchFromPosition(pattern);
}

private boolean isExplicitBlockType() {
return ((this.blockType == RestructuredtextBlockSignature.Type.FOOTNOTE)
|| (this.blockType == RestructuredtextBlockSignature.Type.DIRECTIVE)
|| (this.blockType == RestructuredtextBlockSignature.Type.COMMENT));
}

private boolean isTableBlockType() {
return ((this.blockType == RestructuredtextBlockSignature.Type.GRID_TABLE)
|| (this.blockType == RestructuredtextBlockSignature.Type.SIMPLE_TABLE));
}

private boolean matchExplicitBlock() {
@Nullable Matcher matcher;

Expand All @@ -410,6 +399,17 @@ private boolean matchExplicitBlock() {
return false;
}

private boolean isExplicitBlockType() {
return ((this.blockType == RestructuredtextBlockSignature.Type.FOOTNOTE)
|| (this.blockType == RestructuredtextBlockSignature.Type.DIRECTIVE)
|| (this.blockType == RestructuredtextBlockSignature.Type.COMMENT));
}

private boolean isTableBlockType() {
return ((this.blockType == RestructuredtextBlockSignature.Type.GRID_TABLE)
|| (this.blockType == RestructuredtextBlockSignature.Type.SIMPLE_TABLE));
}

private String generateDummy() {
return this.dummyGenerator.generate(this.language, this.dummyCounter++);
}
Expand Down

0 comments on commit 5832d4d

Please sign in to comment.