diff options
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/tree/MixinDefNode.java')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/tree/MixinDefNode.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/tree/MixinDefNode.java b/theme-compiler/src/com/vaadin/sass/tree/MixinDefNode.java index 0cffbc3203..9f51a959b8 100644 --- a/theme-compiler/src/com/vaadin/sass/tree/MixinDefNode.java +++ b/theme-compiler/src/com/vaadin/sass/tree/MixinDefNode.java @@ -19,6 +19,7 @@ package com.vaadin.sass.tree; import java.util.ArrayList; import java.util.Collection; +import com.vaadin.sass.ScssStylesheet; import com.vaadin.sass.util.DeepCopy; public class MixinDefNode extends Node implements IVariableNode { @@ -73,4 +74,15 @@ public class MixinDefNode extends Node implements IVariableNode { } } + @Override + public void traverse() { + if (!arglist.isEmpty()) { + for (final VariableNode arg : arglist) { + if (arg.getExpr() != null) { + ScssStylesheet.addVariable(arg); + } + } + } + } + } |