Spicy
aliases.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <hilti/ast/attribute.h>
6 #include <hilti/ast/ctor.h>
7 #include <hilti/ast/declaration.h>
8 #include <hilti/ast/expression.h>
9 #include <hilti/ast/function.h>
10 #include <hilti/ast/id.h>
11 #include <hilti/ast/location.h>
12 #include <hilti/ast/meta.h>
13 #include <hilti/ast/module.h>
14 #include <hilti/ast/node-ref.h>
15 #include <hilti/ast/node.h>
16 #include <hilti/ast/operator.h>
17 #include <hilti/ast/scope.h>
18 #include <hilti/ast/statement.h>
19 
20 namespace spicy {
21 
22 using Attribute = hilti::Attribute;
23 using AttributeSet = hilti::AttributeSet;
24 using Ctor = hilti::Ctor;
25 using Declaration = hilti::Declaration;
26 using Expression = hilti::Expression;
27 using Function = hilti::Function;
28 using ID = hilti::ID;
29 using Location = hilti::Location;
30 using Meta = hilti::Meta;
31 using Module = hilti::Module;
32 using Node = hilti::Node;
33 using NodeRef = hilti::NodeRef;
34 using Operator = hilti::Operator;
35 using Statement = hilti::Statement;
36 using Type = hilti::Type;
37 
38 namespace declaration {
39 using Linkage = hilti::declaration::Linkage;
40 
41 namespace parameter {
42 using Kind = hilti::declaration::parameter::Kind;
43 } // namespace parameter
44 
45 } // namespace declaration
46 
47 namespace function {
48 using CallingConvention = hilti::function::CallingConvention;
49 } // namespace function
50 
51 namespace type {
52 using namespace hilti::type;
53 } // namespace type
54 
55 #if 0
56 namespace type {
58 using Void = hilti::type::Void;
60 using Bytes = hilti::type
61 }
62 #endif
63 
64 #if 0
65 namespace type::function {
66 using Parameter = hilti::type::function::Parameter;
68 using Flavor = hilti::type::function::Flavor;
69 }
70 #endif
71 
72 namespace node {
73 
74 using None = hilti::node::None;
75 static const Node none = None::create();
76 
78 
79 template<typename T, typename Other>
80 bool isEqual(const T* this_, const Other& other) {
81  return hilti::node::isEqual(this_, other);
82 }
83 
84 } // namespace node
85 } // namespace spicy
Definition: function.h:71
Definition: void.h:13
Definition: declaration.h:53
Definition: function.h:47
const Node none
Definition: node.cc:14
Definition: node.h:489
Definition: function.h:44
Definition: meta.h:18
Definition: attribute.h:145
Definition: bytes.h:40
Definition: type.h:159
Definition: attribute.h:27
Definition: parameter.h:47
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:99
Definition: module.h:21
Definition: node.h:113
Definition: node-ref.h:44
Definition: location.h:17
Definition: type.h:269
Definition: result.h:14
Definition: type.h:26
Definition: id.h:18