-
Notifications
You must be signed in to change notification settings - Fork 44
ddc investigation #129
Comments
Are these bugs in DDC or issues with packages that have gone undetected because Dart allows this ambiguity? |
These are:
For the 2nd item, you need to opt-in to what I think amounts to a sound type system in order to get much better JavaScript output. Definitely a trade-off I'd be comfortable with. |
https://github.com/radicaled/dart-markdown/tree/fix_type_problems Each branch passes The latest ddc package is |
Much, much reduced number of errors:
|
Whoops -- I had a commit locally I didn't push for frappe. I've updated the |
Yup, those are fixed as well now; just the two remaining from source_span. |
Hm... looks like I'm not seeing this on 0.1.1+1, so I don't know if this is a regression in 0.1.4 or intended behavior. Either way, https://github.com/radicaled/source_span/tree/fix_type_problems It looks like SourceSpan union(SourceSpan other) {
if (other is! FileSpan) return super.union(other);
var span = expand(other);
var beginSpan = span._start == _start ? this : other as FileSpan;
var endSpan = span._end == _end ? this : other as FileSpan;
if (beginSpan._end < endSpan._start) {
throw new ArgumentError("Spans $this and $other are disjoint.");
}
return span;
} The |
I think the negative I'll patch that last git ref in - |
Cool! It all compiles ( |
Thanks for giving the dev compiler a try @devoncarew. Very exciting. 🍕 🎈 |
Thanks! @radicaled did all the work. I'm excited to consume the output, probably once things are a bit further along. |
Closing this one; will open new issues against the newer version of ddc. |
From the 0.1.4 version of ddc (
grind ddc
):Looks like the ddc doesn't like frappe, and has a few issues with
markdown
andsource_span
.The text was updated successfully, but these errors were encountered: