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

Side by Side Diff: pkg/analysis_server/lib/src/status/ast_writer.dart

Issue 1008153002: Display synthetic nodes on status page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library analysis_server.src.status.ast_writer; 5 library analysis_server.src.status.ast_writer;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analysis_server/src/status/tree_writer.dart'; 9 import 'package:analysis_server/src/status/tree_writer.dart';
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 * Write a representation of the given [node] to the buffer. 154 * Write a representation of the given [node] to the buffer.
155 */ 155 */
156 void _writeNode(AstNode node) { 156 void _writeNode(AstNode node) {
157 indent(); 157 indent();
158 buffer.write(node.runtimeType); 158 buffer.write(node.runtimeType);
159 buffer.write(' <span style="color:gray">['); 159 buffer.write(' <span style="color:gray">[');
160 buffer.write(node.offset); 160 buffer.write(node.offset);
161 buffer.write('..'); 161 buffer.write('..');
162 buffer.write(node.offset + node.length - 1); 162 buffer.write(node.offset + node.length - 1);
163 buffer.write(']</span>'); 163 buffer.write(']</span>');
164 if (node.isSynthetic) {
165 buffer.write(' (synthetic)');
166 }
164 buffer.write('<br>'); 167 buffer.write('<br>');
165 } 168 }
166 } 169 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698