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 DocString = hilti::DocString;
27 using Expression = hilti::Expression;
28 using Function = hilti::Function;
29 using ID = hilti::ID;
30 using Location = hilti::Location;
31 using Meta = hilti::Meta;
32 using Module = hilti::Module;
33 using Node = hilti::Node;
34 using NodeRef = hilti::NodeRef;
35 using Operator = hilti::Operator;
36 using Statement = hilti::Statement;
37 using Type = hilti::Type;
38 
39 namespace declaration {
40 using Linkage = hilti::declaration::Linkage;
41 
42 namespace parameter {
43 using Kind = hilti::declaration::parameter::Kind;
44 } // namespace parameter
45 
46 } // namespace declaration
47 
48 namespace function {
49 using CallingConvention = hilti::function::CallingConvention;
50 } // namespace function
51 
52 namespace type {
53 using namespace hilti::type;
54 } // namespace type
55 
56 #if 0
57 namespace type {
59 using Void = hilti::type::Void;
61 using Bytes = hilti::type
62 }
63 #endif
64 
65 #if 0
66 namespace type::function {
67 using Parameter = hilti::type::function::Parameter;
69 using Flavor = hilti::type::function::Flavor;
70 }
71 #endif
72 
73 namespace node {
74 
75 using None = hilti::node::None;
76 static const Node none = None::create();
77 
79 
80 template<typename T, typename Other>
81 bool isEqual(const T* this_, const Other& other) {
82  return hilti::node::isEqual(this_, other);
83 }
84 
85 } // namespace node
86 } // namespace spicy
Definition: function.h:71
Definition: void.h:12
Definition: declaration.h:54
Definition: function.h:47
Definition: doc-string.h:15
const Node none
Definition: node.cc:14
Definition: node.h:512
Definition: function.h:44
Definition: meta.h:19
Definition: attribute.h:174
Definition: bytes.h:39
Definition: type.h:160
Definition: attribute.h:27
Definition: parameter.h:46
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:98
Definition: module.h:21
Definition: node.h:112
Definition: node-ref.h:45
Definition: location.h:18
Definition: type.h:277
Definition: result.h:13
Definition: type.h:26
Definition: id.h:18