workspaced.com.importer

Undocumented in source.

Members

Functions

add
ImportModification add(string importName, string code, int pos, bool insertOutermost)

Returns a list of code patches for adding an import. If insertOutermost is false, the import will get added to the innermost block.

get
ImportInfo[] get(string code, int pos)

Returns all imports available at some code position.

start
void start()

Initializes the import parser. Call with {"cmd": "load", "components": ["importer"]}

stop
void stop()

Has no purpose right now.

Structs

CodeReplacement
struct CodeReplacement

Describes what to insert/replace/delete to do something

ImportInfo
struct ImportInfo

Information about one import statement

ImportModification
struct ImportModification

Information about how to add an import

SelectiveImport
struct SelectiveImport

Name and (if specified) rename of a symbol

Meta