d: Merge dmd, druntime d8e3976a58, phobos 7a6e95688
[official-gcc.git] / gcc / d / dmd / aliasthis.h
blob88ba35319b3ebe684546e915d4d38d79babea865
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 2009-2024 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/aliasthis.h
9 */
11 #pragma once
13 #include "globals.h"
14 #include "dsymbol.h"
16 /**************************************************************/
18 class AliasThis final : public Dsymbol
20 public:
21 // alias Identifier this;
22 Identifier *ident;
23 Dsymbol *sym;
24 d_bool isDeprecated_;
26 AliasThis *syntaxCopy(Dsymbol *) override;
27 const char *kind() const override;
28 AliasThis *isAliasThis() { return this; }
29 void accept(Visitor *v) override { v->visit(this); }
30 bool isDeprecated() const override { return this->isDeprecated_; }