dsymbol.conversion.first
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
classFirstPass: dparse.ast.ASTVisitor;First Pass handles the following:
- symbol name
- symbol location
- alias this locations
- base class names
- protection level
- symbol kind
- function call tip
- symbol file path
-
Declaration
this(const Modulemod, istringsymbolFile, IAllocatorsymbolAllocator, IAllocatorsemanticAllocator, boolincludeParameterSymbols, ModuleCache*cache, CacheEntry*entry= null);Parameters
Modulemodthe module to visit
istringsymbolFilepath to the file being converted
IAllocatorsymbolAllocatorallocator used for the auto-complete symbols
IAllocatorsemanticAllocatorallocator used for semantic symbols
boolincludeParameterSymbolsinclude parameter symbols as children of function decalarations and constructors
-
Declaration
voidrun();Runs the against the AST and produces symbols.
-
Declaration
Scope*moduleScope;Module scope
-
Declaration
SemanticSymbol*rootSymbol;The module
-
Declaration
IAllocatorsymbolAllocator;Allocator used for symbol allocation
-
Declaration
uintsymbolsAllocated;Number of symbols allocated