Changeset View
Changeset View
Standalone View
Standalone View
completion/implementationitem.cpp
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Line(s) | 217 | if (!modifiers.contains(QStringLiteral("function"))) { | |||
---|---|---|---|---|---|
218 | replText += QLatin1String("function "); | 218 | replText += QLatin1String("function "); | ||
219 | } | 219 | } | ||
220 | 220 | | |||
221 | replText += functionName; | 221 | replText += functionName; | ||
222 | 222 | | |||
223 | { | 223 | { | ||
224 | // get argument list | 224 | // get argument list | ||
225 | QString arguments; | 225 | QString arguments; | ||
226 | createArgumentList(*this, arguments, 0, true); | 226 | createArgumentList(*this, arguments, nullptr, true); | ||
227 | replText += arguments; | 227 | replText += arguments; | ||
228 | } | 228 | } | ||
229 | 229 | | |||
230 | QString arguments; | 230 | QString arguments; | ||
231 | QVector<Declaration*> parameters; | 231 | QVector<Declaration*> parameters; | ||
232 | if (DUChainUtils::getArgumentContext(m_declaration.data())) | 232 | if (DUChainUtils::getArgumentContext(m_declaration.data())) | ||
233 | parameters = DUChainUtils::getArgumentContext(m_declaration.data())->localDeclarations(); | 233 | parameters = DUChainUtils::getArgumentContext(m_declaration.data())->localDeclarations(); | ||
234 | arguments = '('; | 234 | arguments = '('; | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |