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



120
121
122
123
124
125
126
127
128
129
130
# File 'lib/scss_lint/sass/tree.rb', line 120

def children
  add_line_numbers_to_args(args)

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

  concat_expr_lists super, args, keyword_exprs, splat
end