Position of a document element within a SSH document. Line and Col are both 1-indexed positions for the element's line number and column number, respectively. Values of zero or less will cause Invalid(), to return true.
| 13 | // column number, respectively. Values of zero or less will cause Invalid(), |
| 14 | // to return true. |
| 15 | type Position struct { |
| 16 | Line int // line within the document |
| 17 | Col int // column within the line |
| 18 | } |
| 19 | |
| 20 | // String representation of the position. |
| 21 | // Displays 1-indexed line and column numbers. |
nothing calls this directly
no outgoing calls
no test coverage detected