d: Merge upstream dmd ff57fec515, druntime ff57fec515, phobos 17bafda79.
[official-gcc.git] / gcc / d / dmd / version.h
blobc268bc9b8cf5f84a214fced7ed58ae8cad6034e0
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
4 * written by Walter Bright
5 * https://www.digitalmars.com
6 * Distributed under the Boost Software License, Version 1.0.
7 * https://www.boost.org/LICENSE_1_0.txt
8 * https://github.com/dlang/dmd/blob/master/src/dmd/version.h
9 */
11 #pragma once
13 #include "dsymbol.h"
15 class DebugSymbol final : public Dsymbol
17 public:
18 unsigned level;
20 DebugSymbol *syntaxCopy(Dsymbol *) override;
22 const char *toChars() const override;
23 const char *kind() const override;
24 DebugSymbol *isDebugSymbol() override;
25 void accept(Visitor *v) override { v->visit(this); }
28 class VersionSymbol final : public Dsymbol
30 public:
31 unsigned level;
33 VersionSymbol *syntaxCopy(Dsymbol *) override;
35 const char *toChars() const override;
36 const char *kind() const override;
37 VersionSymbol *isVersionSymbol() override;
38 void accept(Visitor *v) override { v->visit(this); }