(line, column int32)
| 73 | } |
| 74 | |
| 75 | func ConvertTiDBParserErrorPositionToPosition(line, column int32) *storepb.Position { |
| 76 | return &storepb.Position{ |
| 77 | Line: max(line, 1), |
| 78 | Column: max(column, 1), |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | // ConvertANTLRTokenToExclusiveEndPosition converts an ANTLR token position to an exclusive end Position. |
| 83 | // The end token's line and column (0-based) plus its text are used to calculate where the position |
no outgoing calls