(&mut self)
| 243 | } |
| 244 | |
| 245 | fn continue_statement(&mut self) -> Option<Stmt<'gc>> { |
| 246 | if self.loop_depth == 0 { |
| 247 | self.error("Can't use 'continue' outside of a loop."); |
| 248 | return None; |
| 249 | } |
| 250 | |
| 251 | self.consume(TokenType::Semicolon, "Expect ';' after 'continue'."); |
| 252 | Some(Stmt::Continue { |
| 253 | line: self.previous.line, |
| 254 | }) |
| 255 | } |
| 256 | |
| 257 | fn agent_declaration(&mut self, visibility: Visibility) -> Option<Stmt<'gc>> { |
| 258 | self.consume(TokenType::Identifier, "Expect agent name."); |