[ 
https://issues.apache.org/jira/browse/DAFFODIL-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16943688#comment-16943688
 ] 

Mike Beckerle commented on DAFFODIL-1060:
-----------------------------------------

No not sure. In fact it appears that compileProperty method of the expression 
compiler has an explicit flag isEvaluatedAbove which if set true (which it is 
for dfdl:occursCount), adjust relative paths so that they appear to be on the 
child, even though the child doesn't exist at the time of evaluation.

So my comment is incorrect about occursCounts needing a special message.

> More precise file and line number and character position information within 
> DPath expressions
> ---------------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1060
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1060
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Diagnostics, Front End, Usability
>    Affects Versions: s15
>            Reporter: Mike Beckerle
>            Priority: Major
>
> Right now the Dpath expression parser doesn't provide detailed information 
> about where sub-expressions are within an overall expression.
> Since expressions can be fairly large, finer granularity positions for 
> diagnostic messaging would be a big improvement. Right now we can just say 
> "this error occurred", and the position is just that of the entire expression.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to