| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library csslib.src.validate; | 5 library csslib.src.validate; |
| 6 | 6 |
| 7 import 'package:csslib/visitor.dart'; | 7 import 'package:csslib/visitor.dart'; |
| 8 import 'package:source_span/source_span.dart'; | 8 import 'package:source_span/source_span.dart'; |
| 9 | 9 |
| 10 /** Can be thrown on any Css runtime problem includes source location. */ | 10 /** Can be thrown on any Css runtime problem includes source location. */ |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 | 119 |
| 120 // Every selector must match. | 120 // Every selector must match. |
| 121 Selector selector = selectors[0]; | 121 Selector selector = selectors[0]; |
| 122 assert((matches >= 0 ? matches : -matches) == | 122 assert((matches >= 0 ? matches : -matches) == |
| 123 selector.simpleSelectorSequences.length); | 123 selector.simpleSelectorSequences.length); |
| 124 } | 124 } |
| 125 } | 125 } |
| OLD | NEW |