| 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; | 5 library analysis_server.src.status.ast_writer; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/status/tree_writer.dart'; | 9 import 'package:analysis_server/src/status/tree_writer.dart'; |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 if (node is BinaryExpression) { | 43 if (node is BinaryExpression) { |
| 44 properties['static element'] = node.staticElement; | 44 properties['static element'] = node.staticElement; |
| 45 properties['static type'] = node.staticType; | 45 properties['static type'] = node.staticType; |
| 46 properties['propagated element'] = node.propagatedElement; | 46 properties['propagated element'] = node.propagatedElement; |
| 47 properties['propagated type'] = node.propagatedType; | 47 properties['propagated type'] = node.propagatedType; |
| 48 } else if (node is CompilationUnit) { | 48 } else if (node is CompilationUnit) { |
| 49 properties['element'] = node.element; | 49 properties['element'] = node.element; |
| 50 } else if (node is ExportDirective) { | 50 } else if (node is ExportDirective) { |
| 51 properties['element'] = node.element; | 51 properties['element'] = node.element; |
| 52 properties['source'] = node.source; | 52 properties['source'] = node.source; |
| 53 } else if (node is FunctionDeclaration) { |
| 54 properties['external keyword'] = node.externalKeyword; |
| 55 properties['property keyword'] = node.propertyKeyword; |
| 53 } else if (node is FunctionExpressionInvocation) { | 56 } else if (node is FunctionExpressionInvocation) { |
| 54 properties['static element'] = node.staticElement; | 57 properties['static element'] = node.staticElement; |
| 55 properties['static type'] = node.staticType; | 58 properties['static type'] = node.staticType; |
| 56 properties['propagated element'] = node.propagatedElement; | 59 properties['propagated element'] = node.propagatedElement; |
| 57 properties['propagated type'] = node.propagatedType; | 60 properties['propagated type'] = node.propagatedType; |
| 58 } else if (node is ImportDirective) { | 61 } else if (node is ImportDirective) { |
| 59 properties['element'] = node.element; | 62 properties['element'] = node.element; |
| 60 properties['source'] = node.source; | 63 properties['source'] = node.source; |
| 61 } else if (node is LibraryDirective) { | 64 } else if (node is LibraryDirective) { |
| 62 properties['element'] = node.element; | 65 properties['element'] = node.element; |
| 66 } else if (node is MethodDeclaration) { |
| 67 properties['external keyword'] = node.externalKeyword; |
| 68 properties['modifier keyword'] = node.modifierKeyword; |
| 69 properties['operator keyword'] = node.operatorKeyword; |
| 70 properties['property keyword'] = node.propertyKeyword; |
| 63 } else if (node is PartDirective) { | 71 } else if (node is PartDirective) { |
| 64 properties['element'] = node.element; | 72 properties['element'] = node.element; |
| 65 properties['source'] = node.source; | 73 properties['source'] = node.source; |
| 66 } else if (node is PartOfDirective) { | 74 } else if (node is PartOfDirective) { |
| 67 properties['element'] = node.element; | 75 properties['element'] = node.element; |
| 68 } else if (node is PostfixExpression) { | 76 } else if (node is PostfixExpression) { |
| 69 properties['static element'] = node.staticElement; | 77 properties['static element'] = node.staticElement; |
| 70 properties['static type'] = node.staticType; | 78 properties['static type'] = node.staticType; |
| 71 properties['propagated element'] = node.propagatedElement; | 79 properties['propagated element'] = node.propagatedElement; |
| 72 properties['propagated type'] = node.propagatedType; | 80 properties['propagated type'] = node.propagatedType; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 buffer.write(node.offset); | 168 buffer.write(node.offset); |
| 161 buffer.write('..'); | 169 buffer.write('..'); |
| 162 buffer.write(node.offset + node.length - 1); | 170 buffer.write(node.offset + node.length - 1); |
| 163 buffer.write(']</span>'); | 171 buffer.write(']</span>'); |
| 164 if (node.isSynthetic) { | 172 if (node.isSynthetic) { |
| 165 buffer.write(' (synthetic)'); | 173 buffer.write(' (synthetic)'); |
| 166 } | 174 } |
| 167 buffer.write('<br>'); | 175 buffer.write('<br>'); |
| 168 } | 176 } |
| 169 } | 177 } |
| OLD | NEW |