* Literals */
| 48 | * Literals |
| 49 | */ |
| 50 | bool 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 | |
| 62 | bool ExpressionVisitor::visit(QmlJS::AST::StringLiteral*) |
| 63 | { |
nothing calls this directly
no test coverage detected