Changes

Jump to navigation Jump to search
404 bytes removed ,  12:52, 26 October 2023
no edit summary
This [[Module Library|XQuery Module]] contains functions for extracting internal information about modules and functions and generating documentation.
 
With {{Announce|Version 11}}, {{Code|inspect:function-annotations}} has been removed as it is now available in the official specification as [https://qt4cg.org/specifications/xpath-functions-40/Overview.html#func-function-annotations <code>fn:function-annotations</code>].
=Conventions=
| '''Errors'''
|{{Error|parse|#Errors}} Error while parsing a module.
|}
 
==inspect:function-annotations==
 
{| width='100%'
|- valign="top"
| width='120' | '''Signature'''
|<pre>inspect:function-annotations(
$function as function(*)
) as map(xs:QName, xs:anyAtomicType*)</pre>
|- valign="top"
| '''Summary'''
|Returns the annotations of the specified {{Code|$function}} in a map.
|- valign="top"
| '''Examples'''
|
* Returns an empty map:
<syntaxhighlight lang="xquery">
inspect:function-annotations(true#0)
</syntaxhighlight>
* Returns a map with a single key <code><nowiki>Q{http://www.w3.org/2012/xquery}private</nowiki></code> and an empty sequence as value:
<syntaxhighlight lang="xquery">
declare %private function local:f() { 'well hidden' };
inspect:function-annotations(local:f#0)
</syntaxhighlight>
|}
=Changelog=
 
;Version 11.0
* Removed: {{Code|inspect:function-annotations}}
;Version 9.6
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu