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

Function PeekLoc

Source/SpireCore/Preprocessor.cpp:365–368  ·  view source on GitHub ↗

Get the location of the current (raw) token

Source from the content-addressed store, hash-verified

363
364// Get the location of the current (raw) token
365static CodePosition PeekLoc(Preprocessor* preprocessor)
366{
367 return PeekRawToken(preprocessor).Position;
368}
369
370// Get the `TokenType` of the current (raw) token
371static CoreLib::Text::TokenType PeekRawTokenType(Preprocessor* preprocessor)

Callers 6

MaybeBeginMacroExpansionFunction · 0.85
ExpectRawFunction · 0.85
ExpectFunction · 0.85
HandleLineDirectiveFunction · 0.85
HandleDirectiveFunction · 0.85

Calls 1

PeekRawTokenFunction · 0.85

Tested by

no test coverage detected