Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: packages/csslib/lib/src/tree_printer.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « packages/csslib/lib/src/tree.dart ('k') | packages/csslib/lib/visitor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of csslib.visitor; 5 part of csslib.visitor;
6 6
7 // TODO(terry): Enable class for debug only; when conditional imports enabled. 7 // TODO(terry): Enable class for debug only; when conditional imports enabled.
8 8
9 /** Helper function to dump the CSS AST. */ 9 /** Helper function to dump the CSS AST. */
10 String treeToDebugString(StyleSheet styleSheet, [bool useSpan = false]) { 10 String treeToDebugString(StyleSheet styleSheet, [bool useSpan = false]) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 output.heading('MediaQueries'); 78 output.heading('MediaQueries');
79 output.writeValue('unary', query.unary); 79 output.writeValue('unary', query.unary);
80 output.writeValue('media type', query.mediaType); 80 output.writeValue('media type', query.mediaType);
81 output.writeNodeList('media expressions', query.expressions); 81 output.writeNodeList('media expressions', query.expressions);
82 } 82 }
83 83
84 void visitMediaDirective(MediaDirective node) { 84 void visitMediaDirective(MediaDirective node) {
85 heading('MediaDirective', node); 85 heading('MediaDirective', node);
86 output.depth++; 86 output.depth++;
87 output.writeNodeList('media queries', node.mediaQueries); 87 output.writeNodeList('media queries', node.mediaQueries);
88 output.writeNodeList('rule sets', node.rulesets); 88 output.writeNodeList('rule sets', node.rules);
89 super.visitMediaDirective(node); 89 super.visitMediaDirective(node);
90 output.depth--; 90 output.depth--;
91 } 91 }
92 92
93 void visitDocumentDirective(DocumentDirective node) { 93 void visitDocumentDirective(DocumentDirective node) {
94 heading('DocumentDirective', node); 94 heading('DocumentDirective', node);
95 output.depth++; 95 output.depth++;
96 output.writeNodeList('functions', node.functions); 96 output.writeNodeList('functions', node.functions);
97 output.writeNodeList('group rule body', node.groupRuleBody); 97 output.writeNodeList('group rule body', node.groupRuleBody);
98 output.depth--; 98 output.depth--;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 185
186 void visitFontFaceDirective(FontFaceDirective node) { 186 void visitFontFaceDirective(FontFaceDirective node) {
187 // TODO(terry): To Be Implemented 187 // TODO(terry): To Be Implemented
188 } 188 }
189 189
190 void visitStyletDirective(StyletDirective node) { 190 void visitStyletDirective(StyletDirective node) {
191 heading('StyletDirective', node); 191 heading('StyletDirective', node);
192 output.writeValue('dartClassName', node.dartClassName); 192 output.writeValue('dartClassName', node.dartClassName);
193 output.depth++; 193 output.depth++;
194 output.writeNodeList('rulesets', node.rulesets); 194 output.writeNodeList('rulesets', node.rules);
195 output.depth--; 195 output.depth--;
196 } 196 }
197 197
198 void visitNamespaceDirective(NamespaceDirective node) { 198 void visitNamespaceDirective(NamespaceDirective node) {
199 heading('NamespaceDirective', node); 199 heading('NamespaceDirective', node);
200 output.depth++; 200 output.depth++;
201 output.writeValue('prefix', node._prefix); 201 output.writeValue('prefix', node._prefix);
202 output.writeValue('uri', node._uri); 202 output.writeValue('uri', node._uri);
203 output.depth--; 203 output.depth--;
204 } 204 }
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 } 611 }
612 612
613 void visitPaddingExpression(PaddingExpression node) { 613 void visitPaddingExpression(PaddingExpression node) {
614 heading('Dart Style PaddingExpression', node); 614 heading('Dart Style PaddingExpression', node);
615 } 615 }
616 616
617 void visitWidthExpression(WidthExpression node) { 617 void visitWidthExpression(WidthExpression node) {
618 heading('Dart Style WidthExpression', node); 618 heading('Dart Style WidthExpression', node);
619 } 619 }
620 } 620 }
OLDNEW
« no previous file with comments | « packages/csslib/lib/src/tree.dart ('k') | packages/csslib/lib/visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698