Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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

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

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from scripts.idlnode.IDLNode
 _extra_repr (self)
 
 _all_subnodes (self)
 
 _to_hashable (self, obj)
 
 _find_all (self, ast, label, max_results=sys.maxsize)
 
 _find_first (self, ast, label)
 
 _has (self, ast, label)
 
 _convert_label_to_field (self, label)
 
 _convert_all (self, ast, label, idlnode_ctor)
 
 _convert_first (self, ast, label, idlnode_ctor)
 
 _convert_ext_attrs (self, ast)
 
 _convert_annotations (self, ast)
 
 _convert_constants (self, ast, js_name)
 

Detailed Description

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

Definition at line 763 of file idlnode.py.

Constructor & Destructor Documentation

◆ __init__()

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: