public Template CreateStringTemplateInternally(CompiledTemplate impl) { Template template = CreateStringTemplate(impl); if (TrackCreationEvents && template.DebugState != null) { // toss it out template.DebugState.NewTemplateEvent = null; } return template; }