workspaced.com.dscanner
-
Declaration
voidstart(stringdir);Load function for dscanner. Call with
{"cmd": "load", "components": ["dscanner"]}This will store the working directory for future use. -
Declaration
voidstop();Unloads dscanner. Has no purpose right now.
-
Declaration
voidlint(AsyncCallbackcb, stringfile= "", stringini= "dscanner.ini", stringcode= "");Asynchronously lints the
filepassed. If you providecodethen thecodewill be used andfilewill be ignored.Return Value
[{file: string, line: int, column: int, type: string, description: string, key: string}]Call With:
{"subcmd": "lint"} -
Declaration
voidlistDefinitions(AsyncCallbackcb, stringfile, stringcode= "");Asynchronously lists all definitions in the specified
file. If you providecodethefilewont be manually read.Return Value
[{name: string, line: int, type: string, attributes: string[string]}]Call With:
{"subcmd": "list-definitions"} -
Declaration
voidfindSymbol(AsyncCallbackcb, stringsymbol);Asynchronously finds all definitions of a
symbolin the import paths.Return Value
[{name: string, line: int, column: int}]Call With:
{"subcmd": "find-symbol"} -
Declaration
INIEntry[]listAllIniFields();Return Value
all keys & documentation that can be used in a dscanner.ini
-
Declaration
structINIEntry;dscanner.ini setting type
-
Declaration
stringname; -
Declaration
stringdocumentation;
-
-
Declaration
structDScannerIssue; -
Declaration
structFileLocation; -
Declaration
structDefinitionElement;Returned by list-definitions
-
Declaration
stringname; -
Declaration
intline; -
Declaration
stringtype;One of "c" (class), "s" (struct), "i" (interface), "T" (template), "f" (function/ctor/dtor), "g" (enum {}), "u" (union), "e" (enum member/definition), "v" (variable/invariant)
-
Declaration
string[string]attributes;
-