|
|
@ -33,23 +33,20 @@ namespace mix |
|
|
|
|
|
|
|
QVariableDeclaration::QVariableDeclaration(QObject* _parent, ASTPointer<VariableDeclaration> const _v): |
|
|
|
QBasicNodeDefinition(_parent, _v.get()), |
|
|
|
m_type(new QSolidityType(this, CodeModel::nodeType(_v->getType().get()))) |
|
|
|
m_type(new QSolidityType(this, CodeModel::nodeType(_v->getType().get()))), m_isIndexed(_v->isIndexed()) |
|
|
|
{ |
|
|
|
m_isIndexed = _v->isIndexed(); |
|
|
|
} |
|
|
|
|
|
|
|
QVariableDeclaration::QVariableDeclaration(QObject* _parent, std::string const& _name, SolidityType const& _type, bool _isIndexed): |
|
|
|
QBasicNodeDefinition(_parent, _name), |
|
|
|
m_type(new QSolidityType(_parent, _type)) |
|
|
|
m_type(new QSolidityType(_parent, _type)), m_isIndexed(_isIndexed) |
|
|
|
{ |
|
|
|
m_isIndexed = _isIndexed; |
|
|
|
} |
|
|
|
|
|
|
|
QVariableDeclaration::QVariableDeclaration(QObject* _parent, std::string const& _name, solidity::Type const* _type, bool _isIndexed): |
|
|
|
QBasicNodeDefinition(_parent, _name), |
|
|
|
m_type(new QSolidityType(this, CodeModel::nodeType(_type))) |
|
|
|
m_type(new QSolidityType(this, CodeModel::nodeType(_type))), m_isIndexed(_isIndexed) |
|
|
|
{ |
|
|
|
m_isIndexed = _isIndexed; |
|
|
|
} |
|
|
|
|
|
|
|
QSolidityType::QSolidityType(QObject* _parent, SolidityType const& _type): |
|
|
|