Class Sass::Tree::WhileNode
In: lib/sass/tree/while_node.rb
Parent: Node

A dynamic node representing a Sass `@while` loop.

@see Sass::Tree

Methods

_perform   invalid_child?   new   to_src  

Public Class methods

@param expr [Script::Node] The parse tree for the continue expression

Protected Instance methods

Runs the child nodes until the continue expression becomes false.

@param environment [Sass::Environment] The lexical environment containing

  variable and mixin values

@return [Array<Tree::Node>] The resulting static nodes @see Sass::Tree

Returns an error message if the given child node is invalid, and false otherwise.

{ExtendNode}s are valid within {WhileNode}s.

@param child [Tree::Node] A potential child node. @return [Boolean, String] Whether or not the child node is valid,

  as well as the error message to display if it is invalid

[Validate]