53a905cde1
This is similar to the existing `parseFile` function, but it is more efficient, and it supports the same parameters `featureSet` and `throwIfDiagnostics` as `parseString`. Change-Id: I4b9ecc36a137cc1c99e671e379f00afa3942c9ba Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105542 Commit-Queue: Paul Berry <paulberry@google.com> Auto-Submit: Paul Berry <paulberry@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>