mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
e85d9a7afc
This gets the project analyzer-clean, but the tests are still failing.
19 lines
585 B
Dart
19 lines
585 B
Dart
// Copyright 2017 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:sass/sass.dart';
|
|
|
|
/// An [Importer] whose [canonicalize] and [load] methods are provided by
|
|
/// closures.
|
|
class TestImporter extends Importer {
|
|
final Uri? Function(Uri url) _canonicalize;
|
|
final ImporterResult? Function(Uri url) _load;
|
|
|
|
TestImporter(this._canonicalize, this._load);
|
|
|
|
Uri? canonicalize(Uri url) => _canonicalize(url);
|
|
|
|
ImporterResult? load(Uri url) => _load(url);
|
|
}
|