aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-04-23 00:53:58 +0800
committerLiana Husikyan <liana@ethdev.com>2015-04-27 19:08:32 +0800
commit88536f90e8403239380c280176250390bab2cd8d (patch)
tree7ca4aa77cf9e039c02265ebdaa3d6650680931c8 /Types.h
parent648ce852561a1a28bebf3be1a64480aee560bf7a (diff)
downloaddexon-solidity-88536f90e8403239380c280176250390bab2cd8d.tar.gz
dexon-solidity-88536f90e8403239380c280176250390bab2cd8d.tar.zst
dexon-solidity-88536f90e8403239380c280176250390bab2cd8d.zip
changed the test so constructor will have input parameters
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h44
1 files changed, 28 insertions, 16 deletions
diff --git a/Types.h b/Types.h
index cc9c455f..49dd436d 100644
--- a/Types.h
+++ b/Types.h
@@ -564,24 +564,36 @@ public:
explicit FunctionType(FunctionDefinition const& _function, bool _isInternal = true);
explicit FunctionType(VariableDeclaration const& _varDecl);
explicit FunctionType(EventDefinition const& _event);
- FunctionType(strings const& _parameterTypes, strings const& _returnParameterTypes,
- Location _location = Location::Internal, bool _arbitraryParameters = false):
- FunctionType(parseElementaryTypeVector(_parameterTypes), parseElementaryTypeVector(_returnParameterTypes),
- _location, _arbitraryParameters) {}
FunctionType(
- TypePointers const& _parameterTypes,
- TypePointers const& _returnParameterTypes,
- Location _location = Location::Internal,
- bool _arbitraryParameters = false,
- bool _gasSet = false,
- bool _valueSet = false
+ strings const& _parameterTypes,
+ strings const& _returnParameterTypes,
+ Location _location = Location::Internal,
+ bool _arbitraryParameters = false
+ ): FunctionType(
+ parseElementaryTypeVector(_parameterTypes),
+ parseElementaryTypeVector(_returnParameterTypes),
+ strings(),
+ _location,
+ _arbitraryParameters
+ )
+ {
+ }
+ FunctionType(
+ TypePointers const& _parameterTypes,
+ TypePointers const& _returnParameterTypes,
+ strings _parameterNames = strings(),
+ Location _location = Location::Internal,
+ bool _arbitraryParameters = false,
+ bool _gasSet = false,
+ bool _valueSet = false
):
- m_parameterTypes (_parameterTypes),
- m_returnParameterTypes (_returnParameterTypes),
- m_location (_location),
- m_arbitraryParameters (_arbitraryParameters),
- m_gasSet (_gasSet),
- m_valueSet (_valueSet)
+ m_parameterTypes (_parameterTypes),
+ m_returnParameterTypes (_returnParameterTypes),
+ m_parameterNames (_parameterNames),
+ m_location (_location),
+ m_arbitraryParameters (_arbitraryParameters),
+ m_gasSet (_gasSet),
+ m_valueSet (_valueSet)
{}
TypePointers const& getParameterTypes() const { return m_parameterTypes; }