@@ -69,7 +69,7 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
69
69
case Complex_Selector::ADJACENT_TO: cerr << " {+}" ; break ;
70
70
case Complex_Selector::ANCESTOR_OF: cerr << " { }" ; break ;
71
71
}
72
- cerr << " <" << prettyprint (selector->pstate ().token .ws_before ()) << " > X < " << prettyprint (selector-> pstate (). token . ws_after ()) << " > " << endl;
72
+ cerr << " <" << prettyprint (selector->pstate ().token .ws_before ()) << " >" << endl;
73
73
debug_ast (selector->head (), ind + " " , env);
74
74
debug_ast (selector->tail (), ind + " -" , env);
75
75
} else if (dynamic_cast <Compound_Selector*>(node)) {
@@ -81,7 +81,7 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
81
81
<< (selector->is_optional () ? " [is_optional]" : " -" )
82
82
<< (selector->has_line_break () ? " [line-break]" : " -" )
83
83
<< (selector->has_line_feed () ? " [line-feed]" : " -" ) <<
84
- " <" << prettyprint (selector->pstate ().token .ws_before ()) << " > X < " << prettyprint (selector-> pstate (). token . ws_after ()) << " > " << endl;
84
+ " <" << prettyprint (selector->pstate ().token .ws_before ()) << " >" << endl;
85
85
for (auto i : selector->elements ()) { debug_ast (i, ind + " " , env); }
86
86
} else if (dynamic_cast <Propset*>(node)) {
87
87
Propset* selector = dynamic_cast <Propset*>(node);
@@ -105,7 +105,7 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
105
105
} else if (dynamic_cast <Type_Selector*>(node)) {
106
106
Type_Selector* selector = dynamic_cast <Type_Selector*>(node);
107
107
cerr << ind << " Type_Selector " << selector << " <<" << selector->name () << " >>" << (selector->has_line_break () ? " [line-break]" : " -" ) <<
108
- " <" << prettyprint (selector->pstate ().token .ws_before ()) << " > X < " << prettyprint (selector-> pstate (). token . ws_after ()) << " > " << endl;
108
+ " <" << prettyprint (selector->pstate ().token .ws_before ()) << " >" << endl;
109
109
} else if (dynamic_cast <Selector_Placeholder*>(node)) {
110
110
111
111
Selector_Placeholder* selector = dynamic_cast <Selector_Placeholder*>(node);
@@ -187,7 +187,7 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
187
187
} else if (dynamic_cast <Comment*>(node)) {
188
188
Comment* block = dynamic_cast <Comment*>(node);
189
189
cerr << ind << " Comment " << block << " " << block->tabs () <<
190
- " <" << prettyprint (block->pstate ().token .ws_before ()) << " > X < " << prettyprint (block-> pstate (). token . ws_after ()) << " > " << endl;
190
+ " <" << prettyprint (block->pstate ().token .ws_before ()) << " >" << endl;
191
191
debug_ast (block->text (), ind + " // " , env);
192
192
} else if (dynamic_cast <If*>(node)) {
193
193
If* block = dynamic_cast <If*>(node);
@@ -322,13 +322,13 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
322
322
(expression->is_delayed () ? " {delayed}" : " " ) <<
323
323
(expression->sass_fix_1291 () ? " {sass_fix_1291}" : " " ) <<
324
324
(expression->quote_mark () != 0 ? " {qm:" + string (1 , expression->quote_mark ()) + " }" : " " ) <<
325
- " <" << prettyprint (expression->pstate ().token .ws_before ()) << " > X < " << prettyprint (expression-> pstate (). token . ws_after ()) << " > " << endl;
325
+ " <" << prettyprint (expression->pstate ().token .ws_before ()) << " >" << endl;
326
326
} else if (dynamic_cast <String_Constant*>(node)) {
327
327
String_Constant* expression = dynamic_cast <String_Constant*>(node);
328
328
cerr << ind << " String_Constant : " << expression << " [" << prettyprint (expression->value ()) << " ]" <<
329
329
(expression->is_delayed () ? " {delayed}" : " " ) <<
330
330
(expression->sass_fix_1291 () ? " {sass_fix_1291}" : " " ) <<
331
- " <" << prettyprint (expression->pstate ().token .ws_before ()) << " > X < " << prettyprint (expression-> pstate (). token . ws_after ()) << " > " << endl;
331
+ " <" << prettyprint (expression->pstate ().token .ws_before ()) << " >" << endl;
332
332
} else if (dynamic_cast <String_Schema*>(node)) {
333
333
String_Schema* expression = dynamic_cast <String_Schema*>(node);
334
334
cerr << ind << " String_Schema " << expression << " " << expression->concrete_type () <<
0 commit comments