Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Nov 27, 2023
1 parent 31a89c0 commit e6ff49b
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions lib/src/js/compiler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ class AsyncCompiler extends Compiler {
}
}

/// The JS API Compiler class
///
/// See https://github.com/sass/sass/spec/tree/main/js-api/compile.d.ts for
/// details.
/// The JavaScript `Compiler` class.
final JSClass compilerClass = () {
var jsClass = createJSClass('sass.Compiler', () => Compiler());

Expand All @@ -57,16 +54,9 @@ final JSClass compilerClass = () {
return jsClass;
}();

/// Returns an instance of the JS API Compiler class
///
/// See https://github.com/sass/sass/spec/tree/main/js-api/compile.d.ts for
/// details.
Compiler initCompiler() => Compiler();

/// The JS AsyncCompiler class
///
/// See https://github.com/sass/sass/spec/tree/main/js-api/compile.d.ts for
/// details.
/// The JavaScript `AsyncCompiler` class.
final JSClass asyncCompilerClass = () {
var jsClass = createJSClass('sass.AsyncCompiler', () => AsyncCompiler());

Expand Down Expand Up @@ -97,8 +87,4 @@ final JSClass asyncCompilerClass = () {
return jsClass;
}();

/// Resolves an instance of the JS API AsyncCompiler class
///
/// See https://github.com/sass/sass/spec/tree/main/js-api/compile.d.ts for
/// details.
Promise initAsyncCompiler() => futureToPromise((() async => AsyncCompiler())());

0 comments on commit e6ff49b

Please sign in to comment.