pkgWithDefault returns the package name of the given location if not nil, def otherwise.
(loc *codegen.Location, def string)
| 1433 | |
| 1434 | // pkgWithDefault returns the package name of the given location if not nil, def otherwise. |
| 1435 | func pkgWithDefault(loc *codegen.Location, def string) string { |
| 1436 | if loc == nil { |
| 1437 | return def |
| 1438 | } |
| 1439 | return loc.PackageName() |
| 1440 | } |
| 1441 | |
| 1442 | // getPrimitive returns the primitive expression if the given expression is an alias to one |
| 1443 | func getPrimitive(att *expr.AttributeExpr) *expr.AttributeExpr { |
no test coverage detected