MCPcopy Create free account
hub / github.com/KDAB/GammaRay / fetchSourceLocationFor

Method fetchSourceLocationFor

plugins/qmlsupport/qmlbindingprovider.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void QmlBindingProvider::fetchSourceLocationFor(BindingNode *node, QQmlBinding *binding)
55{
56 QV4::Function *function = binding->function();
57 if (function) {
58 QQmlSourceLocation loc = function->sourceLocation();
59 node->setSourceLocation(SourceLocation::fromOneBased(QUrl(loc.sourceFile), loc.line, loc.column));
60 }
61}
62
63std::vector<std::unique_ptr<BindingNode>> QmlBindingProvider::findDependenciesFor(BindingNode *node) const
64{

Callers

nothing calls this directly

Calls 3

sourceLocationMethod · 0.80
setSourceLocationMethod · 0.80
QUrlClass · 0.50

Tested by

no test coverage detected