PPI icon indicating copy to clipboard operation
PPI copied to clipboard

Add byte offsets for Tokens

Open ksurent opened this issue 9 years ago • 0 comments

This patch adds a new method that returns positions of the first and the last bytes of a Token (byte span). It comes in handy e.g. when building smart code viewer apps (PPI::Element->location() is not precise enough) or working with code analysis libraries (all libraries I'm aware of require byte offsets).

ksurent avatar Apr 14 '16 15:04 ksurent