mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
|
|
// Compiler implementation of the D programming language
|
|
// Copyright: Copyright (c) 2014 by Digital Mars, All Rights Reserved
|
|
// Authors: Walter Bright, http://www.digitalmars.com
|
|
// License: http://boost.org/LICENSE_1_0.txt
|
|
// Source: https://github.com/D-Programming-Language/dmd/blob/master/src/nspace.h
|
|
|
|
|
|
#ifndef DMD_NSPACE_H
|
|
#define DMD_NSPACE_H
|
|
|
|
#ifdef __DMC__
|
|
#pragma once
|
|
#endif /* __DMC__ */
|
|
|
|
/* A namespace corresponding to a C++ namespace.
|
|
* Implies extern(C++).
|
|
*/
|
|
|
|
class Nspace : public ScopeDsymbol
|
|
{
|
|
public:
|
|
Nspace(Loc loc, Identifier *ident, Dsymbols *members);
|
|
|
|
Dsymbol *syntaxCopy(Dsymbol *s);
|
|
void semantic(Scope *sc);
|
|
void semantic2(Scope *sc);
|
|
void semantic3(Scope *sc);
|
|
bool oneMember(Dsymbol **ps, Identifier *ident);
|
|
Dsymbol *search(Loc loc, Identifier *ident, int flags = SearchLocalsOnly);
|
|
int apply(Dsymbol_apply_ft_t fp, void *param);
|
|
bool hasPointers();
|
|
void setFieldOffset(AggregateDeclaration *ad, unsigned *poffset, bool isunion);
|
|
const char *kind();
|
|
Nspace *isNspace() { return this; }
|
|
void accept(Visitor *v) { v->visit(this); }
|
|
};
|
|
|
|
#endif /* DMD_NSPACE_H */
|