Computes the start/end offsets from a name in a line number.
Computes the start/end offsets from a name in a line number.
Applies a simple heuristic to find the name: the first occurence of name in that line. If the name does not appear in the line then 0 is returned. If the name appears for example in the return type of a method then we get the position of the return type, not the end of the world.