| commit | 35bef7fe4dfc98b1fbc77a21b80df0765e6c8690 | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch@google.com> | Thu May 11 12:47:38 2023 -0700 |
| committer | GitHub <noreply@github.com> | Thu May 11 12:47:38 2023 -0700 |
| tree | c2e11af04da3e8b0773ea69fd3a3b7f223d79862 | |
| parent | c4e904c4249ca676b2e350f3ea5c046ec3f000ab [diff] |
Simplify TopLevelIncludes visitor (#180) This is a static method on a private class so there is no usage outside the library and it is safe to refactor. The returned `bool` was not read, and the `messages` argument was unused. Remove both to simplify `replace()` implementation.
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.