aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTAnnotations.h
diff options
context:
space:
mode:
authordjudjuu <julfaber@gmail.com>2017-05-19 21:45:01 +0800
committerdjudjuu <julfaber@gmail.com>2017-05-19 21:48:07 +0800
commit1d22233a43453a21d9fde6e4ba91e26d651045bd (patch)
treece28a2c414b76cd074ae7b6eb15fb8484d92828a /libsolidity/ast/ASTAnnotations.h
parent6316a76ab915e03e02825ce391d3812098c6b682 (diff)
downloaddexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.tar
dexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.tar.gz
dexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.tar.bz2
dexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.tar.lz
dexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.tar.xz
dexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.tar.zst
dexon-solidity-1d22233a43453a21d9fde6e4ba91e26d651045bd.zip
refactoring functionCallAnnotation
Diffstat (limited to 'libsolidity/ast/ASTAnnotations.h')
-rw-r--r--libsolidity/ast/ASTAnnotations.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h
index a7d89248..45a6dd1a 100644
--- a/libsolidity/ast/ASTAnnotations.h
+++ b/libsolidity/ast/ASTAnnotations.h
@@ -200,12 +200,17 @@ struct BinaryOperationAnnotation: ExpressionAnnotation
TypePointer commonType;
};
+enum class FunctionCallKind
+{
+ Unset,
+ FunctionCall,
+ TypeConversion,
+ StructConstructorCall
+};
+
struct FunctionCallAnnotation: ExpressionAnnotation
{
- /// Whether this is an explicit type conversion.
- bool isTypeConversion = false;
- /// Whether this is a struct constructor call.
- bool isStructConstructorCall = false;
+ FunctionCallKind kind = FunctionCallKind::Unset;
};
}