Пример #1
0
 def __repr__(self):
     """ Returns the debug string representation of this statement. """
     parts = [
         colors.green(self.typeName),
         colors.white('keyword:') + colors.cyan(self.keyword)
     ]
     return ' '.join(parts)
Пример #2
0
 def __repr__(self):
     """ Returns the debug string representation of this template. """
     name = colors.white('name:') + colors.cyan(self.name) if self.name else ''
     parts = [colors.green(self.typeName), name]
     if self.type:
         parts.append(colors.white('type:') + colors.cyan(self.type))
     if self.modifiers:
         parts.append(colors.white('modifiers:') + colors.cyan(','.join(self.modifiers)))
     return ' '.join(parts)
Пример #3
0
 def __repr__(self):
     """ Returns the debug string representation of this template. """
     name = colors.white('name:') + colors.cyan(self.name) if self.name else ''
     parts = [colors.green(self.typeName), name]
     if self.type:
         parts.append(colors.white('type:') + colors.cyan(self.type))
     if self.modifiers:
         parts.append(colors.white('modifiers:') + colors.cyan(','.join(self.modifiers)))
     return ' '.join(parts)
Пример #4
0
 def __repr__(self):
     """ Returns the debug string representation of this statement. """
     parts = [colors.green(self.typeName), colors.white('keyword:')+colors.cyan(self.keyword)]
     return ' '.join(parts)