dsymbol.semantic
This file is part of DCD, a development tool for the D programming language. Copyright (C) 2014 Brian Schott
Discussion
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
-
Declaration
struct
SemanticSymbol
;Intermediate form between DSymbol and the AST classes. Stores enough information to resolve things like base classes and alias this.
-
Declaration
this();
Disable default construction.
-
Declaration
this(DSymbol*
acSymbol
);Parameters
name
the name
-
Declaration
void
addChild
(SemanticSymbol*child
, boolowns
);Adds a
child
to the children field and updates the acSymbol's parts field -
Declaration
UnrolledList!(TypeLookup*, Mallocator, false)
typeLookups
;Information used to do type resolution, inheritance, mixins, and alias this
-
Declaration
UnrolledList!(SemanticSymbol*, Mallocator, false)
children
;Child symbols
-
Declaration
DSymbol*
acSymbol
;Autocompletion symbol
-
Declaration
SemanticSymbol*
parent
;Parent symbol
-
Declaration
IdType
protection
;Protection level for this symobol
-
-
Declaration
Type
argptrType
;Type of the argptr variable
-
Declaration
Type
argumentsType
;Type of arguments