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

Method createStringTemplate

output/java8/1.4.14/STGroup.java:756–765  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected