Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Closes #894 See sass/sass#2780
- Loading branch information
Showing
8 changed files
with
193 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2020 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:source_span/source_span.dart'; | ||
|
||
import '../interpolation.dart'; | ||
import '../supports_condition.dart'; | ||
|
||
/// A supports condition that represents the forwards-compatible | ||
/// `<general-enclosed>` production. | ||
class SupportsAnything implements SupportsCondition { | ||
/// The contents of the condition. | ||
final Interpolation contents; | ||
|
||
final FileSpan span; | ||
|
||
SupportsAnything(this.contents, this.span); | ||
|
||
String toString() => "($contents)"; | ||
} |
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,23 @@ | ||
// Copyright 2020 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:source_span/source_span.dart'; | ||
|
||
import '../interpolation.dart'; | ||
import '../supports_condition.dart'; | ||
|
||
/// A function-syntax condition. | ||
class SupportsFunction implements SupportsCondition { | ||
/// The name of the function. | ||
final Interpolation name; | ||
|
||
/// The arguments to the function. | ||
final Interpolation arguments; | ||
|
||
final FileSpan span; | ||
|
||
SupportsFunction(this.name, this.arguments, this.span); | ||
|
||
String toString() => "$name($arguments)"; | ||
} |
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