File indexing completed on 2024-05-19 04:42:00

0001 /*
0002     SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #include "functiontype.h"
0008 
0009 #include <language/duchain/types/typeregister.h>
0010 #include <language/util/kdevhash.h>
0011 
0012 namespace QmlJS {
0013 
0014 FunctionType::FunctionType()
0015 : FunctionTypeBase(createData<FunctionType>())
0016 {
0017 }
0018 
0019 FunctionType::FunctionType(const FunctionType& rhs)
0020 : FunctionTypeBase(copyData<FunctionType>(*static_cast<const Data*>(rhs.d_func())))
0021 {
0022 }
0023 
0024 FunctionType::FunctionType(Data& data)
0025 : FunctionTypeBase(data)
0026 {
0027 }
0028 
0029 FunctionType::~FunctionType()
0030 {
0031 }
0032 
0033 KDevelop::AbstractType* FunctionType::clone() const
0034 {
0035     return new FunctionType(*this);
0036 }
0037 
0038 uint FunctionType::hash() const
0039 {
0040     return KDevHash(KDevelop::FunctionType::hash()) << KDevelop::IdentifiedType::hash();
0041 }
0042 
0043 QString FunctionType::toString() const
0044 {
0045     return KDevelop::FunctionType::toString();
0046 }
0047 
0048 }