pathString returns a string of the form a->b-> ... ->g for a path [a, b, ... g].
(path []Object)
| 42 | |
| 43 | // pathString returns a string of the form a->b-> ... ->g for a path [a, b, ... g]. |
| 44 | func pathString(path []Object) string { |
| 45 | var s string |
| 46 | for i, p := range path { |
| 47 | if i > 0 { |
| 48 | s += "->" |
| 49 | } |
| 50 | s += p.Name() |
| 51 | } |
| 52 | return s |
| 53 | } |
| 54 | |
| 55 | // objDecl type-checks the declaration of obj in its respective (file) environment. |
| 56 | // For the meaning of def, see Checker.definedType, in typexpr.go. |
no test coverage detected