workspaced.com.dscanner
-
Declaration
void
start
(stringdir
);Load function for dscanner. Call with
{"cmd": "load", "components": ["dscanner"]}
This will store the working directory for future use. -
Declaration
void
stop
();Unloads dscanner. Has no purpose right now.
-
Declaration
void
lint
(AsyncCallbackcb
, stringfile
= "", stringini
= "dscanner.ini
", stringcode
= "");Asynchronously lints the
file
passed. If you providecode
then thecode
will be used andfile
will be ignored.Return Value
[{
file
: string, line: int, column: int, type: string, description: string, key: string}]Call With:
{"subcmd": "
lint
"} -
Declaration
void
listDefinitions
(AsyncCallbackcb
, stringfile
, stringcode
= "");Asynchronously lists all definitions in the specified
file
. If you providecode
thefile
wont be manually read.Return Value
[{name: string, line: int, type: string, attributes: string[string]}]
Call With:
{"subcmd": "list-definitions"}
-
Declaration
void
findSymbol
(AsyncCallbackcb
, stringsymbol
);Asynchronously finds all definitions of a
symbol
in 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
struct
INIEntry
;dscanner.ini setting type
-
Declaration
string
name
; -
Declaration
string
documentation
;
-
-
Declaration
struct
DScannerIssue
; -
Declaration
struct
FileLocation
; -
Declaration
struct
DefinitionElement
;Returned by list-definitions
-
Declaration
string
name
; -
Declaration
int
line
; -
Declaration
string
type
;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
;
-