diff --git a/analysis/pubspec.yaml b/analysis/pubspec.yaml index 39956ead..083b5d78 100644 --- a/analysis/pubspec.yaml +++ b/analysis/pubspec.yaml @@ -1,7 +1,6 @@ name: sass_analysis version: 0.0.0 description: Shared analysis options for Sass team packages. -author: Sass Team homepage: https://github.com/sass/dart-sass/tree/master/analysis publish_to: none diff --git a/lib/src/ast/sass/argument_declaration.dart b/lib/src/ast/sass/argument_declaration.dart index 7510093c..9d26652d 100644 --- a/lib/src/ast/sass/argument_declaration.dart +++ b/lib/src/ast/sass/argument_declaration.dart @@ -149,7 +149,9 @@ class ArgumentDeclaration implements SassNode { if (names.contains(argument.name)) return false; } else if (names.contains(argument.name)) { namedUsed++; - } else if (argument.defaultValue == null) return false; + } else if (argument.defaultValue == null) { + return false; + } } if (restArgument != null) return true; diff --git a/lib/src/node/function.dart b/lib/src/node/function.dart index 20153d7f..70869827 100644 --- a/lib/src/node/function.dart +++ b/lib/src/node/function.dart @@ -5,7 +5,7 @@ import 'package:js/js.dart'; @JS("Function") -class JSFunction implements Function { +class JSFunction { external JSFunction(String arg1, [String? arg2, String? arg3]); // Note that this just invokes the function with the given arguments, rather diff --git a/test/node_api/api.dart b/test/node_api/api.dart index 8a0dbddb..4f9ed9c4 100644 --- a/test/node_api/api.dart +++ b/test/node_api/api.dart @@ -73,7 +73,7 @@ class SassTypes { } @JS() -class NodeSassBooleanClass implements Function { +class NodeSassBooleanClass { external NodeSassBoolean call(); external NodeSassBoolean get TRUE; external NodeSassBoolean get FALSE; @@ -124,13 +124,13 @@ class NodeSassMap { } @JS() -class NodeSassNullClass implements Function { +class NodeSassNullClass { external Object call(); external NodeSassNull get NULL; } @JS() -class NodeSassNull implements Function { +class NodeSassNull { external Constructor get constructor; } diff --git a/test/node_api/value/list_test.dart b/test/node_api/value/list_test.dart index 20129d84..2e6a6228 100644 --- a/test/node_api/value/list_test.dart +++ b/test/node_api/value/list_test.dart @@ -108,8 +108,9 @@ void main() { test( "lists with undefined separators are reported as having space " "separators", () { - expect(parseValue("()").getSeparator(), isFalse); - expect(parseValue("join((), 1px)").getSeparator(), isFalse); + expect(parseValue("()").getSeparator(), isFalse); + expect( + parseValue("join((), 1px)").getSeparator(), isFalse); }); test("has a useful .constructor.name", () {