Make type definitions count as an implementation rather than a reference

This commit is contained in:
Tad Hardesty 2020-09-07 10:56:26 -07:00
parent 985da485e2
commit cf3fac7ee0

View file

@ -27,8 +27,8 @@ impl ReferencesTable {
// Insert the "definition" locations for the types and such
objtree.root().recurse(&mut |ty| {
tab.uses.insert(ty.id, References {
references: vec![ty.location],
implementations: vec![],
references: vec![],
implementations: vec![ty.location],
});
for (name, var) in ty.vars.iter() {
if let Some(decl) = ty.get_var_declaration(name) {