class_docstr: Context-sensitive token parsing.
  
  Provides methods to examine the input stream to check whether the next token
  matches.
class_docstr_tok: ["Context-sensitive","token","parsing",".","Provides","methods","to","examine","the","input","stream","to","check","whether","the","next","token","matches","."]
docstr: Raise ParserSyntaxError at the given position.
docstr_tok: ["Raise","ParserSyntaxError","at","the","given","position","."]
code: def raise_syntax_error(
      self,
      message: str,
      *,
      span_start: Optional[int] = None,
      span_end: Optional[int] = None,
  ) -> NoReturn:
      """Raise ParserSyntaxError at the given position."""
      span = (
          self.position if span_start is None else span_start,
          self.position if span_end is None else span_end,
      )
      raise ParserSyntaxError(
          message,
          source=self.source,
          span=span,
      )
  
file_path: py-packaging/src/packaging/_tokenizer.py
imports: import contextlib
  import re
  from dataclasses import dataclass
  from typing import Dict, Iterator, NoReturn, Optional, Tuple, Union
  from .specifiers import Specifier
label_desc: Use image node_id 6 for calling the Tokenizer obj's underlying member method code with example usage: obj.raise_syntax_error(message) without return types