MCPcopy Create free account
hub / github.com/KDE/kdevelop / visit

Method visit

plugins/qmljs/duchain/expressionvisitor.cpp:50–60  ·  view source on GitHub ↗

* Literals */

Source from the content-addressed store, hash-verified

48 * Literals
49 */
50bool ExpressionVisitor::visit(QmlJS::AST::NumericLiteral* node)
51{
52 int num_int_digits = (int)std::log10(node->value) + 1;
53
54 encounter(
55 num_int_digits == (int)node->literalToken.length ?
56 IntegralType::TypeInt :
57 IntegralType::TypeDouble
58 );
59 return false;
60}
61
62bool ExpressionVisitor::visit(QmlJS::AST::StringLiteral*)
63{

Callers

nothing calls this directly

Calls 12

lastDeclarationFunction · 0.85
getOwnerOfContextFunction · 0.85
getInternalContextFunction · 0.85
moduleExportsMethod · 0.80
acceptMethod · 0.45
toStringMethod · 0.45
typeMethod · 0.45
parentContextMethod · 0.45
abstractTypeMethod · 0.45
urlMethod · 0.45
topContextMethod · 0.45
returnTypeMethod · 0.45

Tested by

no test coverage detected