From 26cfd8d860032b469386f5dfa47237ebb5d8f4e8 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 14 Sep 2023 16:39:44 -0600 Subject: [PATCH] Doc --- src/visit.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/visit.rs b/src/visit.rs index d1a9e7ba..86da9944 100644 --- a/src/visit.rs +++ b/src/visit.rs @@ -116,6 +116,9 @@ fn walk_file( /// `syn` visitor that recursively traverses the syntax tree, accumulating places /// that could be mutated. +/// +/// As it walks the tree, it accumulates within itself a list of mutation opportunities, +/// and other files referenced by `mod` statements that should be visited later. struct DiscoveryVisitor<'o> { /// All the mutants generated by visiting the file. mutants: Vec,