MCPcopy Create free account
hub / github.com/KDE/kdevelop / valueToAssign

Method valueToAssign

plugins/qmljs/nodejsmodules/jsgenerator.py:74–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 Member.print(self)
73
74 def valueToAssign(self):
75 # Define the function
76 return 'function %s(%s) { return %s; }' % (
77 self.name(),
78 ', '.join([arg[0] for arg in self._args]),
79 self._return_value
80 )
81
82 def valueAfterAssignation(self):
83 # Call it, so that its parameters have the correct type

Callers 1

printMethod · 0.95

Calls 2

joinMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected