MCPcopy Create free account
hub / github.com/antlr/codebuff / createStringTemplateInternally

Method createStringTemplateInternally

output/java/1.4.17/STGroup.java:776–782  ·  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

774 */
775
776 public ST createStringTemplateInternally(CompiledST impl) {
777 ST st = createStringTemplate(impl);
778 if ( trackCreationEvents && st.debugState!=null ) {
779 st.debugState.newSTEvent = null; // toss it out
780 }
781 return st;
782 }
783
784 public ST createStringTemplateInternally(ST proto) {
785 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