SequenceTree extends RegexTree { public List<RegexTree> getItems() { return Collections.unmodifiableList(items); } SequenceTree(RegexSource source, IndexRange range, List<RegexTree> items); List<RegexTree> getItems(); @Override void accept(RegexVisitor visitor); @Override Kind kind();  }
@Test void multipleEscapes() { SequenceTree sequence = assertType(SequenceTree.class, assertSuccessfulParse("\\123\\124")); assertListElements(sequence.getItems(), first -> { assertPlainCharacter('S', first); assertLocation(0, 4, first); }, second -> { assertPlainCharacter('T', second); assertLocation(4, 8, second); } ); }
@Test void octalEscapeLimit() { SequenceTree sequence = assertType(SequenceTree.class, assertSuccessfulParse("\\456")); assertListElements(sequence.getItems(), first -> { assertPlainCharacter('%', first); assertLocation(0, 3, first); }, second -> { assertPlainCharacter('6', second); assertLocation(3, 4, second); } ); }