Public Member Functions | Public Attributes | Static Private Attributes | List of all members
cpp.tokenize.Token Class Reference
Inheritance diagram for cpp.tokenize.Token:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, token_type, name, start, end)
 
def __init__ (self, token_type, name, start, end)
 
def __init__ (self, token_type, name, start, end)
 
def __str__ (self)
 
def __str__ (self)
 
def __str__ (self)
 

Public Attributes

 end
 
 name
 
 start
 
 token_type
 
 whence
 

Static Private Attributes

def __repr__ = __str__
 

Detailed Description

Data container to represent a C++ token.

Tokens can be identifiers, syntax char(s), constants, or
pre-processor directives.

start contains the index of the first char of the token in the source
end contains the index of the last char of the token in the source

Definition at line 64 of file bloaty/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py.

Constructor & Destructor Documentation

◆ __init__() [1/3]

def cpp.tokenize.Token.__init__ (   self,
  token_type,
  name,
  start,
  end 
)

◆ __init__() [2/3]

def cpp.tokenize.Token.__init__ (   self,
  token_type,
  name,
  start,
  end 
)

◆ __init__() [3/3]

def cpp.tokenize.Token.__init__ (   self,
  token_type,
  name,
  start,
  end 
)

Member Function Documentation

◆ __str__() [1/3]

def cpp.tokenize.Token.__str__ (   self)

◆ __str__() [2/3]

def cpp.tokenize.Token.__str__ (   self)

◆ __str__() [3/3]

def cpp.tokenize.Token.__str__ (   self)

Member Data Documentation

◆ __repr__

def cpp.tokenize.Token.__repr__ = __str__
staticprivate

◆ end

cpp.tokenize.Token.end

◆ name

cpp.tokenize.Token.name

◆ start

cpp.tokenize.Token.start

◆ token_type

cpp.tokenize.Token.token_type

◆ whence

cpp.tokenize.Token.whence

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10