struct StateEndBlockComment {}
Expand description
Represents possibly being at the end of a block comment.
Transitions to the following states for the seen input:
-
/
- go to CurrentState::NormalText (found end of block comment) -
{ANY}
- go to CurrentState::BlockComment (still in block comment) -
StateChar::Eof
- go to CurrentState::Done (no more input)
Implementations§
source§impl StateEndBlockComment
impl StateEndBlockComment
sourcepub fn new() -> Box<dyn IStateBehavior>
pub fn new() -> Box<dyn IStateBehavior>
Constructor
Returns
Returns a new instance of the StateEndBlockComment struct as represented by the IStateBehavior trait.
Trait Implementations§
source§impl IStateBehavior for StateEndBlockComment
impl IStateBehavior for StateEndBlockComment
source§fn go_next(&mut self, context: &mut dyn IStateContext) -> CurrentState
fn go_next(&mut self, context: &mut dyn IStateContext) -> CurrentState
Process the next character from the context, returning the next
state the context should move to. Read more