Trait fix_getters_utils::collectors::syntax_tree::SyntaxTreeGetterCollector [−][src]
pub trait SyntaxTreeGetterCollector: for<'ast> Visit<'ast> { type GetterCollection: GetterCollection; fn collect(
path: &Path,
syntax_tree: &File,
identification_mode: IdentificationMode,
getter_collection: &Self::GetterCollection
); }
Expand description
A Getter
s collector visting a SyntaxTree
.
A SyntaxTree
is obtained by parsing a code source with syn
.
They contain more syntatical information than a TokenStream
,
however, they imply the syntax is valid. For macros, use a
TokenStreamGetterCollector
and
for documentation code, use a DocCodeGetterCollector
.
Associated Types
type GetterCollection: GetterCollection
[src]
type GetterCollection: GetterCollection
[src]Type for the GetterCollection
used by this SyntaxTreeGetterCollector
.
Required methods
fn collect(
path: &Path,
syntax_tree: &File,
identification_mode: IdentificationMode,
getter_collection: &Self::GetterCollection
)
[src]
fn collect(
path: &Path,
syntax_tree: &File,
identification_mode: IdentificationMode,
getter_collection: &Self::GetterCollection
)
[src]Visits the syntax_tree
collecting Getter
s
in the GetterCollection
.