Skip to content

Commit

Permalink
Change association of symbol references
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Oct 14, 2024
1 parent e777b99 commit f4ed0b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/orchestrator/populator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ pub fn populate_codebase(
}
}

for (_, constant) in storage.constants.iter_mut() {
for (constant_name, constant) in storage.constants.iter_mut() {
if let Some(provided_type) = constant.provided_type.as_mut() {
populate_union_type(
provided_type,
&codebase.symbols,
&ReferenceSource::Symbol(true, *name),
&ReferenceSource::ClasslikeMember(true, *name, *constant_name),
symbol_references,
userland_force_repopulation,
);
Expand All @@ -117,20 +117,20 @@ pub fn populate_codebase(
populate_atomic_type(
inferred_type,
&codebase.symbols,
&ReferenceSource::Symbol(true, *name),
&ReferenceSource::ClasslikeMember(true, *name, *constant_name),
symbol_references,
userland_force_repopulation,
);
}
}

for (_, type_constant_info) in storage.type_constants.iter_mut() {
for (constant_name, type_constant_info) in storage.type_constants.iter_mut() {
match type_constant_info {
ClassConstantType::Concrete(type_) | ClassConstantType::Abstract(Some(type_)) => {
populate_union_type(
type_,
&codebase.symbols,
&ReferenceSource::Symbol(true, *name),
&ReferenceSource::ClasslikeMember(true, *name, *constant_name),
symbol_references,
userland_force_repopulation,
);
Expand Down

0 comments on commit f4ed0b0

Please sign in to comment.