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

Method moduleMember

plugins/qmljs/duchain/frameworks/nodejs.cpp:109–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109DeclarationPointer NodeJS::moduleMember(const QString& moduleName,
110 const QString& memberName,
111 const IndexedString& url)
112{
113 DeclarationPointer module = moduleExports(moduleName, url);
114 DeclarationPointer member;
115
116 if (module) {
117 member = QmlJS::getDeclaration(
118 QualifiedIdentifier(memberName),
119 QmlJS::getInternalContext(module),
120 false
121 );
122 }
123
124 return member;
125}
126
127Path::List NodeJS::moduleDirectories(const QString& url)
128{

Callers 3

typeFromClassNameMethod · 0.80
getInternalContextFunction · 0.80
importObjectContextFunction · 0.80

Calls 3

getDeclarationFunction · 0.85
getInternalContextFunction · 0.85
QualifiedIdentifierClass · 0.50

Tested by

no test coverage detected