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

Method createStringTemplate

output/java/1.4.15/STGroup.java:760–769  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected