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

Method createStringTemplate

output/java8/1.4.17/STGroup.java:758–767  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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

Callers 6

getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected