Hooray for exports!

This commit is contained in:
Natalie Weizenbaum 2016-05-24 16:04:59 -07:00
parent b88d0158ec
commit 8a395d7f7b
11 changed files with 22 additions and 45 deletions

View File

@ -4,4 +4,10 @@
import '../node.dart';
export '../../ast/css/comment.dart';
export '../../ast/css/declaration.dart';
export '../../ast/css/style_rule.dart';
export '../../ast/css/stylesheet.dart';
export '../../ast/css/value.dart';
abstract class CssNode extends AstNode {}

View File

@ -5,6 +5,12 @@
import '../../visitor/expression.dart';
import 'node.dart';
export 'expression/identifier.dart';
export 'expression/interpolation.dart';
export 'expression/list.dart';
export 'expression/string.dart';
export 'expression/variable.dart';
abstract class Expression implements SassNode {
/*=T*/ visit/*<T>*/(ExpressionVisitor/*<T>*/ visitor);
}

View File

@ -5,6 +5,12 @@
import '../../visitor/statement.dart';
import 'node.dart';
export 'comment.dart';
export 'declaration.dart';
export 'style_rule.dart';
export 'stylesheet.dart';
export 'variable_declaration.dart';
abstract class Statement implements SassNode {
/*=T*/ visit/*<T>*/(StatementVisitor/*<T>*/ visitor);
}

View File

@ -4,7 +4,6 @@
import 'package:source_span/source_span.dart';
import 'ast/sass/expression/interpolation.dart';
import 'ast/sass/expression.dart';
class InterpolationBuffer implements StringSink {

View File

@ -5,18 +5,8 @@
import 'package:charcode/charcode.dart';
import 'package:string_scanner/string_scanner.dart';
import 'ast/sass/comment.dart';
import 'ast/sass/declaration.dart';
import 'ast/sass/expression.dart';
import 'ast/sass/expression/identifier.dart';
import 'ast/sass/expression/interpolation.dart';
import 'ast/sass/expression/list.dart';
import 'ast/sass/expression/string.dart';
import 'ast/sass/expression/variable.dart';
import 'ast/sass/statement.dart';
import 'ast/sass/style_rule.dart';
import 'ast/sass/stylesheet.dart';
import 'ast/sass/variable_declaration.dart';
import 'interpolation_buffer.dart';
import 'value/list.dart';

View File

@ -2,4 +2,8 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
export 'value/identifier.dart';
export 'value/list.dart';
export 'value/string.dart';
class Value {}

View File

@ -2,14 +2,9 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import 'ast/sass/comment.dart';
import 'ast/sass/declaration.dart';
import 'ast/sass/expression.dart';
import 'ast/sass/node.dart';
import 'ast/sass/statement.dart';
import 'ast/sass/style_rule.dart';
import 'ast/sass/stylesheet.dart';
import 'ast/sass/variable_declaration.dart';
import 'visitor/expression.dart';
import 'visitor/statement.dart';

View File

@ -3,11 +3,6 @@
// https://opensource.org/licenses/MIT.
import '../ast/sass/expression.dart';
import '../ast/sass/expression/identifier.dart';
import '../ast/sass/expression/interpolation.dart';
import '../ast/sass/expression/list.dart';
import '../ast/sass/expression/string.dart';
import '../ast/sass/expression/variable.dart';
class ExpressionVisitor<T> {
T visit(Expression expression) => expression.visit(this);

View File

@ -3,16 +3,8 @@
// https://opensource.org/licenses/MIT.
import '../../ast/sass/expression.dart';
import '../../ast/sass/expression/identifier.dart';
import '../../ast/sass/expression/interpolation.dart';
import '../../ast/sass/expression/list.dart';
import '../../ast/sass/expression/string.dart';
import '../../ast/sass/expression/variable.dart';
import '../../environment.dart';
import '../../value.dart';
import '../../value/identifier.dart';
import '../../value/list.dart';
import '../../value/string.dart';
import '../expression.dart';
class PerformExpressionVisitor extends ExpressionVisitor<Value> {

View File

@ -2,12 +2,7 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import '../ast/sass/comment.dart';
import '../ast/sass/declaration.dart';
import '../ast/sass/statement.dart';
import '../ast/sass/style_rule.dart';
import '../ast/sass/stylesheet.dart';
import '../ast/sass/variable_declaration.dart';
class StatementVisitor<T> {
T visit(Statement node) => node.visit(this);

View File

@ -4,20 +4,9 @@
import 'dart:collection';
import '../../ast/css/comment.dart';
import '../../ast/css/declaration.dart';
import '../../ast/css/node.dart';
import '../../ast/css/style_rule.dart';
import '../../ast/css/stylesheet.dart';
import '../../ast/css/value.dart';
import '../../ast/sass/comment.dart';
import '../../ast/sass/declaration.dart';
import '../../ast/sass/expression.dart';
import '../../ast/sass/expression/interpolation.dart';
import '../../ast/sass/statement.dart';
import '../../ast/sass/style_rule.dart';
import '../../ast/sass/stylesheet.dart';
import '../../ast/sass/variable_declaration.dart';
import '../../environment.dart';
import '../../utils.dart';
import '../../value.dart';