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

    class FirstPass: 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 Module mod, istring symbolFile, IAllocator symbolAllocator, IAllocator semanticAllocator, bool includeParameterSymbols, ModuleCache* cache, CacheEntry* entry = null);

      Parameters

      Module mod

      the module to visit

      istring symbolFile

      path to the file being converted

      IAllocator symbolAllocator

      allocator used for the auto-complete symbols

      IAllocator semanticAllocator

      allocator used for semantic symbols

      bool includeParameterSymbols

      include parameter symbols as children of function decalarations and constructors

    • run

      Declaration

      void run();

      Runs the against the AST and produces symbols.

    • Declaration

      Scope* moduleScope;

      Module scope

    • Declaration

      SemanticSymbol* rootSymbol;

      The module

    • Declaration

      IAllocator symbolAllocator;

      Allocator used for symbol allocation

    • Declaration

      uint symbolsAllocated;

      Number of symbols allocated