Merge dmd upstream 6243fa6d2
[official-gcc.git] / gcc / d / dmd / aliasthis.h
blob290ccd63088ca2ea7f83220288411453934af2f7
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 2009-2018 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/aliasthis.h
9 */
11 #pragma once
13 #include "dsymbol.h"
15 /**************************************************************/
17 class AliasThis : public Dsymbol
19 public:
20 // alias Identifier this;
21 Identifier *ident;
23 AliasThis(Loc loc, Identifier *ident);
25 Dsymbol *syntaxCopy(Dsymbol *);
26 void semantic(Scope *sc);
27 const char *kind() const;
28 AliasThis *isAliasThis() { return this; }
29 void accept(Visitor *v) { v->visit(this); }