Beispiel #1
0
def getVariableCodeName(in_context, variable):
    if in_context:
        # Closure case:
        return "closure_" + Utils.encodeNonAscii(variable.getName())
    elif variable.isParameterVariable():
        return "par_" + Utils.encodeNonAscii(variable.getName())
    elif variable.isTempVariable():
        return "tmp_" + Utils.encodeNonAscii(variable.getName())
    else:
        return "var_" + Utils.encodeNonAscii(variable.getName())
Beispiel #2
0
 def getCodeName(self):
     return "par_" + Utils.encodeNonAscii(self.getName())
Beispiel #3
0
 def getCodeName(self):
     return "par_" + Utils.encodeNonAscii( self.getName() )
Beispiel #4
0
 def getCodeName(self):
     return "closure_%s" % Utils.encodeNonAscii(self.getName())
Beispiel #5
0
 def getCodeName(self):
     return "closure_%s" % Utils.encodeNonAscii( self.getName() )