MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / getLineColumn

Method getLineColumn

src/Utils/ParseUtils.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace SURELOG {
34
35ParseUtils::LineColumn ParseUtils::getLineColumn(antlr4::Token* token) {
36 const uint32_t lineNb = static_cast<uint32_t>(token->getLine());
37 const uint16_t columnNb =
38 static_cast<uint16_t>(token->getCharPositionInLine() + 1);
39 return std::make_pair(lineNb, columnNb);
40}
41
42ParseUtils::LineColumn ParseUtils::getEndLineColumn(antlr4::Token* token) {
43 const uint32_t lineNb = static_cast<uint32_t>(token->getLine());

Callers

nothing calls this directly

Calls 1

getSymbolMethod · 0.45

Tested by

no test coverage detected