mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 11:56:12 +03:00
40 lines
950 B
C++
40 lines
950 B
C++
|
|
/* Compiler implementation of the D programming language
|
|
* Copyright (c) 1999-2014 by Digital Mars
|
|
* All Rights Reserved
|
|
* written by Walter Bright
|
|
* http://www.digitalmars.com
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* http://www.boost.org/LICENSE_1_0.txt
|
|
* https://github.com/D-Programming-Language/dmd/blob/master/src/staticassert.h
|
|
*/
|
|
|
|
#ifndef DMD_STATICASSERT_H
|
|
#define DMD_STATICASSERT_H
|
|
|
|
#ifdef __DMC__
|
|
#pragma once
|
|
#endif /* __DMC__ */
|
|
|
|
#include "dsymbol.h"
|
|
|
|
class Expression;
|
|
|
|
class StaticAssert : public Dsymbol
|
|
{
|
|
public:
|
|
Expression *exp;
|
|
Expression *msg;
|
|
|
|
StaticAssert(Loc loc, Expression *exp, Expression *msg);
|
|
|
|
Dsymbol *syntaxCopy(Dsymbol *s);
|
|
void addMember(Scope *sc, ScopeDsymbol *sds);
|
|
void semantic(Scope *sc);
|
|
void semantic2(Scope *sc);
|
|
bool oneMember(Dsymbol **ps, Identifier *ident);
|
|
const char *kind();
|
|
void accept(Visitor *v) { v->visit(this); }
|
|
};
|
|
|
|
#endif
|