File indexing completed on 2024-04-21 15:24:07

0001 /*
0002     SPDX-FileCopyrightText: 2006-2008 Hamish Rodda <rodda@kde.org>
0003     SPDX-FileCopyrightText: 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
0004     SPDX-FileCopyrightText: 2008 Niko Sams <niko.sams@gmail.com>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #include "worker.h"
0010 
0011 #include <KTextEditor/View>
0012 #include <KTextEditor/Document>
0013 
0014 #include <language/duchain/declaration.h>
0015 #include <language/duchain/ducontext.h>
0016 #include <language/duchain/duchainlock.h>
0017 #include <language/duchain/duchainbase.h>
0018 #include <language/duchain/duchainutils.h>
0019 #include <language/duchain/duchain.h>
0020 
0021 #include "model.h"
0022 #include "completiondebug.h"
0023 
0024 using namespace KDevelop;
0025 
0026 namespace Php
0027 {
0028 
0029 CodeCompletionWorker::CodeCompletionWorker(CodeCompletionModel* parent)
0030         : KDevelop::CodeCompletionWorker(parent)
0031 {
0032 }
0033 
0034 KDevelop::CodeCompletionContext* CodeCompletionWorker::createCompletionContext(const KDevelop::DUContextPointer& context, const QString &contextText, const QString &followingText, const KDevelop::CursorInRevision& position) const
0035 {
0036     return new CodeCompletionContext(context, contextText, followingText, position);
0037 }
0038 
0039 }
0040 
0041 #include "moc_worker.cpp"