INNER CODE UNIT · Python

Clone

Squirrel-Engine/Squirrel-Engine · googletest/googlemock/scripts/pump.py:126

  def Clone(self):
    """Returns a copy of self."""

    return Cursor(self.line, self.column)


# Special cursor to indicate the end-of-file.
def Eof():
  """Returns the special cursor to denote the end-of-file."""
  return Cursor(-1, -1)


class Token:
  """Represents a token in a Pump source file."""

  def __init__(self, start=None, end=None, value=None, token_type=None):
    if start is None:
      self.start = Eof()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…