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

Method initialize

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

Source from the content-addressed store, hash-verified

38}
39
40void NodeJS::initialize(DeclarationBuilder* builder)
41{
42 QMutexLocker lock(&m_mutex);
43
44 // Create "module", a structure that may contain "exports" if the module
45 // refers to module.exports
46 createObject(QStringLiteral("module"), 1, builder);
47
48 // Create "exports", that can also contain the exported symbols of the module
49 createObject(QStringLiteral("exports"), 2, builder);
50}
51
52void NodeJS::createObject(const QString& name, int index, DeclarationBuilder* builder)
53{

Callers 5

RebaseDialogMethod · 0.45
BenchCodeCompletionMethod · 0.45
startVisitingMethod · 0.45
initTestCaseMethod · 0.45
initTestCaseMethod · 0.45

Calls

no outgoing calls

Tested by 3

BenchCodeCompletionMethod · 0.36
initTestCaseMethod · 0.36
initTestCaseMethod · 0.36