MCPcopy Index your code
hub / github.com/antlr/codebuff / createStringTemplate

Method createStringTemplate

output/java8/1.4.12/STGroup.java:736–745  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

734 }
735
736 public ST createStringTemplate(CompiledST impl) {
737 ST st = new ST();
738 st.impl = impl;
739 st.groupThatCreatedThisInstance = this;
740 if ( impl.formalArguments!=null ) {
741 st.locals = new Object[impl.formalArguments.size()];
742 Arrays.fill(st.locals, ST.EMPTY_ATTR);
743 }
744 return st;
745 }
746
747 /** Differentiate so we can avoid having creation events for regions,
748 * map operations, and other implicit "new ST" events during rendering.

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected