mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
Update the documentation comment for parseFile().
Bug: https://github.com/dart-lang/sdk/issues/49512 Change-Id: I74a558be91055b3fae24b4e5db3f70875dc7a218 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252706 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
4359108a8b
commit
955f1e90ec
1 changed files with 6 additions and 6 deletions
|
@ -28,14 +28,14 @@ import 'package:analyzer/src/string_source.dart';
|
|||
/// query it to get an [AnalysisSession], and then call `getParsedUnit`.
|
||||
///
|
||||
/// Callers that don't need the feature set to be strictly correct can pass in
|
||||
/// `FeatureSet.fromEnableFlags([])` to enable the default set of features; this
|
||||
/// is much more performant than using an analysis session, because it doesn't
|
||||
/// require the analyzer to process the SDK.
|
||||
/// `FeatureSet.latestLanguageVersion()` to enable the default set of features;
|
||||
/// this is much more performant than using an analysis session, because it
|
||||
/// doesn't require the analyzer to process the SDK.
|
||||
///
|
||||
/// If [throwIfDiagnostics] is `true` (the default), then if any diagnostics are
|
||||
/// produced because of syntactic errors in the [content] an `ArgumentError`
|
||||
/// will be thrown. If the parameter is `false`, then the caller can check the
|
||||
/// result to see whether there are any errors.
|
||||
/// produced because of syntactic errors in the file an `ArgumentError` will be
|
||||
/// thrown. If the parameter is `false`, then the caller can check the result
|
||||
/// to see whether there are any errors.
|
||||
ParseStringResult parseFile(
|
||||
{required String path,
|
||||
ResourceProvider? resourceProvider,
|
||||
|
|
Loading…
Reference in a new issue