mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Make type definitions count as an implementation rather than a reference
This commit is contained in:
parent
985da485e2
commit
cf3fac7ee0
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue