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.element_writer; | |
6 | |
7 import 'dart:collection'; | 5 import 'dart:collection'; |
8 import 'dart:convert'; | 6 import 'dart:convert'; |
9 | 7 |
10 import 'package:analysis_server/src/status/tree_writer.dart'; | 8 import 'package:analysis_server/src/status/tree_writer.dart'; |
11 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
12 import 'package:analyzer/dart/element/visitor.dart'; | 10 import 'package:analyzer/dart/element/visitor.dart'; |
13 import 'package:analyzer/src/dart/element/element.dart'; | 11 import 'package:analyzer/src/dart/element/element.dart'; |
14 | 12 |
15 /** | 13 /** |
16 * A visitor that will produce an HTML representation of an element structure. | 14 * A visitor that will produce an HTML representation of an element structure. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 buffer.write(HTML_ESCAPE.convert(element.toString())); | 173 buffer.write(HTML_ESCAPE.convert(element.toString())); |
176 if (element.isSynthetic) { | 174 if (element.isSynthetic) { |
177 buffer.write('</i>'); | 175 buffer.write('</i>'); |
178 } | 176 } |
179 buffer.write(' <span style="color:gray">('); | 177 buffer.write(' <span style="color:gray">('); |
180 buffer.write(element.runtimeType); | 178 buffer.write(element.runtimeType); |
181 buffer.write(')</span>'); | 179 buffer.write(')</span>'); |
182 buffer.write('<br>'); | 180 buffer.write('<br>'); |
183 } | 181 } |
184 } | 182 } |
OLD | NEW |