If the RexNode contains position information, return it. Otherwise, return SqlParserPos.ZERO.
(RexNode e)
| 2382 | /** If the RexNode contains position information, return it. |
| 2383 | * Otherwise, return SqlParserPos.ZERO. */ |
| 2384 | public static SqlParserPos getPos(RexNode e) { |
| 2385 | if (e instanceof RexCall) { |
| 2386 | return ((RexCall) e).getParserPosition(); |
| 2387 | } |
| 2388 | return SqlParserPos.ZERO; |
| 2389 | } |
| 2390 | |
| 2391 | /** Applies NOT to an expression. |
| 2392 | * |