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

Method createStringTemplate

output/java8/1.4.15/STGroup.java:757–766  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected