Skip to content
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

Closed
peter-ahe-google opened this issue Dec 6, 2012 · 6 comments
Closed

fullParseUnit doesn't actually work #7178

peter-ahe-google opened this issue Dec 6, 2012 · 6 comments

Comments

@peter-ahe-google
Copy link
Contributor

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)

@nex3
Copy link
Member

nex3 commented Dec 7, 2012

Marked this as blocking #7198.

@kasperl
Copy link

kasperl commented May 23, 2013

Added TriageForM5 label.

@kasperl
Copy link

kasperl commented May 28, 2013

Removed TriageForM5 label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@karlklose
Copy link
Contributor

Verified working as expected in 79a8654

@kevmoo kevmoo removed the triaged label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants