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

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

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

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

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