2016-08-27 11:06:15 +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-08-28 01:12:17 +02:00
|
|
|
import 'ast/sass.dart';
|
2016-08-27 11:06:15 +02:00
|
|
|
import 'callable.dart';
|
|
|
|
import 'environment.dart';
|
|
|
|
import 'value.dart';
|
|
|
|
|
|
|
|
void defineCoreFunctions(Environment environment) {
|
2016-08-29 00:04:48 +02:00
|
|
|
environment.setFunction(new BuiltInCallable(
|
|
|
|
"inspect",
|
2016-08-27 11:06:15 +02:00
|
|
|
new ArgumentDeclaration([new Argument("value")]),
|
2016-09-19 18:07:29 +02:00
|
|
|
(arguments) => new SassString(arguments.single.toString())));
|
2016-08-27 11:06:15 +02:00
|
|
|
}
|