Open Abdurrahman98XX opened 6 months ago
@scheglov
I cannot reproduce it. The test below reports some errors, but no crash.
solo_test_X() async {
newFile('$testPackageLibPath/a.dart', r'''
part 'test.dart';
''');
await assertErrorsInCode(r'''
part 'a.dart';
part of 'a.dart';
''', [
error(ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART, 15, 4),
]);
}
Hmmm, part 'a.dart'; part of 'a.dart';
is not derivable from <libraryDeclaration>
and not derivable from <partDeclaration>
, which would presumably make it a syntax error?
Sorry, yes, you are right, there is a syntactic error. I was mostly saying that there is no crash, and kind of the diagnostic did not seem important then :-) I updated my previous message.
dart info
)what causes issue is making file have a
part
andpart of
in the same filesome logs from LSP
fixing it is by removing the unlogical syntax, the issue disappers but after ide restart