ligasgr / intellij-xquery

Plugin to support XQuery in Intellij Idea
Apache License 2.0
35 stars 23 forks source link

Undeclared parameter that is not referenced in a for..in construct not flagged as an error. #140

Closed rhdunn closed 8 years ago

rhdunn commented 8 years ago

Given:

declare function foo() {
    for $bar in $bar return <bar>{$bar}</bar>
};

The IDE does not flag $bar from the in $bar section as undeclared. The for $bar part is declaring $bar for the return <bar>{$bar}</bar> section, so those references to $bar should not be flagged with errors.