/** * This file is part of DCD, a development tool for the D programming language. * Copyright (C) 2013 Brian Schott * * 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 . */ module semantic; import messages; import actypes; import stdx.d.ast; import stdx.d.lexer; /** * Intermediate form between ACSymbol and the AST classes. Stores enough * information to resolve things like base classes and alias this. */ struct SemanticSymbol { public: /// Symbol name string name; /// Base classes string[][] baseClasses; /// Completion kind CompletionKind kind; /// Variable type or function return type Type type; /// Function call tip. Null if this is not a function string callTip; /// Alias this symbols string[] aliasThis; /// MixinTemplates string[] mixinTemplates; /// Protection level for this symobol TokenType protection; /// Symbol location size_t location; mixin scopeImplementation!(SemanticSymbol); }