d: Merge dmd, druntime d8e3976a58, phobos 7a6e95688
[official-gcc.git] / gcc / d / dmd / staticassert.h
blobed76de070120c9538f7c38f60b2b6a035288c6fb
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2024 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/staticassert.h
9 */
11 #pragma once
13 #include "dsymbol.h"
15 class Expression;
17 class StaticAssert : public Dsymbol
19 public:
20 Expression *exp;
21 Expressions *msg;
23 StaticAssert *syntaxCopy(Dsymbol *s) override;
24 bool oneMember(Dsymbol *&ps, Identifier *ident) override;
25 const char *kind() const override;
26 StaticAssert *isStaticAssert() override { return this; }
27 void accept(Visitor *v) override { v->visit(this); }