MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / pathString

Function pathString

types/decl.go:44–53  ·  view source on GitHub ↗

pathString returns a string of the form a->b-> ... ->g for a path [a, b, ... g].

(path []Object)

Source from the content-addressed store, hash-verified

42
43// pathString returns a string of the form a->b-> ... ->g for a path [a, b, ... g].
44func 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.

Callers 2

objDeclMethod · 0.85
validCycleMethod · 0.85

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected