You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2022/03/11 18:06:37 UTC

[GitHub] [daffodil] stevedlawrence commented on pull request #772: Clear diagnostics (warnings) on saveParser.

stevedlawrence commented on pull request #772:
URL: https://github.com/apache/daffodil/pull/772#issuecomment-1065356416


   The `expect()` function resturns a [Result](http://javadox.com/net.sf.expectit/expectit-core/0.9.0/net/sf/expectit/Result.html), which has a `getBefore` function to to get the data before the match. Though it just says "part of the data". I'm not sure how back far it goes. Maybe it's some small buffer, maybe it's since the previous expect call? Not sure. If you can `expect` a string that is guaranteed to appear after a warning (if a warning were printed), then that /might/ work.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org