MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / get

Method get

src/main/java/wycc/util/Trie.java:102–110  ·  view source on GitHub ↗
(final int index)

Source from the content-addressed store, hash-verified

100 }
101
102 public String get(final int index) {
103 if(index == depth) {
104 return component;
105 } else if(index > depth) {
106 throw new IllegalArgumentException("index out-of-bounds");
107 } else {
108 return parent.get(index);
109 }
110 }
111
112 public Path toPath() {
113 if(parent == null) {

Callers 2

subpathMethod · 0.95
matchMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected