Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
scripts.idlnode.IDLMember Class Reference
Inheritance diagram for scripts.idlnode.IDLMember:
scripts.idlnode.IDLNode scripts.idlnode.IDLAttribute scripts.idlnode.IDLConstant scripts.idlnode.IDLDictionaryMember scripts.idlnode.IDLOperation

Public Member Functions

def __init__ (self, ast, doc_js_interface_name, member_id=None)
 
- 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

 type
 
 doc_js_interface_name
 
 is_fc_suppressed
 
 is_static
 
- Public Attributes inherited from scripts.idlnode.IDLNode
 id
 
 ext_attrs
 
 annotations
 
 members
 

Detailed Description

A base class for constants, attributes and operations.

Definition at line 1002 of file idlnode.py.

Constructor & Destructor Documentation

◆ __init__()

def scripts.idlnode.IDLMember.__init__ (   self,
  ast,
  id,
  member_id = None 
)
Initializes an IDLNode from a PegParser AST output.

Reimplemented from scripts.idlnode.IDLNode.

Reimplemented in scripts.idlnode.IDLAttribute, scripts.idlnode.IDLConstant, scripts.idlnode.IDLDictionaryMember, and scripts.idlnode.IDLOperation.

Definition at line 1005 of file idlnode.py.

1005 def __init__(self, ast, doc_js_interface_name, member_id=None):
1006 if ast:
1007 IDLNode.__init__(self, ast)
1008 else:
1009 # The ast is None to support synthesizing an IDLMember, member_id is only
1010 # used when ast is None.
1011 IDLNode.__init__(self, ast, member_id)
1012 self.type = None
1013 self.doc_js_interface_name = doc_js_interface_name
1014 return
1015
1016 self.type = self._convert_first(ast, 'Type', IDLType)
1017 self.type = resolveTypedef(self.type)
1018
1019 self._convert_ext_attrs(ast)
1020 self._convert_annotations(ast)
1021 self.doc_js_interface_name = doc_js_interface_name
1022 # TODO(terry): Can eliminate Suppressed when we're only using blink parser.
1023 self.is_fc_suppressed = 'Suppressed' in self.ext_attrs or \
1024 'DartSuppress' in self.ext_attrs
1025 self.is_static = self._has(ast, 'Static')
1026
1027
def resolveTypedef(type)
Definition: idlnode.py:39

Member Data Documentation

◆ doc_js_interface_name

scripts.idlnode.IDLMember.doc_js_interface_name

Definition at line 1013 of file idlnode.py.

◆ is_fc_suppressed

scripts.idlnode.IDLMember.is_fc_suppressed

Definition at line 1023 of file idlnode.py.

◆ is_static

scripts.idlnode.IDLMember.is_static

Definition at line 1025 of file idlnode.py.

◆ type

scripts.idlnode.IDLMember.type

Definition at line 1012 of file idlnode.py.


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