mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
Selector Abstract Syntax Tree
This directory contains the abstract syntax tree that represents a parsed CSS selector. This AST is constructed recursively by the selector parser. It's fully immutable.
Unlike the Sass AST, which is parsed from a raw source string before being evaluated, the selector AST is parsed during evaluation. This is necessary to ensure that there's a chance to resolve interpolation before fully parsing the selectors in question.
Although this AST doesn't include any SassScript, it does include a few
Sass-specific constructs: the parent selector & and placeholder selectors.
Parent selectors are resolved by the evaluator before it hands the AST off to
the serializer, while placeholders are omitted in the serializer itself.