Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

invalid dart codegen #45

Closed
jmesserly opened this issue Feb 12, 2015 · 2 comments
Closed

invalid dart codegen #45

jmesserly opened this issue Feb 12, 2015 · 2 comments

Comments

@jmesserly
Copy link
Contributor

this file has invalid code, snippet below.
pub run dart_style:format test/dart_codegen/expect/dart.async/stream.dart

I added some newlines after curlies and semicolons to make it readable

 factory Stream.periodic(Duration period, [T computation(int computationCount)]) {
if (computation == null) computation = ((__x48) => DDC$RT.wrap((<bottom> f(dynamic __u43)) {
<bottom> c(dynamic x0) => ((__x42) => DDC$RT.cast(__x42, Null, T, "CastResult", """line 126, column 44 of dart:async/stream.dart: """, __x42 is T, false))(f(x0));
 return f == null ? null : c;

}

there's rolling parse failure starting from <bottom> f(

@jmesserly
Copy link
Contributor Author

fyi to @munificent ... it's not a formatter bug :)
fyi to @vsmenon I think this was introduced in https://chromereviews.googleplex.com/157727013

@leafpetersen
Copy link
Contributor

I believe that this was fixed in https://chromereviews.googleplex.com/151297013 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants