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; | |
6 | |
7 import 'dart:collection'; | 5 import 'dart:collection'; |
8 | 6 |
9 import 'package:analysis_server/src/status/tree_writer.dart'; | 7 import 'package:analysis_server/src/status/tree_writer.dart'; |
10 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
11 import 'package:analyzer/dart/ast/visitor.dart'; | 9 import 'package:analyzer/dart/ast/visitor.dart'; |
12 import 'package:analyzer/src/dart/ast/ast.dart'; | 10 import 'package:analyzer/src/dart/ast/ast.dart'; |
13 | 11 |
14 /** | 12 /** |
15 * A visitor that will produce an HTML representation of an AST structure. | 13 * A visitor that will produce an HTML representation of an AST structure. |
16 */ | 14 */ |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 buffer.write('..'); | 232 buffer.write('..'); |
235 buffer.write(node.offset + node.length - 1); | 233 buffer.write(node.offset + node.length - 1); |
236 buffer.write(']'); | 234 buffer.write(']'); |
237 if (node.isSynthetic) { | 235 if (node.isSynthetic) { |
238 buffer.write(' (synthetic)'); | 236 buffer.write(' (synthetic)'); |
239 } | 237 } |
240 buffer.write('</span>'); | 238 buffer.write('</span>'); |
241 buffer.write('<br>'); | 239 buffer.write('<br>'); |
242 } | 240 } |
243 } | 241 } |
OLD | NEW |