Make CallableDeclaration::annotation pure virtual

This commit is contained in:
Jason Cobb 2020-01-07 08:34:20 -05:00
parent dc6c19cafa
commit dc380f017f
No known key found for this signature in database
GPG Key ID: 2A3F6A6DCA1E8DED
2 changed files with 1 additions and 7 deletions

View File

@ -300,12 +300,6 @@ ContractKind FunctionDefinition::inContractKind() const
return contractDef->contractKind();
}
CallableDeclarationAnnotation& CallableDeclaration::annotation() const
{
return abstractAnnotation<CallableDeclarationAnnotation>("CallableDeclarationAnnotation");
}
FunctionTypePointer FunctionDefinition::functionType(bool _internal) const
{
if (_internal)

View File

@ -637,7 +637,7 @@ public:
bool markedVirtual() const { return m_isVirtual; }
virtual bool virtualSemantics() const { return markedVirtual(); }
CallableDeclarationAnnotation& annotation() const override;
CallableDeclarationAnnotation& annotation() const override = 0;
protected:
ASTPointer<ParameterList> m_parameters;