Warning, file /kdevelop/kdev-python/duchain/declarations/functiondeclaration.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2011 Sven Brauch <svenbrauch@googlemail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "functiondeclaration.h"
0008 #include <language/duchain/duchainregister.h>
0009 
0010 namespace Python {
0011 
0012 REGISTER_DUCHAIN_ITEM(FunctionDeclaration);
0013 
0014 FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration& rhs)
0015         : KDevelop::FunctionDeclaration(*new FunctionDeclarationData(*rhs.d_func()))
0016 {
0017 }
0018 
0019 FunctionDeclaration::FunctionDeclaration(const KDevelop::RangeInRevision& range, KDevelop::DUContext* context)
0020         : KDevelop::FunctionDeclaration(*new FunctionDeclarationData, range)
0021 {
0022     d_func_dynamic()->setClassId(this);
0023     if (context) {
0024         setContext(context);
0025     }
0026 }
0027 
0028 FunctionDeclaration::FunctionDeclaration(FunctionDeclarationData& data)
0029         : KDevelop::FunctionDeclaration(data)
0030 {
0031 }
0032 
0033 FunctionDeclaration::FunctionDeclaration(FunctionDeclarationData& data, const KDevelop::RangeInRevision& range, KDevelop::DUContext* context)
0034         : KDevelop::FunctionDeclaration(data, range)
0035 {
0036     if (context) {
0037         setContext(context);
0038     }
0039 }
0040 
0041 FunctionDeclaration::~FunctionDeclaration()
0042 {
0043 }
0044 
0045 }