proxygen
cpp.ast.Typedef Class Reference
Inheritance diagram for cpp.ast.Typedef:
cpp.ast._GenericDeclaration cpp.ast._GenericDeclaration cpp.ast._GenericDeclaration cpp.ast.Node cpp.ast.Node cpp.ast.Node cpp.ast.Node cpp.ast.Node cpp.ast.Node cpp.ast.Node cpp.ast.Node cpp.ast.Node

Public Member Functions

def __init__ (self, start, end, name, alias, namespace)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def __str__ (self)
 
def __init__ (self, start, end, name, alias, namespace)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def __str__ (self)
 
def __init__ (self, start, end, name, alias, namespace)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def __str__ (self)
 
- Public Member Functions inherited from cpp.ast._GenericDeclaration
def __init__ (self, start, end, name, namespace)
 
def FullName (self)
 
def __init__ (self, start, end, name, namespace)
 
def FullName (self)
 
def __init__ (self, start, end, name, namespace)
 
def FullName (self)
 
- Public Member Functions inherited from cpp.ast.Node
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 

Public Attributes

 alias
 
- Public Attributes inherited from cpp.ast._GenericDeclaration
 name
 
 namespace
 
- Public Attributes inherited from cpp.ast.Node
 start
 
 end
 

Detailed Description

Definition at line 273 of file ast.py.

Constructor & Destructor Documentation

def cpp.ast.Typedef.__init__ (   self,
  start,
  end,
  name,
  alias,
  namespace 
)

Definition at line 274 of file ast.py.

Referenced by cpp.ast.Typedef.__init__().

274  def __init__(self, start, end, name, alias, namespace):
275  _GenericDeclaration.__init__(self, start, end, name, namespace)
276  self.alias = alias
277 
def __init__(self, start, end, name, alias, namespace)
Definition: ast.py:274
def cpp.ast.Typedef.__init__ (   self,
  start,
  end,
  name,
  alias,
  namespace 
)

Definition at line 274 of file ast.py.

References cpp.ast.Typedef.__init__(), and cpp.ast.Typedef.alias.

274  def __init__(self, start, end, name, alias, namespace):
275  _GenericDeclaration.__init__(self, start, end, name, namespace)
276  self.alias = alias
277 
def __init__(self, start, end, name, alias, namespace)
Definition: ast.py:274
def cpp.ast.Typedef.__init__ (   self,
  start,
  end,
  name,
  alias,
  namespace 
)

Definition at line 274 of file ast.py.

References cpp.ast.Typedef.__init__(), and cpp.ast.Typedef.alias.

274  def __init__(self, start, end, name, alias, namespace):
275  _GenericDeclaration.__init__(self, start, end, name, namespace)
276  self.alias = alias
277 
def __init__(self, start, end, name, alias, namespace)
Definition: ast.py:274

Member Function Documentation

def cpp.ast.Typedef.__str__ (   self)

Definition at line 292 of file ast.py.

References cpp.ast._GenericDeclaration._TypeStringHelper(), cpp.ast.Typedef.alias, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, cpp.ast._GenericDeclaration.name, name, and url_test.name.

Referenced by cpp.ast.Typedef.__str__().

292  def __str__(self):
293  suffix = '%s, %s' % (self.name, self.alias)
294  return self._TypeStringHelper(suffix)
295 
296 
def __str__(self)
Definition: ast.py:292
def _TypeStringHelper(self, suffix)
Definition: ast.py:244
def cpp.ast.Typedef.__str__ (   self)

Definition at line 292 of file ast.py.

References cpp.ast.Typedef.__str__(), cpp.ast._GenericDeclaration._TypeStringHelper(), cpp.ast.Typedef.alias, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, cpp.ast._GenericDeclaration.name, name, and url_test.name.

292  def __str__(self):
293  suffix = '%s, %s' % (self.name, self.alias)
294  return self._TypeStringHelper(suffix)
295 
296 
def __str__(self)
Definition: ast.py:292
def _TypeStringHelper(self, suffix)
Definition: ast.py:244
def cpp.ast.Typedef.__str__ (   self)

Definition at line 292 of file ast.py.

References cpp.ast.Typedef.__str__(), cpp.ast._GenericDeclaration._TypeStringHelper(), cpp.ast.Typedef.alias, message.name, cpp.ast.Define.name, cpp.ast.Parameter.name, cpp.ast._GenericDeclaration.name, name, and url_test.name.

292  def __str__(self):
293  suffix = '%s, %s' % (self.name, self.alias)
294  return self._TypeStringHelper(suffix)
295 
296 
def __str__(self)
Definition: ast.py:292
def _TypeStringHelper(self, suffix)
Definition: ast.py:244
def cpp.ast.Typedef.IsDefinition (   self)

Definition at line 278 of file ast.py.

Referenced by cpp.ast.Typedef.IsDefinition().

278  def IsDefinition(self):
279  return True
280 
def IsDefinition(self)
Definition: ast.py:278
def cpp.ast.Typedef.IsDefinition (   self)

Definition at line 278 of file ast.py.

References cpp.ast.Typedef.IsDefinition().

278  def IsDefinition(self):
279  return True
280 
def IsDefinition(self)
Definition: ast.py:278
def cpp.ast.Typedef.IsDefinition (   self)

Definition at line 278 of file ast.py.

References cpp.ast.Typedef.IsDefinition().

278  def IsDefinition(self):
279  return True
280 
def IsDefinition(self)
Definition: ast.py:278
def cpp.ast.Typedef.IsExportable (   self)

Definition at line 281 of file ast.py.

Referenced by cpp.ast.Typedef.IsExportable().

281  def IsExportable(self):
282  return True
283 
def IsExportable(self)
Definition: ast.py:281
def cpp.ast.Typedef.IsExportable (   self)

Definition at line 281 of file ast.py.

References cpp.ast.Typedef.IsExportable().

281  def IsExportable(self):
282  return True
283 
def IsExportable(self)
Definition: ast.py:281
def cpp.ast.Typedef.IsExportable (   self)

Definition at line 281 of file ast.py.

References cpp.ast.Typedef.IsExportable().

281  def IsExportable(self):
282  return True
283 
def IsExportable(self)
Definition: ast.py:281
def cpp.ast.Typedef.Requires (   self,
  node 
)

Definition at line 284 of file ast.py.

References cpp.ast.Typedef.alias, and cpp.ast.Typedef.Requires().

284  def Requires(self, node):
285  # TODO(nnorwitz): handle namespaces, etc.
286  name = node.name
287  for token in self.alias:
288  if token is not None and name == token.name:
289  return True
290  return False
291 
def Requires(self, node)
Definition: ast.py:284
def cpp.ast.Typedef.Requires (   self,
  node 
)

Definition at line 284 of file ast.py.

References cpp.ast.Typedef.alias.

Referenced by cpp.ast.Typedef.Requires().

284  def Requires(self, node):
285  # TODO(nnorwitz): handle namespaces, etc.
286  name = node.name
287  for token in self.alias:
288  if token is not None and name == token.name:
289  return True
290  return False
291 
def Requires(self, node)
Definition: ast.py:284
def cpp.ast.Typedef.Requires (   self,
  node 
)

Definition at line 284 of file ast.py.

References cpp.ast.Typedef.alias, and cpp.ast.Typedef.Requires().

284  def Requires(self, node):
285  # TODO(nnorwitz): handle namespaces, etc.
286  name = node.name
287  for token in self.alias:
288  if token is not None and name == token.name:
289  return True
290  return False
291 
def Requires(self, node)
Definition: ast.py:284

Member Data Documentation

cpp.ast.Typedef.alias

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