Inheritance: HandlebarsTemplate
 public void VisitLeave(LayoutedHandlebarsTemplate layoutedTemplate)
 {
     var layout = state.Introspector.GetLayoutHbsTemplate(layoutedTemplate.LayoutName);
       if (layout == null)
       {
     state.AddTypeError($"Could not find layout '{layoutedTemplate.LayoutName}'", HandlebarsTypeErrorKind.UnknownLayout);
     return;
       }
       state.PushStatement(
     SyntaxHelper.HbsTemplateCall(
       layout.Name,
       //Correct here as the ContextStack contains only the root context at the end
       state.ContextStack.Peek().FullPath,
       methodName: "PostRender"));
       VisitLeave(layoutedTemplate as HandlebarsTemplate);
 }
 public void VisitEnter(LayoutedHandlebarsTemplate layoutedTemplate)
 {
     VisitEnter(layoutedTemplate as HandlebarsTemplate);
       var layout = state.Introspector.GetLayoutHbsTemplate(layoutedTemplate.LayoutName);
       if (layout == null)
       {
     state.AddTypeError($"Could not find layout '{layoutedTemplate.LayoutName}'", HandlebarsTypeErrorKind.UnknownLayout);
     return;
       }
       state.RegisterUsing(layout.ContainingNamespace.ToDisplayString());
       state.PushStatement(
     SyntaxHelper.HbsTemplateCall(
       layout.Name,
       //Correct here as the ContextStack contains only the root context at the beginning
       state.ContextStack.Peek().FullPath,
       methodName: "PreRender"));
 }