(self, def_dict, api, parent=None, wire_name=None,
               language_model=None)
Construct a CodeObject.

    Args:
      def_dict: (dict) The discovery dictionary for this element.
      api: (Api) The Api instance which owns this element.
      parent: (CodeObject) The parent of this element.
      wire_name: (str) The name of this object as it appears in the protocol.
      language_model: (LanguageModel) The language we are targetting.
        Dynamically defaults to the parent's language model.
Construct a CodeObject.
Construct a CodeObject .
def __init__(self, def_dict, api, parent=None, wire_name=None,
               language_model=None):
    """Construct a CodeObject.

    Args:
      def_dict: (dict) The discovery dictionary for this element.
      api: (Api) The Api instance which owns this element.
      parent: (CodeObject) The parent of this element.
      wire_name: (str) The name of this object as it appears in the protocol.
      language_model: (LanguageModel) The language we are targetting.
        Dynamically defaults to the parent's language model.
    """
    super(CodeObject, self).__init__(def_dict)
    self._api = api
    self._children = []
    self._parent = None
    self._language_model = language_model
    self._module = None
    if wire_name:
      self.SetTemplateValue(
          'wireName',
          wire_name,
          meaning='The name of this object as it appears in the data stream.')
    self.SetParent(parent)
    # Sanitize the 'description'. It is a block of user written text we want to
    # emit whenever possible.
    d = def_dict.get('description')
    if d:
      self.SetTemplateValue('description',
                            self.ValidateAndSanitizeComment(self.StripHTML(d)))
def __init__ ( self , def_dict , api , parent = None , wire_name = None , language_model = None ) : super ( CodeObject , self ) . __init__ ( def_dict ) self . _api = api self . _children = [ ] self . _parent = None self . _language_model = language_model self . _module = None if wire_name : self . SetTemplateValue ( 'wireName' , wire_name , meaning = 'The name of this object as it appears in the data stream.' ) self . SetParent ( parent ) # Sanitize the 'description'. It is a block of user written text we want to # emit whenever possible. d = def_dict . get ( 'description' ) if d : self . SetTemplateValue ( 'description' , self . ValidateAndSanitizeComment ( self . StripHTML ( d ) ) )