MCPcopy Create free account
hub / github.com/csyonghe/Spire / TryRecoverBefore

Function TryRecoverBefore

Source/SpireCore/Parser.cpp:378–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 }
377
378 static bool TryRecoverBefore(
379 Parser* parser,
380 CoreLib::Text::TokenType before0)
381 {
382 CoreLib::Text::TokenType recoverBefore[] = { before0 };
383 return TryRecover(parser, recoverBefore, 1, nullptr, 0);
384 }
385
386 // Default recovery strategy, to use inside `{}`-delimeted blocks.
387 static bool TryRecover(

Callers 2

ReadTokenMethod · 0.85
AdvanceIfMatchFunction · 0.85

Calls 1

TryRecoverFunction · 0.85

Tested by

no test coverage detected