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

Method createStringTemplate

output/java/1.4.14/STGroup.java:759–768  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected