We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934980b commit ab03a9cCopy full SHA for ab03a9c
pkg/analyzer/lib/src/services/available_declarations.dart
@@ -1920,11 +1920,19 @@ class _File {
1920
}
1921
1922
static CompilationUnit _parse(FeatureSet featureSet, String content) {
1923
- return parseString(
1924
- content: content,
1925
- featureSet: featureSet,
1926
- throwIfDiagnostics: false,
1927
- ).unit;
+ try {
+ return parseString(
+ content: content,
+ featureSet: featureSet,
+ throwIfDiagnostics: false,
1928
+ ).unit;
1929
+ } catch (e) {
1930
1931
+ content: '',
1932
1933
1934
1935
+ }
1936
1937
1938
static String _readContent(File resource) {
0 commit comments