d: Merge upstream dmd, druntime f1a045928e
[official-gcc.git] / gcc / d / dmd / nspace.h
blob4a1bd9141ecc65f0c5e2f75b43b147c82c063f4e
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2023 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/nspace.h
9 */
11 #pragma once
13 #include "dsymbol.h"
15 /* A namespace corresponding to a C++ namespace.
16 * Implies extern(C++).
19 class Nspace final : public ScopeDsymbol
21 public:
22 Expression *identExp;
23 Nspace *syntaxCopy(Dsymbol *s) override;
24 bool hasPointers() override;
25 const char *kind() const override;
26 Nspace *isNspace() override { return this; }
27 void accept(Visitor *v) override { v->visit(this); }