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

Method getEndLineColumn

src/Utils/ParseUtils.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42ParseUtils::LineColumn ParseUtils::getEndLineColumn(antlr4::Token* token) {
43 const uint32_t lineNb = static_cast<uint32_t>(token->getLine());
44 const uint16_t columnNb = static_cast<uint16_t>(
45 token->getCharPositionInLine() + token->getStopIndex() -
46 token->getStartIndex() + 1 + 1);
47 return std::make_pair(lineNb, columnNb);
48}
49
50ParseUtils::LineColumn ParseUtils::getLineColumn(
51 antlr4::tree::TerminalNode* node) {

Callers

nothing calls this directly

Calls 1

getSymbolMethod · 0.45

Tested by

no test coverage detected