dart-sass/lib/src/ast/css/value.dart

21 lines
524 B
Dart
Raw Normal View History

2016-05-24 20:58:52 +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.
import 'package:source_span/source_span.dart';
2016-05-28 01:09:03 +02:00
import '../../visitor/css.dart';
2016-05-24 20:58:52 +02:00
import 'node.dart';
2016-05-24 21:33:37 +02:00
class CssValue<T> implements CssNode {
2016-05-24 20:58:52 +02:00
final T value;
final SourceSpan span;
CssValue(this.value, {this.span});
2016-05-28 01:09:03 +02:00
/*=T*/ accept/*<T>*/(CssVisitor/*<T>*/ visitor) => visitor.visitValue(this);
2016-05-24 20:58:52 +02:00
String toString() => value.toString();
}