BaseType::BaseType (HirId ref, HirId ty_ref, TypeKind kind, RustIdent ident,
std::set<HirId> refs)
: TypeBoundsMappings ({}), kind (kind), ref (ref), ty_ref (ty_ref),
- combined (refs), ident (ident), mappings (Analysis::Mappings::get ())
+ orig_ref (ref), combined (refs), ident (ident),
+ mappings (Analysis::Mappings::get ())
{}
BaseType::BaseType (HirId ref, HirId ty_ref, TypeKind kind, RustIdent ident,
std::vector<TypeBoundPredicate> specified_bounds,
std::set<HirId> refs)
: TypeBoundsMappings (specified_bounds), kind (kind), ref (ref),
- ty_ref (ty_ref), combined (refs), ident (ident),
+ ty_ref (ty_ref), orig_ref (ref), combined (refs), ident (ident),
mappings (Analysis::Mappings::get ())
{}
{
ty_ref = id;
}
+HirId
+BaseType::get_orig_ref () const
+{
+ return orig_ref;
+}
bool
BaseType::is_equal (const BaseType &other) const
HirId get_ty_ref () const;
void set_ty_ref (HirId id);
+ HirId get_orig_ref () const;
+
virtual void accept_vis (TyVisitor &vis) = 0;
virtual void accept_vis (TyConstVisitor &vis) const = 0;
TypeKind kind;
HirId ref;
HirId ty_ref;
+ const HirId orig_ref;
std::set<HirId> combined;
RustIdent ident;