Exemple #1
0
 def to_string(self):
     return '%s(condition=%s, body_if_true=%s, body_if_false=%s)' % (
         self.__class__.__name__, self.condition.to_string(),
         self.body_if_true.to_string(),
         nullable_to_string(self.body_if_false))
Exemple #2
0
 def to_string(self):
     return '%s(exp=%s, next=%s)' % (self.__class__.__name__,
                                     self.expression.to_string(),
                                     nullable_to_string(self.next))
Exemple #3
0
 def to_string(self):
     return '%s(name=%s, next=%s, declaration=%s)' % (
         self.__class__.__name__, self.name, nullable_to_string(
             self.next), nullable_to_string(self.declaration))
Exemple #4
0
 def to_string(self):
     return '%s(name=%s, parameters=%s, return_type=%s)' % (
         self.__class__.__name__, self.name, list_to_string(
             self.parameters), nullable_to_string(self.return_type))
Exemple #5
0
 def to_string(self):
     return '%s(name=%s, type=%s)' % (self.__class__.__name__, self.name,
                                      nullable_to_string(self.type))
Exemple #6
0
 def to_string(self):
     return '%s(name=%s, type=%s, expression=%s)' % (
         self.__class__.__name__, self.name, nullable_to_string(
             self.type), self.expression.to_string())