Struct python_ast::preprocessor::blockscope::BlockScopePreprocessor [] [src]

pub struct BlockScopePreprocessor {
    log: Logger,
}

Preprocessor to splice BlockStart and BlockEnd tokens based on indent deltas into the slice of tokens so we do not have to keep the state in the main parser logic.

Fields

Methods

impl BlockScopePreprocessor
[src]

NAME: &'static str = "BlockScopePreprocessor"

Determine the length of the first indent as the longest consecutive span of space tokens after a newline before a non space is reached where the the length of the span must be greater than 0.

Given the length of the current span of whitespace, the size of the first discovered indent, and the current index in the indent stack.

Trait Implementations

impl Debug for BlockScopePreprocessor
[src]

Formats the value using the given formatter.

impl Clone for BlockScopePreprocessor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Preprocessor<'a> for BlockScopePreprocessor
[src]