Splits out all semantic passes for Dsymbol, Type, and TemplateParameter nodes into Visitors in separate files, and the copyright years of all sources have been updated. Reviewed-on: https://github.com/dlang/dmd/pull/12190 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 7132b3537. * Make-lang.in (D_FRONTEND_OBJS): Add d/dsymbolsem.o, d/semantic2.o, d/semantic3.o, and d/templateparamsem.o. * d-compiler.cc (Compiler::genCmain): Update calls to semantic entrypoint functions. * d-lang.cc (d_parse_file): Likewise. * typeinfo.cc (make_frontend_typeinfo): Likewise.
31 lines
790 B
C++
31 lines
790 B
C++
|
|
/* Compiler implementation of the D programming language
|
|
* Copyright (C) 1999-2021 by The D Language Foundation, 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/dlang/dmd/blob/master/src/staticassert.h
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#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);
|
|
bool oneMember(Dsymbol **ps, Identifier *ident);
|
|
const char *kind() const;
|
|
void accept(Visitor *v) { v->visit(this); }
|
|
};
|