MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / synchronize

Method synchronize

aiscript-lexer/src/lib.rs:911–924  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

909 }
910
911 pub fn synchronize(&mut self) {
912 self.panic_mode = false;
913
914 while !self.is_at_end() {
915 if self.previous.kind == TokenType::Semicolon {
916 return;
917 }
918
919 if self.current.is_synchronize_keyword() {
920 return;
921 }
922 self.advance();
923 }
924 }
925}

Callers 1

declarationMethod · 0.80

Calls 3

is_at_endMethod · 0.80
advanceMethod · 0.80

Tested by

no test coverage detected