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

Method print

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

Source from the content-addressed store, hash-verified

96 self._type = type
97
98 def print(self):
99 if self.name() != '':
100 # This variable is not a member, declare it using 'var'
101 print('var %s = %s;' % (self.name(), self.valueToAssign()))
102 else:
103 Member.print(self)
104
105 def valueToAssign(self):
106 return self._type

Callers

nothing calls this directly

Calls 3

valueToAssignMethod · 0.95
nameMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected