Skip to content

Commit

Permalink
Typo fixes (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and nex3 committed Oct 10, 2019
1 parent c663995 commit a95d61e
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/src/ast/sass/statement/variable_declaration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class VariableDeclaration implements Statement {
/// The name of the variable.
final String name;

/// The comment immediatly preceding this declaration.
/// The comment immediately preceding this declaration.
SilentComment comment;

/// The value the variable is being assigned to.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/ast/selector/complex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ComplexSelector extends Selector {
/// This isn't valid CSS, but Sass supports it for CSS hack purposes.
final List<ComplexSelectorComponent> components;

/// Whether a line break should be emited *before* this selector.
/// Whether a line break should be emitted *before* this selector.
final bool lineBreak;

/// The minimum possible specificity that this selector can have.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/async_import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AsyncImportCache {
_importCache = {},
_resultsCache = {};

/// Creates an import cache without any globally-avaiable importers.
/// Creates an import cache without any globally-available importers.
AsyncImportCache.none({Logger logger})
: _importers = const [],
_logger = logger ?? const Logger.stderr(),
Expand Down
6 changes: 3 additions & 3 deletions lib/src/functions/color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ final global = UnmodifiableListView([
if (argument is SassString &&
!argument.hasQuotes &&
argument.text.contains(_microsoftFilterStart)) {
// Suport the proprietary Microsoft alpha() function.
// Support the proprietary Microsoft alpha() function.
return _functionString("alpha", arguments);
}

Expand All @@ -187,7 +187,7 @@ final global = UnmodifiableListView([
argument is SassString &&
!argument.hasQuotes &&
argument.text.contains(_microsoftFilterStart))) {
// Suport the proprietary Microsoft alpha() function.
// Support the proprietary Microsoft alpha() function.
return _functionString("alpha", arguments);
}

Expand Down Expand Up @@ -292,7 +292,7 @@ final module = BuiltInModule("color", functions: [
argument is SassString &&
!argument.hasQuotes &&
argument.text.contains(_microsoftFilterStart))) {
// Suport the proprietary Microsoft alpha() function.
// Support the proprietary Microsoft alpha() function.
var result = _functionString("alpha", arguments);
warn("Using color.alpha() for a Microsoft filter is deprecated.\n"
"\n"
Expand Down
4 changes: 2 additions & 2 deletions lib/src/import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_import_cache.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 1e51fceaa60c0a65fa9c447cfe25eda5109a819f
// Checksum: 8555cca43b8d54d392e81f33935fd379d1eb3c72
//
// ignore_for_file: unused_import

Expand Down Expand Up @@ -70,7 +70,7 @@ class ImportCache {
_importCache = {},
_resultsCache = {};

/// Creates an import cache without any globally-avaiable importers.
/// Creates an import cache without any globally-available importers.
ImportCache.none({Logger logger})
: _importers = const [],
_logger = logger ?? const Logger.stderr(),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/visitor/async_evaluate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ class _EvaluateVisitor
}

/// Like `_environment.getFunction`, but also returns built-in
/// globally-avaialble functions.
/// globally-available functions.
AsyncCallable _getFunction(String name, {String namespace}) {
var local = _environment.getFunction(name, namespace: namespace);
if (local != null || namespace != null) return local;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/visitor/evaluate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_evaluate.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 1b5e338c188160941ee0bcad8197006bce384936
// Checksum: f4f4c5d1cbc9894d14b6d8ce7c1a3c09146db9ba
//
// ignore_for_file: unused_import

Expand Down Expand Up @@ -1976,7 +1976,7 @@ class _EvaluateVisitor
}

/// Like `_environment.getFunction`, but also returns built-in
/// globally-avaialble functions.
/// globally-available functions.
Callable _getFunction(String name, {String namespace}) {
var local = _environment.getFunction(name, namespace: namespace);
if (local != null || namespace != null) return local;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/visitor/recursive_statement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'interface/statement.dart';
/// A visitor that recursively traverses each statement in a Sass AST.
///
/// In addition to the methods from [StatementVisitor], this has more general
/// protected methods that can be overriden to add behavior for a wide variety
/// protected methods that can be overridden to add behavior for a wide variety
/// of AST nodes:
///
/// * [visitCallableDeclaration]
Expand Down
4 changes: 2 additions & 2 deletions test/dart_api/function_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ main() {
isEmpty);
});

test("gracefuly handles a custom function throwing", () {
test("gracefully handles a custom function throwing", () {
expect(() {
compileString('a {b: foo()}',
functions: [Callable("foo", "", (arguments) => throw "heck")]);
}, throwsA(const TypeMatcher<SassException>()));
});

test("gracefuly handles a custom function returning null", () {
test("gracefully handles a custom function returning null", () {
expect(() {
compileString('a {b: foo()}',
functions: [Callable("foo", "", (arguments) => null)]);
Expand Down
4 changes: 2 additions & 2 deletions test/hybrid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Future<String> createTempDir() async => (await runHybridExpression(
Future<void> writeTextFile(String path, String text) => runHybridExpression(
'new File(message[0]).writeAsString(message[1])', [path, text]);

/// Creates a directoy at [path].
/// Creates a directory at [path].
Future<void> createDirectory(String path) =>
runHybridExpression('new Directory(message).create()', path);

/// Recursively deletes the directoy at [path].
/// Recursively deletes the directory at [path].
Future<void> deleteDirectory(String path) =>
runHybridExpression('new Directory(message).delete(recursive: true)', path);

Expand Down

0 comments on commit a95d61e

Please sign in to comment.