parseIdentList parses a comma delimited list of identifiers.
()
| 110 | |
| 111 | // parseIdentList parses a comma delimited list of identifiers. |
| 112 | func (p *Parser) parseIdentList() ([]string, error) { |
| 113 | // Parse first (required) identifier. |
| 114 | ident, err := p.parseIdent() |
| 115 | if err != nil { |
| 116 | return nil, err |
| 117 | } |
| 118 | idents := []string{ident} |
| 119 | |
| 120 | // Parse remaining (optional) identifiers. |
| 121 | for { |
| 122 | if tok, _, _ := p.scanIgnoreWhitespace(); tok != COMMA { |
| 123 | p.unscan() |
| 124 | return idents, nil |
| 125 | } |
| 126 | |
| 127 | if ident, err = p.parseIdent(); err != nil { |
| 128 | return nil, err |
| 129 | } |
| 130 | |
| 131 | idents = append(idents, ident) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | // parseSegmentedIdents parses a segmented identifiers. |
| 136 | // e.g., "db"."rp".measurement or "db"..measurement |
nothing calls this directly
no test coverage detected