MCPcopy Create free account
hub / github.com/araddon/qlbridge / LeftStrings

Method LeftStrings

expr/node.go:427–438  ·  view source on GitHub ↗

LeftStrings get all Left Identity fields.

()

Source from the content-addressed store, hash-verified

425
426// LeftStrings get all Left Identity fields.
427func (m IdentityNodes) LeftStrings() []string {
428 s := make([]string, len(m))
429 for i, in := range m {
430 l, r, hasLr := in.LeftRight()
431 if hasLr {
432 s[i] = l
433 } else {
434 s[i] = r
435 }
436 }
437 return s
438}
439
440// FindIdentityName Recursively walk a node looking for first Identity Field
441// and combine with outermost expression to create an alias

Callers 1

Calls 1

LeftRightMethod · 0.45

Tested by

no test coverage detected