Lines Matching refs:cls
35 def is_target(cls, raw):
42 def from_raw(cls, raw, **extra):
43 if isinstance(raw, cls):
47 #return cls(raw.item, raw.typedecl, **raw._extra, **extra)
50 elif cls.is_target(raw):
51 return cls(raw, **extra)
56 def from_resolved(cls, item, resolved, **extra):
58 return cls(item, typedecl=resolved, **extra)
60 typedeps, extra = cls._parse_raw_resolved(item, resolved, extra)
66 return cls(item, typedeps, **extra or {})
69 def _parse_raw_resolved(cls, item, resolved, extra_extra):
276 def build_item(cls, info, resolved=None, **extra):
278 return cls._item_class.from_raw(info, **extra)
280 return cls._item_class.from_resolved(info, resolved, **extra)
283 def from_results(cls, results):
284 self = cls()