Commit dc41b0df by Aaron Leung

Got the optimized selectors to emit correctly.

parent 0dbb5f9c
...@@ -43,6 +43,7 @@ namespace Sass { ...@@ -43,6 +43,7 @@ namespace Sass {
} break; } break;
case selector: { case selector: {
cerr << "emitting selector with " << size() << " children" << endl;
string result; string result;
if (!has_backref && !prefix.empty()) { if (!has_backref && !prefix.empty()) {
result += prefix; result += prefix;
...@@ -64,7 +65,7 @@ namespace Sass { ...@@ -64,7 +65,7 @@ namespace Sass {
for (int i = 1; i < size(); ++i) { for (int i = 1; i < size(); ++i) {
Node::Type t = at(i).type; Node::Type t = at(i).type;
result += " "; result += " ";
result += at(i).to_string(at(0).has_backref ? prefix : ""); result += at(i).to_string(at(i).has_backref ? prefix : "");
} }
return result; return result;
} break; } break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment