| 212 | } |
| 213 | |
| 214 | bool DeclarationBuilder::visit(QmlJS::AST::FunctionDeclaration* node) |
| 215 | { |
| 216 | declareFunction<QmlJS::FunctionDeclaration>( |
| 217 | node, |
| 218 | true, // A function declaration always has its own prototype context |
| 219 | Identifier(node->name.toString()), |
| 220 | m_session->locationToRange(node->identifierToken), |
| 221 | node->formals, |
| 222 | m_session->locationsToRange(node->lparenToken, node->rparenToken), |
| 223 | node->body, |
| 224 | m_session->locationsToRange(node->lbraceToken, node->rbraceToken) |
| 225 | ); |
| 226 | |
| 227 | return false; |
| 228 | } |
| 229 | |
| 230 | bool DeclarationBuilder::visit(QmlJS::AST::FunctionExpression* node) |
| 231 | { |
nothing calls this directly
no test coverage detected