helper_method_yield.go
func newHelperMethodYield(ln *line, rslt *result, src *source, parent element, opts *Options) (*helperMethodYield, error) {
	if len(ln.tokens) < 3 {
		return nil, fmt.Errorf("no template name is specified [file: %s][line: %d]", ln.fileName(), ln.no)
	}

	e := &helperMethodYield{
		elementBase:  newElementBase(ln, rslt, src, parent, opts),
		templateName: ln.tokens[2],
	}

	return e, nil
}
func newHelperMethodYield(ln *line, rslt *result, src *source, parent element, opts *Options) (*helperMethodYield, error) {
	if len(ln.tokens) < 3 {
		return nil, fmt.Errorf("no template name is specified [file: %s][line: %d]", ln.fileName(), ln.no)
	}

	e := &helperMethodYield{
		elementBase:  newElementBase(ln, rslt, src, parent, opts),
		templateName: ln.tokens[2],
	}

	return e, nil
}
func newHelperMethodYield ( ln * line , rslt * result , src * source , parent element , opts * Options ) ( * helperMethodYield , error ) { if len ( ln . tokens ) < 3 { return nil , fmt . Errorf ( " " , ln . fileName ( ) , ln . no ) } e := & helperMethodYield { elementBase : newElementBase ( ln , rslt , src , parent , opts ) , templateName : ln . tokens [ 2 ] , } return e , nil }
// newHelperMethodYield creates and returns a helper method yield.
newHelperMethodYield creates and returns a helper method yield .