module Ameba::Ext::Location
Overview
Extensions to Crystal::Location
Direct including types
Defined in:
ameba/ext/location.crInstance Method Summary
-
#adjust(line_number = 0, column_number = 0) : self
Returns the same location as this location but with the line and/or column number(s) adjusted by the given amount(s).
-
#seek(offset : self) : self
Seeks to a given offset relative to
self
. -
#with(line_number = @line_number, column_number = @column_number) : self
Returns the same location as this location but with the line and/or column number(s) changed to the given value(s).
Instance Method Detail
Returns the same location as this location but with the line and/or column number(s) adjusted by the given amount(s).
def with(line_number = @line_number, column_number = @column_number) : self
#
Returns the same location as this location but with the line and/or column number(s) changed to the given value(s).