Trait fix_getters_utils::collectors::token_stream::TokenStreamGetterCollector [−][src]
pub trait TokenStreamGetterCollector { type GetterCollection: GetterCollection; fn collect(
path: &Path,
scope: &Scope,
stream: &TokenStream,
identification_mode: IdentificationMode,
getter_collection: &Self::GetterCollection
); }
Expand description
A Getter
s collector visting a TokenStream
.
A TokenStream
is provided by syn
when a macro is encountered.
This is also useful to parse documentation, once the different lines of the documentation
and the code it contains is gethered together. Use a DocCodeGetterCollector
for that.
For regular Rust code, it is easier to work on a SyntaxTree
using
a SyntaxTreeGetterCollector
.
Associated Types
type GetterCollection: GetterCollection
[src]
type GetterCollection: GetterCollection
[src]Type for the GetterCollection
used by this TokenStreamGetterCollector
.
Required methods
fn collect(
path: &Path,
scope: &Scope,
stream: &TokenStream,
identification_mode: IdentificationMode,
getter_collection: &Self::GetterCollection
)
[src]
fn collect(
path: &Path,
scope: &Scope,
stream: &TokenStream,
identification_mode: IdentificationMode,
getter_collection: &Self::GetterCollection
)
[src]Parses the TokenStream
collecting Getter
s
in the GetterCollection
.