mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
refactoring functionCallAnnotation
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user