Project

Profile

Help

Bug #5696

closed

Created LetClause does not have location set to it

Added by Radu Coravu over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2022-09-26
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

Using Saxon 11. In the method "net.sf.saxon.query.XQueryParser.parseGroupByClause(FLWORExpression, List)" a LetClause is created:

LetClause letClause = new LetClause();

maybe a location should also be set on it:

setLocation(letClause, t.currentTokenStartOffset);

otherwise the localization for such elements will be off.

Also the method "net.sf.saxon.expr.Locatable.getLocation()" has no Javadoc, does it allow the possibility to return a null item?

Please register to edit this issue

Also available in: Atom PDF