]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | |
2 | /* Compiler implementation of the D programming language | |
a3b38b77 | 3 | * Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved |
b4c522fa IB |
4 | * written by Walter Bright |
5 | * http://www.digitalmars.com | |
6 | * Distributed under the Boost Software License, Version 1.0. | |
7 | * http://www.boost.org/LICENSE_1_0.txt | |
8 | * https://github.com/dlang/dmd/blob/master/src/version.h | |
9 | */ | |
10 | ||
11 | #pragma once | |
12 | ||
13 | #include "dsymbol.h" | |
14 | ||
15 | class DebugSymbol : public Dsymbol | |
16 | { | |
17 | public: | |
18 | unsigned level; | |
19 | ||
20 | DebugSymbol(Loc loc, Identifier *ident); | |
21 | DebugSymbol(Loc loc, unsigned level); | |
22 | Dsymbol *syntaxCopy(Dsymbol *); | |
23 | ||
24 | const char *toChars(); | |
25 | void addMember(Scope *sc, ScopeDsymbol *sds); | |
f9ab59ff | 26 | const char *kind() const; |
b4c522fa IB |
27 | void accept(Visitor *v) { v->visit(this); } |
28 | }; | |
29 | ||
30 | class VersionSymbol : public Dsymbol | |
31 | { | |
32 | public: | |
33 | unsigned level; | |
34 | ||
35 | VersionSymbol(Loc loc, Identifier *ident); | |
36 | VersionSymbol(Loc loc, unsigned level); | |
37 | Dsymbol *syntaxCopy(Dsymbol *); | |
38 | ||
39 | const char *toChars(); | |
40 | void addMember(Scope *sc, ScopeDsymbol *sds); | |
f9ab59ff | 41 | const char *kind() const; |
b4c522fa IB |
42 | void accept(Visitor *v) { v->visit(this); } |
43 | }; |