dsymbol.symbol
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
enumCompletionKind: char;Identifies the kind of the item in an identifier completion list
-
Declaration
dummyInvalid completion kind. This is used internally and will never be returned in a completion response.
-
Declaration
importSymbolImport symbol. This is used internally and will never be returned in a completion response.
-
Declaration
withSymbolWith symbol. This is used internally and will never be returned in a completion response.
-
Declaration
classNameclass names
-
Declaration
interfaceNameinterface names
-
Declaration
structNamestructure names
-
Declaration
unionNameunion name
-
Declaration
variableNamevariable name
-
Declaration
memberVariableNamemember variable
-
Declaration
keywordkeyword, built-in version, scope statement -
Declaration
functionNamefunction or method
-
Declaration
enumNameenum name
-
Declaration
enumMemberenum member
-
Declaration
packageNamepackage name
-
Declaration
moduleNamemodule name
-
Declaration
aliasNamealias name
-
Declaration
templateNametemplate name
-
Declaration
mixinTemplateNamemixin template name
-
-
Declaration
pure nothrow @nogc @safe boolisPublicCompletionKind(CompletionKindkind);Return Value
trueifis something that can be returned to the clientkind -
Declaration
enumSymbolQualifier: ubyte;Any special information about a variable declaration symbol.
-
Declaration
noneNone
-
Declaration
arrayThe symbol is an
array -
Declaration
assocArrayThe symbol is a associative array
-
Declaration
funcThe symbol is a function or delegate pointer
-
Declaration
selectiveImportSelective import
-
-
Declaration
structDSymbol;Autocompletion symbol
-
Declaration
this();
this(istringname);Copying is disabled.
-
Declaration
this(stringname, CompletionKindkind);
this(istringname, CompletionKindkind);Parameters
stringnamethe symbol's
nameCompletionKindkindthe symbol's completion
kind -
Declaration
this(stringname, CompletionKindkind, DSymbol*type);
this(istringname, CompletionKindkind, DSymbol*type);Parameters
stringnamethe symbol's
nameCompletionKindkindthe symbol's completion
kindresolvedTypethe resolved
typeof the symbol -
Declaration
inout inout(DSymbol)*[]getPartsByName(istringname);Gets all parts whose
namematches the given string. -
Declaration
inout voidgetParts(OR)(istringname, ref ORapp, ref HashSet!size_tvisited, boolonlyOne= false) if (isOutputRange!(OR, DSymbol*));Gets all parts and imported parts. Filters based on the part's
nameif theargument is notnamenull. Stores results in.app -
Declaration
inout inout(DSymbol)*[]opSlice(this This)();Return Value
a range over this symbol's parts and publicly visible imports
-
Declaration
voidupdateTypes(ref UpdatePairCollectioncollection);Updates the type field based on the mappings contained in the given
collection. -
Declaration
istringname;DSymbol's
name -
Declaration
istringcallTip;Calltip to display if this is a function
-
Declaration
aliasaltFile= callTip;Used for storing information for selective renamed imports
-
Declaration
istringsymbolFile;Module containing the symbol.
-
Declaration
istringdoc;Documentation for the symbol.
-
Declaration
DSymbol*type;The symbol that represents the
type. -
Declaration
UnrolledList!istringargNames;Names of function arguments
-
Declaration
const pure nothrow @nogc @property @safe size_tlocation();DSymbol
location -
Declaration
CompletionKindkind;The
kindof symbol -
Declaration
SymbolQualifierqualifier;DSymbol
qualifier
-