mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 13:51:31 +01:00
Fixes typos (#1879)
This commit is contained in:
parent
6310dfb129
commit
5eb66fc219
@ -86,7 +86,7 @@ repository contains language tests that are shared among the main Sass
|
||||
implementations. Any new feature should be thoroughly tested there, and any bug
|
||||
should have a regression test added.
|
||||
|
||||
[sass-spec]: http://github.com/sass/sass-spec
|
||||
[sass-spec]: https://github.com/sass/sass-spec
|
||||
|
||||
To create a new spec:
|
||||
|
||||
|
@ -83,7 +83,7 @@ Future<void> main(List<String> args) async {
|
||||
options.trace ? getTrace(error) ?? stackTrace : null);
|
||||
|
||||
// Exit code 65 indicates invalid data per
|
||||
// http://www.freebsd.org/cgi/man.cgi?query=sysexits.
|
||||
// https://www.freebsd.org/cgi/man.cgi?query=sysexits.
|
||||
//
|
||||
// We let exitCode 66 take precedence for deterministic behavior.
|
||||
if (exitCode != 66) exitCode = 65;
|
||||
|
@ -626,7 +626,7 @@ class Parser {
|
||||
return result;
|
||||
}
|
||||
|
||||
/// Consumes [text] as an identifer, but doesn't verify whether there's
|
||||
/// Consumes [text] as an identifier, but doesn't verify whether there's
|
||||
/// additional identifier text afterwards.
|
||||
///
|
||||
/// Returns `true` if the full [text] is consumed and `false` otherwise, but
|
||||
|
@ -1715,7 +1715,7 @@ abstract class StylesheetParser extends Parser {
|
||||
var wasInParentheses = _inParentheses;
|
||||
|
||||
// We use the convention below of referring to nullable variables that are
|
||||
// shared across anonymous functions in this method with a trailling
|
||||
// shared across anonymous functions in this method with a trailing
|
||||
// underscore. This allows us to copy them to non-underscored local
|
||||
// variables to make it easier for Dart's type system to reason about their
|
||||
// local nullability.
|
||||
|
@ -293,7 +293,7 @@ class SassColor extends Value {
|
||||
}
|
||||
|
||||
/// An algorithm from the CSS3 spec:
|
||||
/// http://www.w3.org/TR/css3-color/#hsl-color.
|
||||
/// https://www.w3.org/TR/css3-color/#hsl-color.
|
||||
static double _hueToRgb(double m1, double m2, double hue) {
|
||||
if (hue < 0) hue += 1;
|
||||
if (hue > 1) hue -= 1;
|
||||
|
@ -143,7 +143,7 @@ const _conversions = {
|
||||
},
|
||||
};
|
||||
|
||||
/// A map from human-readable names of unit types to the convertable units that
|
||||
/// A map from human-readable names of unit types to the convertible units that
|
||||
/// fall into those types.
|
||||
const _unitsByType = {
|
||||
"length": ["in", "cm", "pc", "mm", "q", "pt", "px"],
|
||||
|
@ -3611,7 +3611,7 @@ class _EvaluationContext implements EvaluationContext {
|
||||
final _EvaluateVisitor _visitor;
|
||||
|
||||
/// The AST node whose span should be used for [warn] if no other span is
|
||||
/// avaiable.
|
||||
/// available.
|
||||
final AstNode _defaultWarnNodeWithSpan;
|
||||
|
||||
_EvaluationContext(this._visitor, this._defaultWarnNodeWithSpan);
|
||||
|
@ -5,7 +5,7 @@
|
||||
// DO NOT EDIT. This file was generated from async_evaluate.dart.
|
||||
// See tool/grind/synchronize.dart for details.
|
||||
//
|
||||
// Checksum: a8472983eeb4c8348befed4953326f285b68c4a8
|
||||
// Checksum: d5cb0fe933051782cbfb79ee3d65bc4353471f11
|
||||
//
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
@ -3548,7 +3548,7 @@ class _EvaluationContext implements EvaluationContext {
|
||||
final _EvaluateVisitor _visitor;
|
||||
|
||||
/// The AST node whose span should be used for [warn] if no other span is
|
||||
/// avaiable.
|
||||
/// available.
|
||||
final AstNode _defaultWarnNodeWithSpan;
|
||||
|
||||
_EvaluationContext(this._visitor, this._defaultWarnNodeWithSpan);
|
||||
|
@ -80,7 +80,7 @@ class _FindDependenciesVisitor with RecursiveStatementVisitor {
|
||||
|
||||
/// A struct of different types of dependencies a Sass stylesheet can contain.
|
||||
class DependencyReport {
|
||||
/// An unmodifiable set of all `@use`d URLs in the stylesheet (exluding
|
||||
/// An unmodifiable set of all `@use`d URLs in the stylesheet (excluding
|
||||
/// built-in modules).
|
||||
final Set<Uri> uses;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user