commit | c9528fc6f66dfa732e54d6c6cfd258c29ddc134f | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Fri Dec 27 15:54:33 2019 -0800 |
committer | GitHub <noreply@github.com> | Fri Dec 27 15:54:33 2019 -0800 |
tree | 9262e0e981d896fbba5606e5ce05e4b05c605801 | |
parent | ec823a57d4081185099c55f78250b74c48166809 [diff] |
Add return types and remove local variable types (#98) The return types do, in some cases, change the interface of a public API, but only to make it more descriptive of behavior. Only code that would have had runtime errors should be statically impacted by the change.
A Dart CSS parser.
Parsing CSS is easy!
import 'package:csslib/parser.dart'; main() { var stylesheet = parse( '.foo { color: red; left: 20px; top: 20px; width: 100px; height:200px }'); print(stylesheet.toDebugString()); }
You can pass a String
or List<int>
to parse
.