Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
scripts.idlnode.IDLEnum Class Reference
Inheritance diagram for scripts.idlnode.IDLEnum:
scripts.idlnode.IDLNode

Public Member Functions

def __init__ (self, ast)
 
- Public Member Functions inherited from scripts.idlnode.IDLNode
def __init__ (self, ast, id=None)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def reset_id (self, newId)
 
def all (self, type_filter=None)
 
def to_dict (self)
 
def to_hash (self)
 

Public Attributes

 values
 
- Public Attributes inherited from scripts.idlnode.IDLNode
 id
 
 ext_attrs
 
 annotations
 
 members
 

Detailed Description

IDLNode for 'enum [id] { [string]+ }'

Definition at line 763 of file idlnode.py.

Constructor & Destructor Documentation

◆ __init__()

def scripts.idlnode.IDLEnum.__init__ (   self,
  ast 
)
Initializes an IDLNode from a PegParser AST output.

Reimplemented from scripts.idlnode.IDLNode.

Definition at line 766 of file idlnode.py.

766 def __init__(self, ast):
767 IDLNode.__init__(self, ast)
768 self._convert_annotations(ast)
769 if not (isinstance(ast, list)) and ast.__module__ == "idl_definitions":
770 # Blink AST
771 self.values = ast.values
772 else:
773 self.values = self._find_all(ast, 'StringLiteral')
774
775 # TODO(terry): Need to handle emitting of enums for dart:html
776
777

Member Data Documentation

◆ values

scripts.idlnode.IDLEnum.values

Definition at line 771 of file idlnode.py.


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