workspaced.com.dscanner

Members

Functions

findSymbol
void findSymbol(AsyncCallback cb, string symbol)

Asynchronously finds all definitions of a symbol in the import paths.

lint
void lint(AsyncCallback cb, string file = "", string ini = "dscanner.ini", string code = "")

Asynchronously lints the file passed. If you provide code then the code will be used and file will be ignored.

listAllIniFields
INIEntry[] listAllIniFields()
listDefinitions
void listDefinitions(AsyncCallback cb, string file, string code = "")

Asynchronously lists all definitions in the specified file. If you provide code the file wont be manually read.

start
void start(string dir)

Load function for dscanner. Call with {"cmd": "load", "components": ["dscanner"]} This will store the working directory for future use.

stop
void stop()

Unloads dscanner. Has no purpose right now.

Structs

DScannerIssue
struct DScannerIssue

Issue type returned by lint

DefinitionElement
struct DefinitionElement

Returned by list-definitions

FileLocation
struct FileLocation

Returned by find-symbol

INIEntry
struct INIEntry

dscanner.ini setting type

Meta