Skip to main content

generated_files

Function generated_files 

Source
pub fn generated_files(doc: &PlanDocument) -> HashSet<&str>
Expand description

The paths doc marks generated, prepared once for class_is_generated.

Passed in rather than found per hunk: the test above asks about every member of every class, and it used to answer each one by scanning doc.files for the path. That is O(classes x members x files) for a question with O(files) worth of input, on the two paths — the grouping stage and dfr agent — that ask it about a whole document at once. Both already built a path index and neither could hand it over.