listDefinitions

Asynchronously lists all definitions in the specified file. If you provide code and DScanner supports reading from stdin (stable 0.4.0 and above) then code will be used.

@component("dscanner")
@arguments("subcmd", "list-definitions")
void
listDefinitions
(,
string file
,
string code = ""
)

Return Value

Type: void

[{name: string, line: int, type: string, attributes: string[string]}]

Call With

{"subcmd": "list-definitions"}

Meta