DCDExtComponent

Undocumented in source.

Members

Functions

describeInterfaceRecursive
Future!InterfaceTree describeInterfaceRecursive(const(char)[] code, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
describeInterfaceRecursiveSync
InterfaceTree describeInterfaceRecursiveSync(const(char)[] code, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
extractCallParameters
CalltipsSupport extractCallParameters(const(char)[] code, int position, bool definition)

Extracts calltips help information at a given position. The position must be within the arguments of the function and not outside the parentheses or inside some child call.

getCodeBlockRange
CodeBlockInfo getCodeBlockRange(const(char)[] code, int position)

Finds the immediate surrounding code block at a position or returns CodeBlockInfo.init for none/module block.

getInterfaceDetails
InterfaceDetails getInterfaceDetails(string file, const(char)[] code, int position)

Extracts information about a given class or interface at the given position.

implement
Future!string implement(const(char)[] code, int position, bool formatCode, string[] formatArgs)

Implements the interfaces or abstract classes of a specified class/interface. Helper function which returns all functions as one block for most primitive use.

implementAll
Future!(ImplementedMethod[]) implementAll(const(char)[] code, int position, bool formatCode, string[] formatArgs, bool snippetExtensions)
implementAllSync
ImplementedMethod[] implementAllSync(const(char)[] code, int position, bool formatCode, string[] formatArgs, bool snippetExtensions)

Implements the interfaces or abstract classes of a specified class/interface. The async implementation is preferred when used in background tasks to prevent disruption of other services as a lot of code is parsed and processed multiple times for this function.

load
void load()

Loads dcd extension methods. Call with {"cmd": "load", "components": ["dcdext"]}

lookupInterface
InterfaceDetails lookupInterface(const(char)[] code, int position)

Looks up a declaration of a type and then extracts information about it as class or interface.

Mixins

__anonymous
mixin DefaultComponentWrapper
Undocumented in source.

Static variables

mixableProtection
CodeRegionProtection[] mixableProtection;
Undocumented in source.

Mixed In Members

From mixin DefaultComponentWrapper

workspaced
WorkspaceD workspaced;
Undocumented in source.
refInstance
WorkspaceD.Instance refInstance;
Undocumented in source.
_threads
TaskPool _threads;
Undocumented in source.
~this
~this()
Undocumented in source.
gthreads
TaskPool gthreads()
Undocumented in source. Be warned that the author may not have intended to support it.
threads
TaskPool threads(int minSize, int maxSize)
Undocumented in source. Be warned that the author may not have intended to support it.
instance
WorkspaceD.Instance instance()
Undocumented in source. Be warned that the author may not have intended to support it.
instance
WorkspaceD.Instance instance(WorkspaceD.Instance instance)
Undocumented in source. Be warned that the author may not have intended to support it.
importPaths
string[] importPaths()
Undocumented in source. Be warned that the author may not have intended to support it.
stringImportPaths
string[] stringImportPaths()
Undocumented in source. Be warned that the author may not have intended to support it.
importFiles
string[] importFiles()
Undocumented in source. Be warned that the author may not have intended to support it.
importPathProvider
ImportPathProvider importPathProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
stringImportPathProvider
ImportPathProvider stringImportPathProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
importFilesProvider
ImportPathProvider importFilesProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
config
Configuration config()
Undocumented in source. Be warned that the author may not have intended to support it.
has
bool has()
Undocumented in source. Be warned that the author may not have intended to support it.
get
T get()
Undocumented in source. Be warned that the author may not have intended to support it.
cwd
string cwd()
Undocumented in source. Be warned that the author may not have intended to support it.
shutdown
void shutdown(bool dtor)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(WorkspaceD workspaced, WorkspaceD.Instance instance)
Undocumented in source. Be warned that the author may not have intended to support it.
run
Future!JSONValue run(string method, JSONValue[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
runMethod
Future!JSONValue runMethod(JSONValue[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
runOverload
Future!JSONValue runOverload(JSONValue[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
generateOverloadCall
string generateOverloadCall()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ComponentWrapper

bind
void bind(WorkspaceD workspaced, WorkspaceD.Instance instance)
Undocumented in source.
run
Future!JSONValue run(string method, JSONValue[] args)
Undocumented in source.
shutdown
void shutdown(bool dtor)
Undocumented in source.

Meta