]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/d/dmd/aliasthis.h
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / d / dmd / aliasthis.h
1
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 2009-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/aliasthis.h
9 */
10
11 #pragma once
12
13 #include "globals.h"
14 #include "dsymbol.h"
15
16 /**************************************************************/
17
18 class AliasThis : public Dsymbol
19 {
20 public:
21 // alias Identifier this;
22 Identifier *ident;
23 Dsymbol *sym;
24 bool isDeprecated_;
25
26 AliasThis *syntaxCopy(Dsymbol *);
27 const char *kind() const;
28 AliasThis *isAliasThis() { return this; }
29 void accept(Visitor *v) { v->visit(this); }
30 bool isDeprecated() const { return this->isDeprecated_; }
31 };