// -*- C++ -*-
// $Id: be_consumes.h 91742 2010-09-13 18:23:17Z johnnyw $

#ifndef BE_CONSUMES_H
#define BE_CONSUMES_H

#include "ast_consumes.h"

#include "be_field.h"

class be_eventtype;
class be_visitor;

class be_consumes : public virtual AST_Consumes,
                    public virtual be_field
{
public:
  be_consumes (UTL_ScopedName *n,
               AST_Type *consumes_type);

  virtual ~be_consumes (void);

  // Non-virtual override of frontend method.
  be_eventtype *consumes_type (void) const;

  // Narrowing.
  DEF_NARROW_FROM_DECL (be_consumes);

  // Visiting.
  virtual int accept (be_visitor *visitor);

  // Cleanup.
  virtual void destroy (void);
};

#endif // BE_CONSUMES_H

