overstory / marklogic-intellij-plugin

Plugin to support XQuery + MarkLogic debugging in Intellij Idea
Apache License 2.0
12 stars 2 forks source link

Support implicitly declared variables within XQuery 3.1 catch clause #57

Closed willsthompson closed 4 years ago

willsthompson commented 5 years ago

See: https://www.w3.org/TR/xquery-31/#id-try-catch, ex:

try {
    fn:error(xs:QName('my:error'))
}
catch * {
  xdmp:log(($err:code, $err:description, $err:value, $err:module, $err:line-number, $err:column-number, $err:additional))
}
ronhitchens commented 4 years ago

This is done. Added special case to the resolver for references to these variables when they appear under a catch clause.

ronhitchens commented 4 years ago

This is deployed in release 1.1.