ppapi/generators/idl_thunk.py
def GenerateBody(self, out, filenode, releases, options):
    """Generates a member function lines to be written and metadata.

    Returns a tuple of (body, meta) where:
      body - a list of lines with member function bodies
      meta - a ThunkMetadata instance for hinting which headers are needed.
    """
    __pychecker__ = 'unusednames=options'
    out_members = []
    meta = ThunkBodyMetadata()
    for node in filenode.GetListOf('Interface'):
      # Skip if this node is not in this release
      if not node.InReleases(releases):
        print("Skipping %s" % node)
        continue

      # Generate Member functions
      if node.IsA('Interface'):
        members = node.GetListOf('Member')
        for child in members:
          build_list = child.GetUniqueReleases(releases)
          # We have to filter out releases this node isn't in.
          build_list = filter(lambda r: child.InReleases([r]), build_list)
          if len(build_list) == 0:
            continue
          release = build_list[-1]
          include_version = not _IsNewestMember(child, members, releases)
          member = DefineMember(filenode, node, child, release, include_version,
                                meta)
          if not member:
            continue
          out_members.append(member)
    return (out_members, meta)
Generates a member function lines to be written and metadata.

    Returns a tuple of (body, meta) where:
      body - a list of lines with member function bodies
      meta - a ThunkMetadata instance for hinting which headers are needed.
    
Generates a member function lines to be written and metadata.
Returns a tuple of (body, meta) where:
body - a list of lines with member function bodies
meta - a ThunkMetadata instance for hinting which headers are needed.
Generates a member function lines to be written and metadata . Returns a tuple of ( body meta ) where : body - a list of lines with member function bodies meta - a ThunkMetadata instance for hinting which headers are needed .
def GenerateBody(self, out, filenode, releases, options):
    __pychecker__ = 'unusednames=options'
    out_members = []
    meta = ThunkBodyMetadata()
    for node in filenode.GetListOf('Interface'):
      if not node.InReleases(releases):
        print("Skipping %s" % node)
        continue
      if node.IsA('Interface'):
        members = node.GetListOf('Member')
        for child in members:
          build_list = child.GetUniqueReleases(releases)
          build_list = filter(lambda r: child.InReleases([r]), build_list)
          if len(build_list) == 0:
            continue
          release = build_list[-1]
          include_version = not _IsNewestMember(child, members, releases)
          member = DefineMember(filenode, node, child, release, include_version,
                                meta)
          if not member:
            continue
          out_members.append(member)
    return (out_members, meta)
def GenerateBody ( self , out , filenode , releases , options ) : __pychecker__ = 'unusednames=options' out_members = [ ] meta = ThunkBodyMetadata ( ) for node in filenode . GetListOf ( 'Interface' ) : if not node . InReleases ( releases ) : print ( "Skipping %s" % node ) continue if node . IsA ( 'Interface' ) : members = node . GetListOf ( 'Member' ) for child in members : build_list = child . GetUniqueReleases ( releases ) build_list = filter ( lambda r : child . InReleases ( [ r ] ) , build_list ) if len ( build_list ) == 0 : continue release = build_list [ - 1 ] include_version = not _IsNewestMember ( child , members , releases ) member = DefineMember ( filenode , node , child , release , include_version , meta ) if not member : continue out_members . append ( member ) return ( out_members , meta )
Generates a member function lines to be written and metadata.
Generates a member function lines to be written and metadata .
"""Generates a member function lines to be written and metadata.

    Returns a tuple of (body, meta) where:
      body - a list of lines with member function bodies
      meta - a ThunkMetadata instance for hinting which headers are needed.
    """ # Skip if this node is not in this release # Generate Member functions # We have to filter out releases this node isn't in.
self
out
filenode
releases
options