| 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 summary_resynthesizer; | 5 library summary_resynthesizer; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; | 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 'Unable to resolve constructor parameter: $name')); | 469 'Unable to resolve constructor parameter: $name')); |
| 470 _push(identifier); | 470 _push(identifier); |
| 471 break; | 471 break; |
| 472 case UnlinkedExprOperation.ifNull: | 472 case UnlinkedExprOperation.ifNull: |
| 473 _pushBinary(TokenType.QUESTION_QUESTION); | 473 _pushBinary(TokenType.QUESTION_QUESTION); |
| 474 break; | 474 break; |
| 475 case UnlinkedExprOperation.await: | 475 case UnlinkedExprOperation.await: |
| 476 Expression expression = _pop(); | 476 Expression expression = _pop(); |
| 477 _push(AstTestFactory.awaitExpression(expression)); | 477 _push(AstTestFactory.awaitExpression(expression)); |
| 478 break; | 478 break; |
| 479 case UnlinkedExprOperation.pushSuper: |
| 480 _push(AstTestFactory.superExpression()); |
| 481 break; |
| 479 case UnlinkedExprOperation.pushThis: | 482 case UnlinkedExprOperation.pushThis: |
| 480 _push(AstTestFactory.thisExpression()); | 483 _push(AstTestFactory.thisExpression()); |
| 481 break; | 484 break; |
| 482 case UnlinkedExprOperation.assignToRef: | 485 case UnlinkedExprOperation.assignToRef: |
| 483 case UnlinkedExprOperation.assignToProperty: | 486 case UnlinkedExprOperation.assignToProperty: |
| 484 case UnlinkedExprOperation.assignToIndex: | 487 case UnlinkedExprOperation.assignToIndex: |
| 485 case UnlinkedExprOperation.extractIndex: | 488 case UnlinkedExprOperation.extractIndex: |
| 486 case UnlinkedExprOperation.invokeMethod: | 489 case UnlinkedExprOperation.invokeMethod: |
| 487 case UnlinkedExprOperation.cascadeSectionBegin: | 490 case UnlinkedExprOperation.cascadeSectionBegin: |
| 488 case UnlinkedExprOperation.cascadeSectionEnd: | 491 case UnlinkedExprOperation.cascadeSectionEnd: |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1887 static String _getElementIdentifier(String name, ReferenceKind kind) { | 1890 static String _getElementIdentifier(String name, ReferenceKind kind) { |
| 1888 if (kind == ReferenceKind.topLevelPropertyAccessor || | 1891 if (kind == ReferenceKind.topLevelPropertyAccessor || |
| 1889 kind == ReferenceKind.propertyAccessor) { | 1892 kind == ReferenceKind.propertyAccessor) { |
| 1890 if (!name.endsWith('=')) { | 1893 if (!name.endsWith('=')) { |
| 1891 return name + '?'; | 1894 return name + '?'; |
| 1892 } | 1895 } |
| 1893 } | 1896 } |
| 1894 return name; | 1897 return name; |
| 1895 } | 1898 } |
| 1896 } | 1899 } |
| OLD | NEW |