func (o *Object) String() string {
	decl := o.decl
	if funcDecl, ok := decl.(*ast.FuncDecl); ok {
		// Strip the body (forward declaration)
		decl = &ast.FuncDecl{
			Doc:  funcDecl.Doc,
			Recv: funcDecl.Recv,
			Name: funcDecl.Name,
			Type: funcDecl.Type,
			Body: nil,
		}
	}
	var buf bytes.Buffer
	err := printer.Fprint(&buf, o.fset, decl)
	if err != nil {
		panic(err)
	}
	return buf.String()
}
// String returns the object as it appears in code.
String returns the object as it appears in code.
// String returns the object as it appears in code .
func (o *Object) String() string {
	decl := o.decl
	if funcDecl, ok := decl.(*ast.FuncDecl); ok {
		decl = &ast.FuncDecl{
			Doc:  funcDecl.Doc,
			Recv: funcDecl.Recv,
			Name: funcDecl.Name,
			Type: funcDecl.Type,
			Body: nil,
		}
	}
	var buf bytes.Buffer
	err := printer.Fprint(&buf, o.fset, decl)
	if err != nil {
		panic(err)
	}
	return buf.String()
}
func ( o * Object ) String ( ) string { decl := o . decl if funcDecl , ok := decl . ( * ast . FuncDecl ) ; ok { decl = & ast . FuncDecl { Doc : funcDecl . Doc , Recv : funcDecl . Recv , Name : funcDecl . Name , Type : funcDecl . Type , Body : nil , } } var buf bytes . Buffer err := printer . Fprint ( & buf , o . fset , decl ) if err != nil { panic ( err ) } return buf . String ( ) }
String returns the object as it appears in code.
String returns the object as it appears in code .
// Strip the body (forward declaration)