]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/d/dmd/nspace.h
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
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
8 * https://github.com/dlang/dmd/blob/master/src/dmd/nspace.h
15 /* A namespace corresponding to a C++ namespace.
16 * Implies extern(C++).
19 class Nspace
: public ScopeDsymbol
23 Nspace
*syntaxCopy(Dsymbol
*s
);
24 void addMember(Scope
*sc
, ScopeDsymbol
*sds
);
25 void setScope(Scope
*sc
);
26 Dsymbol
*search(const Loc
&loc
, Identifier
*ident
, int flags
= SearchLocalsOnly
);
28 void setFieldOffset(AggregateDeclaration
*ad
, FieldState
& fieldState
, bool isunion
);
29 const char *kind() const;
30 Nspace
*isNspace() { return this; }
31 void accept(Visitor
*v
) { v
->visit(this); }