fn visit_break_stmt(&mut self) -> VisitorResult {
        if self.state.last() != Some(&State::Loop) {
            let err_kind = SyntaxErrorKind::BreakOutsideLoop {
                item: crate::error::Item {
                    span: Span::empty(), // FIXME: fix this.
                    content: "".to_string(),
                },
            };
            let err = SyntaxError::new(err_kind);
            Err(err)
        } else {
            Ok(())
        }
    }
/// Verify that the `break` statement is inside of a loop.
Verify that the `break` statement is inside of a loop.
Verify that the ` break ` statement is inside of a loop .
fn visit_break_stmt(&mut self) -> VisitorResult {
        if self.state.last() != Some(&State::Loop) {
            let err_kind = SyntaxErrorKind::BreakOutsideLoop {
                item: crate::error::Item {
                    span: Span::empty(), // FIXME: fix this.
                    content: "".to_string(),
                },
            };
            let err = SyntaxError::new(err_kind);
            Err(err)
        } else {
            Ok(())
        }
    }
fn visit_break_stmt ( & mut self ) -> VisitorResult { if self . state . last ( ) != Some ( & State :: Loop ) { let err_kind = SyntaxErrorKind :: BreakOutsideLoop { item : crate :: error :: Item { span : Span :: empty ( ) , // FIXME: fix this. content : " " . to_string ( ) , } , } ; let err = SyntaxError :: new ( err_kind ) ; Err ( err ) } else { Ok ( ( ) ) } }
Verify that the `break` statement is inside of a loop.
Verify that the ` break ` statement is inside of a loop .
&mut self