Skip to content

Commit

Permalink
refactor: clarify naming
Browse files Browse the repository at this point in the history
  • Loading branch information
abroooo committed Jan 31, 2025
1 parent 50a25f7 commit 3386fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions compiler/plc_driver/src/pipelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,8 +795,9 @@ impl AnnotatedProject {
}

// TODO: Find better way, this is hella expensive
pub fn redo(self, mut id_provider: IdProvider) -> AnnotatedProject {
//Create and call the annotator
pub fn re_annotate(self, mut id_provider: IdProvider) -> AnnotatedProject {
// TODO: this almost duplicates IndexedProject::annotate(). Can we do this differently?
// Create and call the annotator again after lowering property references to calls
let mut annotated_units = Vec::new();
let mut all_annotations = AnnotationMapImpl::default();
let result = self
Expand Down
2 changes: 1 addition & 1 deletion compiler/plc_driver/src/pipelines/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ impl PipelineParticipantMut for PropertyLowerer {
}

let project = AnnotatedProject { units, index, annotations: self.annotations.take().unwrap() };
project.redo(self.id_provider.clone())
project.re_annotate(self.id_provider.clone())
}
}

0 comments on commit 3386fe4

Please sign in to comment.