Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
571
Token WastParser::GetToken() {
572
if (tokens_.empty()) {
573
tokens_.push_back(lexer_->GetToken());
574
}
575
return tokens_.front();
576
}
577
578
Location WastParser::GetLocation() {
579
return GetToken().loc;
Callers
1
Peek
Method · 0.45
Calls
3
front
Method · 0.80
empty
Method · 0.45
push_back
Method · 0.45
Tested by
no test coverage detected