]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/d/dmd/staticassert.h
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / d / dmd / staticassert.h
CommitLineData
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
5fee5ec3 8 * https://github.com/dlang/dmd/blob/master/src/dmd/staticassert.h
b4c522fa
IB
9 */
10
11#pragma once
12
13#include "dsymbol.h"
14
15class Expression;
16
17class StaticAssert : public Dsymbol
18{
19public:
20 Expression *exp;
21 Expression *msg;
22
5fee5ec3 23 StaticAssert *syntaxCopy(Dsymbol *s);
b4c522fa 24 void addMember(Scope *sc, ScopeDsymbol *sds);
b4c522fa 25 bool oneMember(Dsymbol **ps, Identifier *ident);
f9ab59ff 26 const char *kind() const;
b4c522fa
IB
27 void accept(Visitor *v) { v->visit(this); }
28};