New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fullParseUnit doesn't actually work #7178
Labels
Comments
Marked this as blocking #7198. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
Verified working as expected in 79a8654 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import 'tests/compiler/dart2js/parser_helper.dart';
void main() {
print(fullParseUnit("int i = 0;"));
}
$ ./sdk/bin/dart test.dart
Unhandled exception:
Expect.isTrue(false, 'Not empty: [ ]') fails.
0 Expect._fail (bootstrap:655:5)
1 Expect.isTrue (bootstrap:494:10)
2 parseBodyCode (file:///.../dart/tests/compiler/dart2js/parser_helper.dart:51:16)
3 fullParseUnit (file:///.../dart/tests/compiler/dart2js/parser_helper.dart:89:23)
4 main (file:///.../dart/test.dart:4:22)
$ ./sdk/bin/dart --checked test.dart
Unhandled exception:
type 'TypeAnnotation' is not a subtype of type 'Modifiers' of 'modifiers'.
0 NodeListener.endTopLevelFields (file:///.../dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart:1192:34)
1 Parser.parseTopLevelMember (file:///.../dart/sdk/lib/_internal/compiler/implementation/scanner/parser.dart:652:33)
2 Parser.parseTopLevelDeclaration (file:///.../dart/sdk/lib/_internal/compiler/implementation/scanner/parser.dart:67:33)
3 Parser.parseUnit (file:///.../dart/sdk/lib/_internal/compiler/implementation/scanner/parser.dart:40:39)
4 fullParseUnit.<anonymous closure> (file:///.../dart/tests/compiler/dart2js/parser_helper.dart:89:68)
5 parseBodyCode (file:///.../dart/tests/compiler/dart2js/parser_helper.dart:47:31)
6 fullParseUnit (file:///.../dart/tests/compiler/dart2js/parser_helper.dart:89:23)
7 main (file:///.../dart/test.dart:4:22)
The text was updated successfully, but these errors were encountered: