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 import 'dart:collection'; | 5 import 'dart:collection'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 | 7 |
8 import 'package:analysis_server/src/status/tree_writer.dart'; | 8 import 'package:analysis_server/src/status/tree_writer.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/visitor.dart'; | 10 import 'package:analyzer/dart/element/visitor.dart'; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 if (element is TypeDefiningElement) { | 141 if (element is TypeDefiningElement) { |
142 properties['type'] = element.type; | 142 properties['type'] = element.type; |
143 } | 143 } |
144 if (element is TypeParameterElement) { | 144 if (element is TypeParameterElement) { |
145 properties['bound'] = element.bound; | 145 properties['bound'] = element.bound; |
146 } | 146 } |
147 if (element is TypeParameterizedElement) { | 147 if (element is TypeParameterizedElement) { |
148 properties['typeParameters'] = element.typeParameters; | 148 properties['typeParameters'] = element.typeParameters; |
149 } | 149 } |
150 if (element is UriReferencedElement) { | |
151 properties['uri'] = element.uri; | |
152 } | |
153 if (element is VariableElement) { | 150 if (element is VariableElement) { |
154 properties['constantValue'] = element.constantValue; | 151 properties['constantValue'] = element.constantValue; |
155 properties['hasImplicitType'] = element.hasImplicitType; | 152 properties['hasImplicitType'] = element.hasImplicitType; |
156 properties['isConst'] = element.isConst; | 153 properties['isConst'] = element.isConst; |
157 properties['isFinal'] = element.isFinal; | 154 properties['isFinal'] = element.isFinal; |
158 properties['isStatic'] = element.isStatic; | 155 properties['isStatic'] = element.isStatic; |
159 properties['type'] = element.type; | 156 properties['type'] = element.type; |
160 } | 157 } |
161 | 158 |
162 return properties; | 159 return properties; |
(...skipping 10 matching lines...) Expand all Loading... |
173 buffer.write(HTML_ESCAPE.convert(element.toString())); | 170 buffer.write(HTML_ESCAPE.convert(element.toString())); |
174 if (element.isSynthetic) { | 171 if (element.isSynthetic) { |
175 buffer.write('</i>'); | 172 buffer.write('</i>'); |
176 } | 173 } |
177 buffer.write(' <span style="color:gray">('); | 174 buffer.write(' <span style="color:gray">('); |
178 buffer.write(element.runtimeType); | 175 buffer.write(element.runtimeType); |
179 buffer.write(')</span>'); | 176 buffer.write(')</span>'); |
180 buffer.write('<br>'); | 177 buffer.write('<br>'); |
181 } | 178 } |
182 } | 179 } |
OLD | NEW |