Class ReplaceMixins

java.lang.Object
com.google.common.css.compiler.ast.DefaultTreeVisitor
com.google.common.css.compiler.passes.ReplaceMixins
All Implemented Interfaces:
AtRuleHandler, CssCompilerPass, CssTreeVisitor

public class ReplaceMixins extends DefaultTreeVisitor implements CssCompilerPass
Compiler pass that replaces mixins with the corresponding mixin definitions and replaces the variables in the definitions with the values given by the mixin.

In addition, this pass ensures that each mixin has a matching definition and that the argument count of the use and the definition is equal.

CollectMixinDefinitions has to run before. ReplaceConstantReferences has to run afterwards.