| 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; | 5 library analysis_server.src.status.element_writer; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:analysis_server/src/get_handler.dart'; | 10 import 'package:analysis_server/src/get_handler.dart'; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 properties['nameOffset'] = element.nameOffset; | 47 properties['nameOffset'] = element.nameOffset; |
| 48 if (element is ClassElement) { | 48 if (element is ClassElement) { |
| 49 properties['hasNonFinalField'] = element.hasNonFinalField; | 49 properties['hasNonFinalField'] = element.hasNonFinalField; |
| 50 properties['hasReferenceToSuper'] = element.hasReferenceToSuper; | 50 properties['hasReferenceToSuper'] = element.hasReferenceToSuper; |
| 51 properties['hasStaticMember'] = element.hasStaticMember; | 51 properties['hasStaticMember'] = element.hasStaticMember; |
| 52 properties['interfaces'] = element.interfaces; | 52 properties['interfaces'] = element.interfaces; |
| 53 properties['isAbstract'] = element.isAbstract; | 53 properties['isAbstract'] = element.isAbstract; |
| 54 properties['isEnum'] = element.isEnum; | 54 properties['isEnum'] = element.isEnum; |
| 55 properties['isOrInheritsProxy'] = element.isOrInheritsProxy; | 55 properties['isOrInheritsProxy'] = element.isOrInheritsProxy; |
| 56 properties['isProxy'] = element.isProxy; | 56 properties['isProxy'] = element.isProxy; |
| 57 properties['isTypedef'] = element.isTypedef; | 57 properties['isTypedef'] = element.isMixinApplication; |
| 58 properties['isValidMixin'] = element.isValidMixin; | 58 properties['isValidMixin'] = element.isValidMixin; |
| 59 properties['mixins'] = element.mixins; | 59 properties['mixins'] = element.mixins; |
| 60 properties['supertype'] = element.supertype; | 60 properties['supertype'] = element.supertype; |
| 61 properties['type'] = element.type; | 61 properties['type'] = element.type; |
| 62 } | 62 } |
| 63 if (element is CompilationUnitElement) { | 63 if (element is CompilationUnitElement) { |
| 64 properties['isEnumConstant'] = element.hasLoadLibraryFunction; | 64 properties['isEnumConstant'] = element.hasLoadLibraryFunction; |
| 65 properties['source'] = element.source; | 65 properties['source'] = element.source; |
| 66 } | 66 } |
| 67 if (element is ConstFieldElementImpl) { | 67 if (element is ConstFieldElementImpl) { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 if (name != null) { | 168 if (name != null) { |
| 169 buffer.write(' ['); | 169 buffer.write(' ['); |
| 170 buffer.write(GetHandler.makeLink( | 170 buffer.write(GetHandler.makeLink( |
| 171 GetHandler.INDEX_ELEMENT_BY_NAME, {'name': name}, 'search index')); | 171 GetHandler.INDEX_ELEMENT_BY_NAME, {'name': name}, 'search index')); |
| 172 buffer.write(']'); | 172 buffer.write(']'); |
| 173 } | 173 } |
| 174 } | 174 } |
| 175 buffer.write('<br>'); | 175 buffer.write('<br>'); |
| 176 } | 176 } |
| 177 } | 177 } |
| OLD | NEW |