Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 833 Bytes
1 | require 'sass/tree/node' |
2 | |
3 | module Sass::Tree |
4 | # A dynamic node representing a Sass `@while` loop. |
5 | # |
6 | # @see Sass::Tree |
7 | class WhileNode < Node |
8 | # @param expr [Script::Node] The parse tree for the continue expression |
9 | def initialize(expr) |
10 | @expr = expr |
11 | super() |
12 | end |
13 | |
14 | protected |
15 | |
16 | # Runs the child nodes until the continue expression becomes false. |
17 | # |
18 | # @param environment [Sass::Environment] The lexical environment containing |
19 | # variable and mixin values |
20 | # @return [Array<Tree::Node>] The resulting static nodes |
21 | # @see Sass::Tree |
22 | def _perform(environment) |
23 | children = [] |
24 | new_environment = Sass::Environment.new(environment) |
25 | while @expr.perform(environment).to_bool |
26 | children += perform_children(new_environment) |
27 | end |
28 | children |
29 | end |
30 | end |
31 | end |