Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
scripts.idlnode.IDLAnnotation Class Reference
Inheritance diagram for scripts.idlnode.IDLAnnotation:
scripts.idlnode.IDLDictNode scripts.idlnode.IDLNode

Public Member Functions

 __init__ (self, ast=None)
 
- Public Member Functions inherited from scripts.idlnode.IDLDictNode
 __len__ (self)
 
 __getitem__ (self, key)
 
 __setitem__ (self, key, value)
 
 __delitem__ (self, key)
 
 __contains__ (self, key)
 
 __iter__ (self)
 
 get (self, key, default=None)
 
 setdefault (self, key, value=None)
 
 items (self)
 
 keys (self)
 
 values (self)
 
 clear (self)
 
 to_dict (self)
 
- 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_hash (self)
 

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from scripts.idlnode.IDLDictNode
 _all_subnodes (self)
 
- Protected Member Functions inherited from scripts.idlnode.IDLNode
 _extra_repr (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

IDLDictNode specialization for one annotation.

Definition at line 1192 of file idlnode.py.

Constructor & Destructor Documentation

◆ __init__()

scripts.idlnode.IDLAnnotation.__init__ (   self,
  ast = None 
)
Initializes an IDLNode from a PegParser AST output.

Reimplemented from scripts.idlnode.IDLDictNode.

Definition at line 1195 of file idlnode.py.

1195 def __init__(self, ast=None):
1196 IDLDictNode.__init__(self, ast)
1197 self.id = None
1198 if not ast:
1199 return
1200 for arg in self._find_all(ast, 'AnnotationArg'):
1201 name = self._find_first(arg, 'Id')
1202 value = self._find_first(arg, 'AnnotationArgValue')
1203 self[name] = value

Member Data Documentation

◆ id

scripts.idlnode.IDLAnnotation.id

Definition at line 1197 of file idlnode.py.


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