Introduce FunctionKind::Declaration and allow accessing function signatures via contract name.

This commit is contained in:
Daniel Kirchner
2020-01-09 15:40:41 +01:00
parent 17158995b5
commit 9535c0f520
18 changed files with 202 additions and 34 deletions
+2 -2
View File
@@ -120,8 +120,8 @@ public:
return _type;
}
/// @returns the internally-facing or externally-facing type of a function.
static FunctionType const* function(FunctionDefinition const& _function, bool _isInternal = true);
/// @returns the internally-facing or externally-facing type of a function or the type of a function declaration.
static FunctionType const* function(FunctionDefinition const& _function, FunctionType::Kind _kind = FunctionType::Kind::Declaration);
/// @returns the accessor function type of a state variable.
static FunctionType const* function(VariableDeclaration const& _varDecl);