[mod] v0.0.63
This commit is contained in:
parent
0541ecfcad
commit
52237c8267
7 changed files with 27 additions and 47 deletions
9
src/@quodatum/xqlint.d.ts
vendored
9
src/@quodatum/xqlint.d.ts
vendored
|
|
@ -1,7 +1,14 @@
|
|||
declare module '@quodatum/xqlint'{
|
||||
export class XQLint{
|
||||
constructor(source :string, opts? :object);
|
||||
public getCompletions(pos :object): [object];
|
||||
public getCompletions(pos :object): [object];
|
||||
public getXQDoc() :XQdoc;
|
||||
}
|
||||
export class XQDoc{
|
||||
moduleNamespace: string;
|
||||
description: string;
|
||||
variables: [object];
|
||||
functions: [object];
|
||||
}
|
||||
export function XQueryLexer() :any;
|
||||
export function createStaticContext(processor :string) :any;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# 0.0.58
|
||||
* use xqlint 0.0.14
|
||||
# 0.0.48
|
||||
* Fix xmlToText #6
|
||||
* FIX outline all vars
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export class Symbols implements DocumentSymbolProvider {
|
|||
channel.log("Symbols: " + document.uri);
|
||||
const symbols: DocumentSymbol[] = [];
|
||||
const text = document.getText();
|
||||
const linter = new (XQLint as any)(text, { "styleCheck": false });
|
||||
const linter = new XQLint(text, { "styleCheck": false });
|
||||
|
||||
const xqdoc = linter.getXQDoc();
|
||||
channel.log("got xqdoc");
|
||||
|
|
@ -44,6 +44,7 @@ export class Symbols implements DocumentSymbolProvider {
|
|||
xqdoc.variables.forEach(function (v: VarType): void {
|
||||
const name = "$" + v.name;
|
||||
const description="about this variable, some doc here";
|
||||
channel.log(name + v);
|
||||
const info = makeSymbol(name, description, SymbolKind.Variable, v.pos);
|
||||
symbols.push(info);
|
||||
});
|
||||
|
|
@ -51,6 +52,7 @@ export class Symbols implements DocumentSymbolProvider {
|
|||
xqdoc.functions.forEach(function (f: FunType) {
|
||||
const name = f.name + "#" + f.params.length;
|
||||
const description="about this function, some doc here";
|
||||
channel.log(name + f);
|
||||
const info = makeSymbol(name, description, SymbolKind.Function, f.pos);
|
||||
// info.children=[];
|
||||
// f.params.forEach(function(paramName: string){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue