(startedWithApostrophe bool, finishedWithApostrophe bool, value token.Token)
| 227 | } |
| 228 | |
| 229 | func validateApostropheWrapping(startedWithApostrophe bool, finishedWithApostrophe bool, value token.Token) error { |
| 230 | if startedWithApostrophe && !finishedWithApostrophe { |
| 231 | return &NoApostropheOnRightParserError{ident: value.Literal} |
| 232 | } else if !startedWithApostrophe && finishedWithApostrophe { |
| 233 | return &NoApostropheOnLeftParserError{ident: value.Literal} |
| 234 | } |
| 235 | return nil |
| 236 | } |
| 237 | |
| 238 | // parseSelectCommand - Return ast.SelectCommand created from tokens and validate the syntax |
| 239 | // |
no outgoing calls
no test coverage detected