Lines Matching refs:source_code
156 def extract(cls, source_code, start=0, end=-1): argument
162 for match in enum_pattern.finditer(source_code, start, end):
163 yield EnumDefinition(source_code,
167 def __init__(self, source_code, span=None, group=None): argument
179 self._source = source_code
251 def extract(cls, source_code, start=0, end=-1): argument
255 matches = list(sig_alg_pattern.finditer(source_code, start, end))
257 yield SignatureAlgorithmDefinition(source_code, definitions=matches)
259 def __init__(self, source_code, definitions=None): argument
264 self._source = source_code
310 def extract(cls, source_code, start=0, end=-1): argument
314 matches = list(named_group_pattern.finditer(source_code, start, end))
316 yield NamedGroupDefinition(source_code, definitions=matches)
318 def __init__(self, source_code, definitions=None): argument
323 self._source = source_code
401 source_code = remove_c_comments(f.read())
404 for start, instance in preprocess_c_source_code(source_code,