Function DMLSyntaxSupport.tokenStart

searches for neares token start before or equal to position

TextPosition tokenStart(
  TextPosition pos
);