NewLocation creates a new location.
(line, column int)
| 35 | |
| 36 | // NewLocation creates a new location. |
| 37 | func NewLocation(line, column int) Location { |
| 38 | return &SourceLocation{ |
| 39 | line: line, |
| 40 | column: column} |
| 41 | } |
| 42 | |
| 43 | // Line returns the 1-based line of the location. |
| 44 | func (l *SourceLocation) Line() int { |
no outgoing calls