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 Getters 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

Required methods

fn collect(
    path: &Path,
    syntax_tree: &File,
    identification_mode: IdentificationMode,
    getter_collection: &Self::GetterCollection
)
[src]

Visits the syntax_tree collecting Getters in the GetterCollection.

Implementors