MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / ParseInt

Method ParseInt

Source/Test/Device/Generator/Source/Parser.cpp:513–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513bool Parser::ParseInt(Parser::Context &context, int64_t* out) {
514 if (context.Tok().type != TokenType::Int) {
515 context.Error("Expected integer");
516 return false;
517 }
518
519 *out = context.Next().int64;
520 return true;
521}
522
523bool Parser::ParseResourceType(Parser::Context &context, ResourceType *out) {
524 // Parse type

Callers

nothing calls this directly

Calls 3

TokMethod · 0.80
ErrorMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected