Syntax Lookup
Enter some language construct you want to know more about.
This is the __POS_OF__ special value.
__POS_OF__(expression)
returns a tuple consisting of (position, expression)
, corresponding to the position of the expression you pass as a parameter here.
The position
is a tuple consisting of (fileName, lineNumber, columnNumberStart, columnNumberEnd)
.
It basically provides the same information as __LOC_OF__
, but separated into multiple values.
Note: expression
refers to any expression, it does not need to be a function.