2021-07-29 03:28:00 +02:00
|
|
|
// Copyright 2021 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.
|
|
|
|
|
|
|
|
/// We strongly recommend importing this library with the prefix `sass`.
|
|
|
|
library sass;
|
|
|
|
|
2021-10-05 05:53:31 +02:00
|
|
|
// ignore_for_file: implementation_imports
|
|
|
|
|
2021-07-29 03:28:00 +02:00
|
|
|
import 'package:sass/sass.dart';
|
|
|
|
import 'package:sass/src/parse/parser.dart';
|
|
|
|
|
|
|
|
export 'package:sass/sass.dart';
|
|
|
|
export 'package:sass/src/ast/node.dart';
|
|
|
|
export 'package:sass/src/ast/sass.dart' hide AtRootQuery;
|
2022-07-16 00:43:48 +02:00
|
|
|
export 'package:sass/src/ast/selector.dart';
|
2021-07-29 03:28:00 +02:00
|
|
|
export 'package:sass/src/async_import_cache.dart';
|
|
|
|
export 'package:sass/src/exception.dart' show SassFormatException;
|
|
|
|
export 'package:sass/src/import_cache.dart';
|
2022-07-16 00:43:48 +02:00
|
|
|
export 'package:sass/src/value.dart' hide ColorFormat, SpanColorFormat;
|
2021-07-29 03:28:00 +02:00
|
|
|
export 'package:sass/src/visitor/find_dependencies.dart';
|
|
|
|
export 'package:sass/src/visitor/interface/expression.dart';
|
2022-07-16 00:43:48 +02:00
|
|
|
export 'package:sass/src/visitor/interface/selector.dart';
|
2021-07-29 03:28:00 +02:00
|
|
|
export 'package:sass/src/visitor/interface/statement.dart';
|
|
|
|
export 'package:sass/src/visitor/recursive_ast.dart';
|
2022-07-16 00:43:48 +02:00
|
|
|
export 'package:sass/src/visitor/recursive_selector.dart';
|
2021-07-29 03:28:00 +02:00
|
|
|
export 'package:sass/src/visitor/recursive_statement.dart';
|
2023-02-16 22:34:57 +01:00
|
|
|
export 'package:sass/src/visitor/replace_expression.dart';
|
2021-07-29 03:28:00 +02:00
|
|
|
export 'package:sass/src/visitor/statement_search.dart';
|
|
|
|
|
|
|
|
/// Parses [text] as a CSS identifier and returns the result.
|
|
|
|
///
|
|
|
|
/// Throws a [SassFormatException] if parsing fails.
|
|
|
|
///
|
|
|
|
/// {@category Parsing}
|
|
|
|
String parseIdentifier(String text) =>
|
|
|
|
Parser.parseIdentifier(text, logger: Logger.quiet);
|
|
|
|
|
|
|
|
/// Returns whether [text] is a valid CSS identifier.
|
|
|
|
///
|
|
|
|
/// {@category Parsing}
|
|
|
|
bool isIdentifier(String text) =>
|
|
|
|
Parser.isIdentifier(text, logger: Logger.quiet);
|