Static methods

staticgetInfos(p:Position):{min:Int, max:Int, file:String}

Like Context.getPosInfos, except this method is available on all platforms.

statichere():Position

Returns the Position where the caller of here is.

staticmake(inf:{min:Int, max:Int, file:String}):Position

Like Context.makePosition, except this method is available on all platforms.

statictoLocation(p:Position):Location

Available on macro

Converts a haxe.macro.Position to a haxe.display.Position.Location.

This operation requires the source file the be known to the Haxe lexer in order to determine line breaks. It is thus only available in macro context.