Skip to content

Commit b577e02

Browse files
authored
Merge pull request #64 from line-o/fix/types
[fix] use expected types
2 parents 2198e16 + d0854af commit b577e02

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/xar-resources/modules/app.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function app:module($node as node(), $model as map(*), $details as xs:boolean) {
108108

109109
order by $order
110110
return
111-
app:print-module($module, $funcsInModule, $details)
111+
app:print-module($module, $funcsInModule, boolean($details))
112112
};
113113

114114
declare %private function app:print-module($module as element(xqdoc:xqdoc), $functions as element(xqdoc:function)*,

src/main/xar-resources/modules/scan.xql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare %private function docs:load-stored($path as xs:anyURI, $store as functio
4040
declare %private function docs:load-external-modules($store as function(xs:string, element()) as empty-sequence()) {
4141
for $uri in util:mapped-modules()
4242
return
43-
docs:load-external($uri, $store),
43+
docs:load-external(xs:anyURI($uri), $store),
4444
for $path in dbutil:find-by-mimetype(xs:anyURI("/db"), "application/xquery")
4545
return
4646
try {
@@ -53,7 +53,7 @@ declare %private function docs:load-external-modules($store as function(xs:strin
5353

5454
declare %private function docs:load-internal-modules($store as function(xs:string, element()) as empty-sequence()) {
5555
for $moduleURI in util:registered-modules()
56-
let $meta := inspect:inspect-module-uri($moduleURI)
56+
let $meta := inspect:inspect-module-uri(xs:anyURI($moduleURI))
5757
return
5858
if ($meta) then
5959
let $xml := docs:generate-xqdoc($meta)

src/main/xar-resources/modules/view.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let $config := map {
1212
$templates:CONFIG_APP_ROOT : $config:app-root,
1313
$templates:CONFIG_STOP_ON_ERROR : true()
1414
}
15-
let $resolve := function($func as xs:string, $arity as xs:int) {
15+
let $resolve := function($func as xs:string, $arity as xs:integer) {
1616
try {
1717
function-lookup(xs:QName($func), $arity)
1818
} catch * {

0 commit comments

Comments
 (0)