docstr: Returns the coordinates for the YaccProduction object 'p' indexed
  with 'token_idx'. The coordinate includes the 'lineno' and
  'column'. Both follow the lex semantic, starting from 1.
docstr_tok: ["Returns","the","coordinates","for","the","YaccProduction","object","'","p","'","indexed","with","'token_idx","'",".","The","coordinate","includes","the","'lineno","'","and","'column","'",".","Both","follow","the","lex","semantic",",","starting","from","1","."]
code: def _token_coord(self, p, token_idx):
      """Returns the coordinates for the YaccProduction object 'p' indexed
      with 'token_idx'. The coordinate includes the 'lineno' and
      'column'. Both follow the lex semantic, starting from 1.
      """
      last_cr = p.lexer.lexer.lexdata.rfind(
          "\n", 0, p.lexpos(token_idx)
      )
      if last_cr < 0:
          last_cr = -1
      column = p.lexpos(token_idx) - (last_cr)
      return self._coord(p.lineno(token_idx), column)
  
file_path: catboost/contrib/python/pycparser/py3/pycparser/plyparser.py
imports: import warnings
label_desc: Use image node_id 3 for calling the PLYParser obj's underlying member method code with example usage: obj._token_coord(p, token_idx) and returns: self