// NewGetPortableClassReference returns a NewMethod that writes a
// GetPortableClassReference method for the supplied Object to the supplied
// file.
NewGetPortableClassReference returns a NewMethod that writes a
GetPortableClassReference method for the supplied Object to the supplied
file.
// NewGetPortableClassReference returns a NewMethod that writes a // GetPortableClassReference method for the supplied Object to the supplied // file .
func NewGetPortableClassReference(receiver, core string) New {
	return func(f *jen.File, o types.Object) {
		f.Commentf("GetPortableClassReference of this %s.", o.Name())
		f.Func().Params(jen.Id(receiver).Op("*").Id(o.Name())).Id("GetPortableClassReference").Params().Op("*").Qual(core, "LocalObjectReference").Block(
			jen.Return(jen.Id(receiver).Dot(fields.NameSpec).Dot("PortableClassReference")),
		)
	}
}
func NewGetPortableClassReference ( receiver , core string ) New { return func ( f * jen . File , o types . Object ) { f . Commentf ( " " , o . Name ( ) ) f . Func ( ) . Params ( jen . Id ( receiver ) . Op ( " " ) . Id ( o . Name ( ) ) ) . Id ( " " ) . Params ( ) . Op ( " " ) . Qual ( core , " " ) . Block ( jen . Return ( jen . Id ( receiver ) . Dot ( fields . NameSpec ) . Dot ( " " ) ) , ) } }
NewGetPortableClassReference returns a NewMethod that writes a
GetPortableClassReference method for the supplied Object to the supplied
file.
NewGetPortableClassReference returns a NewMethod that writes a GetPortableClassReference method for the supplied Object to the supplied file .