Class: Sass::Tree::MixinNode

Inherits:
Object
  • Object
show all
Defined in:
lib/scss_lint/sass/tree.rb

Instance Method Summary collapse

Instance Method Details

#childrenObject



107
108
109
110
111
112
113
114
115
116
117
# File 'lib/scss_lint/sass/tree.rb', line 107

def children
  # Keyword mapping is String -> Expr, so convert the string to a variable
  # node that supports lint reporting
  if keywords.any?
    keyword_exprs = keywords.as_stored.map do |var_name, var_expr|
      [create_variable(var_name), var_expr]
    end
  end

  concat_expr_lists super, args, keyword_exprs, splat
end