parameters: (self, line)
return_statement: return line
docstring: Parses for the nodejs addon params and adds the relevant dependencies
docstring_summary: Parses for the nodejs addon params and adds the relevant dependencies
docstring_tokens: Parses for the nodejs addon params and adds the relevant dependencies
function: def parse_func_nodejs_addon(self, line):
          """
          Parses for the nodejs addon params and adds the relevant dependencies
          """
          print_dbg("\tnodejs_addon: " + line)
  
          params, line = self.parse_func_params(line)
          assert len(params) > 0
  
          assert len(params[0]) == 1
          addon = params[0][0] + Ext.NODEJS_ADDON
          self.graph.add_edge(self.current_file, addon)
          self.graph.add_vertex(addon)
  
          if len(params) > 1:
              sources = params[1]
  
          if len(params) > 2:
              for lib in params[2]:
                  self.graph.add_edge(addon, lib + Ext.SO)
  
          if len(params) > 3:
              for libjs in params[3]:
                  self.graph.add_edge(addon, libjs + Ext.NODEJS_ADDON)
  
          return line
function_tokens: def parse_func_nodejs_addon ( self , line ) : print_dbg ( "\tnodejs_addon: " + line ) params , line = self . parse_func_params ( line ) assert len ( params ) > 0 assert len ( params [ 0 ] ) == 1 addon = params [ 0 ] [ 0 ] + Ext . NODEJS_ADDON self . graph . add_edge ( self . current_file , addon ) self . graph . add_vertex ( addon ) if len ( params ) > 1 : sources = params [ 1 ] if len ( params ) > 2 : for lib in params [ 2 ] : self . graph . add_edge ( addon , lib + Ext . SO ) if len ( params ) > 3 : for libjs in params [ 3 ] : self . graph . add_edge ( addon , libjs + Ext . NODEJS_ADDON ) return line