blob: 32cfd9ef03e30ec244303b542e449471b73d0323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// slang-ast-forward-declarations.h
#pragma once
#include "../core/slang-basic.h"
namespace Slang
{
enum class ASTNodeType : Int32
{
#if 0 // FIDDLE TEMPLATE:
%for _, T in ipairs(Slang.NodeBase.subclasses) do
$T,
%end
#else // FIDDLE OUTPUT:
#define FIDDLE_GENERATED_OUTPUT_ID 0
#include "slang-ast-forward-declarations.h.fiddle"
#endif // FIDDLE END
CountOf
};
#if 0 // FIDDLE TEMPLATE:
%for _, T in ipairs(Slang.NodeBase.subclasses) do
class $T;
%end
#else // FIDDLE OUTPUT:
#define FIDDLE_GENERATED_OUTPUT_ID 1
#include "slang-ast-forward-declarations.h.fiddle"
#endif // FIDDLE END
} // namespace Slang
|