This directory contains the standard functions that are built into Sass itself,
both those that are available globally and those that are available only through
built-in modules. Each of the files here exports a corresponding
BuiltInModule
, and most define a list of global functions as well.
There are a few functions that Sass supports that aren't defined here:
-
The
if()
function is defined directly in thefunctions.dart
file, although in most cases this is actually parsed as anIfExpression
and handled directly by the evaluator since it has special behavior about when its arguments are evaluated. The function itself only exists for edge cases likeif(...$args)
ormeta.get-function("if")
. -
Certain functions in the
sass:meta
module require runtime information that's only available to the evaluator. These functions are defined in the evaluator itself so that they have access to its private variables.