Spicy
spicy
toolchain
include
ast
types
sink.h
1
// Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2
3
#pragma once
4
5
#include <utility>
6
7
#include <hilti/ast/type.h>
8
9
namespace
spicy
{
10
namespace
type {
11
13
class
Sink
:
public
hilti::TypeBase
,
hilti::type::trait::isAllocable
{
14
public
:
15
Sink
(
Meta
m =
Meta
()) : TypeBase(std::move(m)) {}
16
17
bool
operator==(
const
Sink
&
/* other */
)
const
{
return
true
; }
18
20
auto
isEqual
(
const
Type& other)
const
{
return
node::isEqual(
this
, other); }
22
auto
properties
()
const
{
return
node::Properties{}; }
23
};
24
25
}
// namespace type
26
}
// namespace spicy
spicy::type::Sink
Definition:
sink.h:13
hilti::Meta
Definition:
meta.h:18
spicy::type::Sink::isEqual
auto isEqual(const Type &other) const
Definition:
sink.h:20
hilti::TypeBase
Definition:
type.h:152
hilti::type::trait::isAllocable
Definition:
type.h:23
spicy
spicy::type::Sink::properties
auto properties() const
Definition:
sink.h:22
Generated by
1.8.13