aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-17 05:49:45 +0800
committerChristian <c@ethdev.com>2014-10-17 18:37:51 +0800
commita7f9815c0f68a7cb9571193ded851fbedb418422 (patch)
tree09adba8ef0aa273f5a84251ed53662b7d7fe3972 /Types.h
parent8a506b505f4725e8a76bbad8399562099e4510c3 (diff)
downloaddexon-solidity-a7f9815c0f68a7cb9571193ded851fbedb418422.tar.gz
dexon-solidity-a7f9815c0f68a7cb9571193ded851fbedb418422.tar.zst
dexon-solidity-a7f9815c0f68a7cb9571193ded851fbedb418422.zip
Coding style and cleanup
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/Types.h b/Types.h
index aed8a7e7..d9455a50 100644
--- a/Types.h
+++ b/Types.h
@@ -48,7 +48,7 @@ using ptr = std::shared_ptr<T>;
// @todo realMxN, string<N>, mapping
-class Type : private boost::noncopyable
+class Type: private boost::noncopyable
{
public:
enum class Category
@@ -73,7 +73,7 @@ public:
virtual bool acceptsUnaryOperator(Token::Value) const { return false; }
};
-class IntegerType : public Type
+class IntegerType: public Type
{
public:
enum class Modifier
@@ -100,7 +100,7 @@ private:
Modifier m_modifier;
};
-class BoolType : public Type
+class BoolType: public Type
{
public:
virtual Category getCategory() const { return Category::BOOL; }
@@ -119,21 +119,21 @@ public:
}
};
-class ContractType : public Type
+class ContractType: public Type
{
public:
virtual Category getCategory() const { return Category::CONTRACT; }
- ContractType(ContractDefinition const& _contract) : m_contract(_contract) {}
+ ContractType(ContractDefinition const& _contract): m_contract(_contract) {}
virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const;
private:
ContractDefinition const& m_contract;
};
-class StructType : public Type
+class StructType: public Type
{
public:
virtual Category getCategory() const { return Category::STRUCT; }
- StructType(StructDefinition const& _struct) : m_struct(_struct) {}
+ StructType(StructDefinition const& _struct): m_struct(_struct) {}
virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const;
virtual bool acceptsUnaryOperator(Token::Value _operator) const override
{
@@ -143,18 +143,18 @@ private:
StructDefinition const& m_struct;
};
-class FunctionType : public Type
+class FunctionType: public Type
{
public:
virtual Category getCategory() const { return Category::FUNCTION; }
- FunctionType(FunctionDefinition const& _function) : m_function(_function) {}
+ FunctionType(FunctionDefinition const& _function): m_function(_function) {}
FunctionDefinition const& getFunction() const { return m_function; }
private:
FunctionDefinition const& m_function;
};
-class MappingType : public Type
+class MappingType: public Type
{
public:
virtual Category getCategory() const { return Category::MAPPING; }
@@ -164,18 +164,18 @@ private:
};
//@todo should be changed into "empty anonymous struct"
-class VoidType : public Type
+class VoidType: public Type
{
public:
virtual Category getCategory() const { return Category::VOID; }
VoidType() {}
};
-class TypeType : public Type
+class TypeType: public Type
{
public:
virtual Category getCategory() const { return Category::TYPE; }
- TypeType(ptr<Type> const& _actualType) : m_actualType(_actualType) {}
+ TypeType(ptr<Type> const& _actualType): m_actualType(_actualType) {}
ptr<Type> const& getActualType() { return m_actualType; }
private: