lean2/src/frontends/lean/coercion.h
Leonardo de Moura 22bebbf242 feat(kernel/object): serializer for kernel objects
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-28 14:39:10 -08:00

24 lines
714 B
C++

/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "kernel/object.h"
namespace lean {
/**
\brief Object for tracking coercion declarations.
This object is mainly used for recording the declaration.
*/
class coercion_declaration : public neutral_object_cell {
expr m_coercion;
public:
coercion_declaration(expr const & c):m_coercion(c) {}
virtual ~coercion_declaration() {}
virtual char const * keyword() const { return "Coercion"; }
expr const & get_coercion() const { return m_coercion; }
virtual void write(serializer & s) const;
};
}