func (ex *example) Code() interface{} {
	if len(ex.Comments) > 0 {
		return &printer.CommentedNode{Node: ex.Example.Code, Comments: ex.Comments}
	}
	return ex.Example.Code
}
// Code returns an printer.CommentedNode if ex.Comments is non-nil,
// otherwise it returns ex.Code as is.
Code returns an printer.CommentedNode if ex.Comments is non-nil,
otherwise it returns ex.Code as is.
// Code returns an printer . CommentedNode if ex . Comments is non - nil // otherwise it returns ex . Code as is .
func (ex *example) Code() interface{} {
	if len(ex.Comments) > 0 {
		return &printer.CommentedNode{Node: ex.Example.Code, Comments: ex.Comments}
	}
	return ex.Example.Code
}
func ( ex * example ) Code ( ) interface { } { if len ( ex . Comments ) > 0 { return & printer . CommentedNode { Node : ex . Example . Code , Comments : ex . Comments } } return ex . Example . Code }
Code returns an printer.CommentedNode if ex.Comments is non-nil,
otherwise it returns ex.Code as is.
Code returns an printer . CommentedNode if ex . Comments is non - nil otherwise it returns ex . Code as is .