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

Method visit

plugins/qmljs/duchain/declarationbuilder.cpp:214–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214bool 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
230bool DeclarationBuilder::visit(QmlJS::AST::FunctionExpression* node)
231{

Callers

nothing calls this directly

Calls 15

emptyRangeOnLineFunction · 0.85
setCommentFunction · 0.85
getInternalContextFunction · 0.85
getOwnerOfContextFunction · 0.85
topContextFunction · 0.85
importObjectContextFunction · 0.85
getNodeValueFunction · 0.85
importModuleFunction · 0.85
getQMLAttributeFunction · 0.85
locationToRangeMethod · 0.80
locationsToRangeMethod · 0.80

Tested by

no test coverage detected