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

Method createStringTemplateInternally

output/java8/1.4.17/STGroup.java:773–779  ·  view source on GitHub ↗

Differentiate so we can avoid having creation events for regions, map operations, and other implicit "new ST" events during rendering.

(CompiledST impl)

Source from the content-addressed store, hash-verified

771 */
772
773 public ST createStringTemplateInternally(CompiledST impl) {
774 ST st = createStringTemplate(impl);
775 if ( trackCreationEvents && st.debugState!=null ) {
776 st.debugState.newSTEvent = null; // toss it out
777 }
778 return st;
779 }
780
781 public ST createStringTemplateInternally(ST proto) {
782 return new ST(proto); // no need to wack debugState; not set in ST(proto).

Callers 15

getEmbeddedInstanceOfMethod · 0.95
createSingletonMethod · 0.95
getEmbeddedInstanceOfMethod · 0.95
createSingletonMethod · 0.95
getEmbeddedInstanceOfMethod · 0.95
createSingletonMethod · 0.95
getEmbeddedInstanceOfMethod · 0.95
createSingletonMethod · 0.95
getEmbeddedInstanceOfMethod · 0.95
createSingletonMethod · 0.95
super_newMethod · 0.45
rot_mapMethod · 0.45

Calls 1

createStringTemplateMethod · 0.95

Tested by

no test coverage detected