LeftStrings get all Left Identity fields.
()
| 425 | |
| 426 | // LeftStrings get all Left Identity fields. |
| 427 | func (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 |
no test coverage detected