MCPcopy Create free account
hub / github.com/dynjs/dynjs / allocateNextPrefixedName

Method allocateNextPrefixedName

src/main/java/org/dynjs/ir/Scope.java:163–169  ·  view source on GitHub ↗
(String prefix)

Source from the content-addressed store, hash-verified

161 }
162
163 protected int allocateNextPrefixedName(String prefix) {
164 int index = getPrefixCountSize(prefix);
165
166 nextVarIndex.put(prefix, index + 1);
167
168 return index;
169 }
170
171 public Label getNewLabel(String prefix) {
172 return new Label(prefix, allocateNextPrefixedName(prefix));

Callers 1

getNewLabelMethod · 0.95

Calls 2

getPrefixCountSizeMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected