MCPcopy Create free account
hub / github.com/antlr/codebuff / createStringTemplate

Method createStringTemplate

output/java/1.4.19/STGroup.java:765–774  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

763 }
764
765 public ST createStringTemplate(CompiledST impl) {
766 ST st = new ST();
767 st.impl = impl;
768 st.groupThatCreatedThisInstance = this;
769 if ( impl.formalArguments!=null ) {
770 st.locals = new Object[impl.formalArguments.size()];
771 Arrays.fill(st.locals, ST.EMPTY_ATTR);
772 }
773 return st;
774 }
775
776 /** Differentiate so we can avoid having creation events for regions,
777 * map operations, and other implicit "new ST" events during rendering.

Callers 2

getInstanceOfMethod · 0.95

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected