MCPcopy Create free account
hub / github.com/WebAssembly/wabt / GetToken

Method GetToken

src/wast-parser.cc:571–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571Token WastParser::GetToken() {
572 if (tokens_.empty()) {
573 tokens_.push_back(lexer_->GetToken());
574 }
575 return tokens_.front();
576}
577
578Location WastParser::GetLocation() {
579 return GetToken().loc;

Callers 1

PeekMethod · 0.45

Calls 3

frontMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected