MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / getIntValue

Method getIntValue

erpcgen/src/Token.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79uint64_t Token::getIntValue() const
80{
81 const IntegerValue *s;
82 if (m_value && (s = dynamic_cast<const IntegerValue *>(m_value.get())))
83 {
84 return s->getValue();
85 }
86 else
87 {
88 throw internal_error(format_string("unexpected token type %s on line %d", this->getTokenName(),
89 this->getLocation().m_firstLine));
90 }
91}
92
93bool Token::isBinaryOp() const
94{

Callers 1

getIntExprValueMethod · 0.80

Calls 5

getTokenNameMethod · 0.95
internal_errorClass · 0.85
format_stringFunction · 0.85
getMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected