Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.13 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.13 KB

Built-In Functions

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 the functions.dart file, although in most cases this is actually parsed as an IfExpression 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 like if(...$args) or meta.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.