dart-sass/lib/src/value.dart

25 lines
636 B
Dart
Raw Normal View History

2016-05-24 20:56:53 +02:00
// Copyright 2016 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.
2016-05-25 05:01:43 +02:00
import 'value/boolean.dart';
2016-05-25 02:04:16 +02:00
import 'value/string.dart';
2016-05-25 05:01:43 +02:00
export 'value/boolean.dart';
2016-05-25 01:04:59 +02:00
export 'value/identifier.dart';
export 'value/list.dart';
export 'value/string.dart';
2016-05-25 05:01:43 +02:00
abstract class Value {
const Value();
2016-05-25 02:04:16 +02:00
// TODO: call the proper stringifying method
Value unaryPlus() => new SassString("+$this");
Value unaryMinus() => new SassString("-$this");
Value unaryDivide() => new SassString("/$this");
2016-05-25 05:01:43 +02:00
Value unaryNot() => Boolean.sassFalse;
2016-05-25 02:04:16 +02:00
}