Spicy
hilti
toolchain
include
ast
types
port.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
hilti::type
{
10
12
class
Port
:
public
TypeBase
,
trait::isAllocable
,
trait::isSortable
{
13
public
:
14
Port
(
Meta
m =
Meta
()) :
TypeBase
(std::move(m)) {}
15
16
bool
operator==(
const
Port
&
/* other */
)
const
{
return
true
; }
17
19
auto
isEqual
(
const
Type
& other)
const
{
return
node::isEqual(
this
, other); }
21
auto
_isResolved
(ResolvedState* rstate)
const
{
return
true
; }
23
auto
properties
()
const
{
return
node::Properties
{}; }
24
};
25
26
}
// namespace hilti::type
hilti::type::Port::isEqual
auto isEqual(const Type &other) const
Definition:
port.h:19
hilti::type::trait::isSortable
Definition:
type.h:34
hilti::type::Port::_isResolved
auto _isResolved(ResolvedState *rstate) const
Definition:
port.h:21
hilti::type::Port::properties
auto properties() const
Definition:
port.h:23
hilti::Meta
Definition:
meta.h:19
hilti::Type
Definition:
type.h:160
hilti::node::Properties
std::map< std::string, node::detail::PropertyValue > Properties
Definition:
node.h:98
hilti::TypeBase
Definition:
type.h:206
hilti::type::trait::isAllocable
Definition:
type.h:33
hilti::type
Definition:
type.h:26
hilti::type::Port
Definition:
port.h:12
Generated by
1.8.13