Lines Matching refs:self
157 def __init__(self, source_code, span=None, group=None): argument
166 self._prototype = suffix_name if suffix_name else 'enum ' + prefix_name
167 self._name = suffix_name if suffix_name else prefix_name
168 self._body = body
169 self._source = source_code
170 self._span = span
172 def __repr__(self): argument
173 return 'Enum({},{})'.format(self._name, self._span)
175 def __str__(self): argument
176 return repr(self)
178 def span(self): argument
179 return self._span
181 def generate_translation_function(self): argument
187 for line in self._body.splitlines():
217 name=self._name,
218 prototype=self._prototype)
243 def __init__(self, source_code, definitions=None): argument
247 self._definitions = definitions
248 self._source = source_code
250 def __repr__(self): argument
251 return 'SigAlgs({})'.format(self._definitions[0].span())
253 def span(self): argument
254 return self._definitions[0].span()
256 def __str__(self): argument
261 for m in self._definitions:
302 def __init__(self, source_code, definitions=None): argument
306 self._definitions = definitions
307 self._source = source_code
309 def __repr__(self): argument
310 return 'NamedGroup({})'.format(self._definitions[0].span())
312 def span(self): argument
313 return self._definitions[0].span()
315 def __str__(self): argument
320 for m in self._definitions: