xq-lsp 1.8.2 → 1.8.3-next.430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -9
- package/builtins/builtins-fn.xq +1 -1
- package/dist/analyzer.d.ts +1 -0
- package/dist/analyzer.js +43 -3
- package/dist/ast-nodes.d.ts +38 -0
- package/dist/ast-nodes.js +71 -0
- package/dist/diagnostics.js +2 -0
- package/dist/functioncall-diagnostics.d.ts +6 -3
- package/dist/functioncall-diagnostics.js +76 -17
- package/dist/inlay-hints.js +28 -82
- package/dist/module-siblings.d.ts +11 -0
- package/dist/module-siblings.js +16 -0
- package/dist/predeclared-namespaces.js +1 -0
- package/dist/prolog-diagnostics.d.ts +10 -0
- package/dist/prolog-diagnostics.js +113 -0
- package/dist/qt4-worker.js +5 -3
- package/dist/runtimes/fonto/fonto.xq +95 -0
- package/dist/semantic-tokens.d.ts +29 -0
- package/dist/semantic-tokens.js +254 -0
- package/dist/server.js +40 -7
- package/dist/typechecker.d.ts +48 -1
- package/dist/typechecker.js +1215 -122
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/analyzer.ts +45 -3
- package/src/ast-nodes.ts +85 -0
- package/src/diagnostics.ts +2 -0
- package/src/functioncall-diagnostics.ts +93 -15
- package/src/inlay-hints.ts +42 -93
- package/src/module-siblings.ts +17 -0
- package/src/predeclared-namespaces.ts +1 -0
- package/src/prolog-diagnostics.ts +137 -0
- package/src/qt4-worker.ts +6 -4
- package/src/runtimes/fonto/fonto.xq +95 -0
- package/src/semantic-tokens.ts +289 -0
- package/src/server.ts +40 -6
- package/src/typechecker.ts +1265 -123
- package/src/types.ts +2 -0
package/src/types.ts
CHANGED
|
@@ -35,6 +35,7 @@ export interface FunctionSymbol {
|
|
|
35
35
|
doc?: DocComment;
|
|
36
36
|
sourceUri: string;
|
|
37
37
|
sourceOffset?: number; // char offset of the declare keyword
|
|
38
|
+
visibility?: "public" | "private"; // from a %public/%private annotation; undeclared defaults to public
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export interface VariableSymbol {
|
|
@@ -43,6 +44,7 @@ export interface VariableSymbol {
|
|
|
43
44
|
isModuleLevel: boolean;
|
|
44
45
|
sourceUri: string;
|
|
45
46
|
doc?: string; // markdown description from a preceding xqDoc comment, if any
|
|
47
|
+
type?: string; // declared `as SequenceType` of a module variable, as written in source
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
export interface ImportInfo {
|