| 407 | } |
| 408 | |
| 409 | func (j *joinUsingScope) filterAppend(out []*sem.ThisExpr, rs relScope, n ast.Node, path []string) ([]*sem.ThisExpr, error) { |
| 410 | exprs, err := rs.star(n, "", path) |
| 411 | if err != nil { |
| 412 | return nil, err |
| 413 | } |
| 414 | for _, this := range exprs { |
| 415 | if _, skip := j.skip[this.Path[len(this.Path)-1]]; !skip { |
| 416 | out = append(out, this) |
| 417 | } |
| 418 | } |
| 419 | return out, nil |
| 420 | } |
| 421 | |
| 422 | func (s *selectScope) star(n ast.Node, table string, path field.Path) ([]*sem.ThisExpr, error) { |
| 423 | return s.in.star(n, table, append(path, "in")) |