| 12 | pKey(nullptr) {} |
| 13 | |
| 14 | void Scanner::SimpleKey::Validate() { |
| 15 | // Note: pIndent will *not* be garbage here; |
| 16 | // we "garbage collect" them so we can |
| 17 | // always refer to them |
| 18 | if (pIndent) |
| 19 | pIndent->status = IndentMarker::VALID; |
| 20 | if (pMapStart) |
| 21 | pMapStart->status = Token::VALID; |
| 22 | if (pKey) |
| 23 | pKey->status = Token::VALID; |
| 24 | } |
| 25 | |
| 26 | void Scanner::SimpleKey::Invalidate() { |
| 27 | if (pIndent) |