-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See sass/sass#3340 See #1727
- Loading branch information
Showing
25 changed files
with
1,315 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2022 Google Inc. Use of this source code is governed by an | ||
// MIT-style license that can be found in the LICENSE file or at | ||
// https://opensource.org/licenses/MIT. | ||
|
||
import 'package:meta/meta.dart'; | ||
|
||
/// A combinator that defines the relationship between selectors in a | ||
/// [ComplexSelector]. | ||
/// | ||
/// {@category Selector} | ||
@sealed | ||
class Combinator { | ||
/// Matches the right-hand selector if it's immediately adjacent to the | ||
/// left-hand selector in the DOM tree. | ||
static const nextSibling = Combinator._("+"); | ||
|
||
/// Matches the right-hand selector if it's a direct child of the left-hand | ||
/// selector in the DOM tree. | ||
static const child = Combinator._(">"); | ||
|
||
/// Matches the right-hand selector if it comes after the left-hand selector | ||
/// in the DOM tree. | ||
static const followingSibling = Combinator._("~"); | ||
|
||
/// The combinator's token text. | ||
final String _text; | ||
|
||
const Combinator._(this._text); | ||
|
||
String toString() => _text; | ||
} |
Oops, something went wrong.