MCPcopy Create free account
hub / github.com/google/gapid / pathName

Method pathName

core/codegen/value.go:126–139  ·  view source on GitHub ↗
(rootName string, path []ValueIndexOrName)

Source from the content-addressed store, hash-verified

124}
125
126func (b *Builder) pathName(rootName string, path []ValueIndexOrName) string {
127 name := rootName
128 for _, p := range path {
129 switch p := p.(type) {
130 case int:
131 name = fmt.Sprintf("%v[%v]", name, p)
132 case string:
133 name = fmt.Sprintf("%v.%v", name, p)
134 case *Value:
135 name = fmt.Sprintf("%v[%v]", name, p.Name())
136 }
137 }
138 return name
139}
140
141func (b *Builder) path(rootTy Type, rootName string, path ...ValueIndexOrName) (indices []llvm.Value, name string, target Type) {
142 err := func(i int) string {

Callers 1

pathMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected