pkgWithDefault returns the package name of the given location if not nil, def otherwise.
(loc *codegen.Location, def string)
| 2946 | |
| 2947 | // pkgWithDefault returns the package name of the given location if not nil, def otherwise. |
| 2948 | func pkgWithDefault(loc *codegen.Location, def string) string { |
| 2949 | if loc == nil { |
| 2950 | return def |
| 2951 | } |
| 2952 | return loc.PackageName() |
| 2953 | } |
| 2954 | |
| 2955 | // unmarshal initializes a data structure defined by target type from a data |
| 2956 | // structure defined by source type. The attributes in the source data |
no test coverage detected