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