Syntax Lookup

Enter some language construct you want to know more about.
This is the __POS__ special value.

__POS__ returns a tuple consisting of (fileName, lineNumber, columnNumberStart, columnNumberEnd) corresponding to the location in the file at which you put this very expression.

It basically provides the same information as __LOC__, but separated into multiple values.

ReScriptJS Output
let (fileName, lineNumber, columnNumberStart, columnNumberEnd) = __POS__

fileName->Console.log
lineNumber->Console.log
columnNumberStart->Console.log
columnNumberEnd->Console.log