| 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.tree_writer; | 5 library analysis_server.src.status.tree_writer; |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:analyzer/exception/exception.dart'; |
| 9 import 'package:analyzer/src/dart/element/element.dart'; | 10 import 'package:analyzer/src/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/generated/constant.dart'; | 11 import 'package:analyzer/src/generated/constant.dart'; |
| 11 import 'package:analyzer/src/generated/java_engine.dart'; | |
| 12 import 'package:analyzer/src/generated/source.dart'; | 12 import 'package:analyzer/src/generated/source.dart'; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Utility methods that can be mixed in to classes that produce an HTML | 15 * Utility methods that can be mixed in to classes that produce an HTML |
| 16 * representation of a tree structure. | 16 * representation of a tree structure. |
| 17 */ | 17 */ |
| 18 abstract class TreeWriter { | 18 abstract class TreeWriter { |
| 19 /** | 19 /** |
| 20 * The buffer on which the HTML is to be written. | 20 * The buffer on which the HTML is to be written. |
| 21 */ | 21 */ |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 if (valueString == null) { | 116 if (valueString == null) { |
| 117 buffer.write('<span style="color: #FF0000">'); | 117 buffer.write('<span style="color: #FF0000">'); |
| 118 buffer.write(HTML_ESCAPE.convert(value.runtimeType.toString())); | 118 buffer.write(HTML_ESCAPE.convert(value.runtimeType.toString())); |
| 119 buffer.write('</span>'); | 119 buffer.write('</span>'); |
| 120 } else { | 120 } else { |
| 121 buffer.write(HTML_ESCAPE.convert(valueString)); | 121 buffer.write(HTML_ESCAPE.convert(valueString)); |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 } | 125 } |
| OLD | NEW |