| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |