struct Mint::Parser::Location

Overview

Offset (from the start of the file), line and column.

Defined in:

parser/location.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(offset : Int64 = 0, line : Int64 = 1, column : Int64 = 0) #

[View source]

Instance Method Detail

def +(other : Int64) : Location #

[View source]
def -(other : Int64) : Location #

[View source]
def clone #

[View source]
def column : Int64 #

def copy_with(offset _offset = @offset, line _line = @line, column _column = @column) #

[View source]
def line : Int64 #

def offset : Int64 #

def to_tuple #

[View source]