| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.src.dart.element.element; | 5 library analyzer.src.dart.element.element; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 7774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7785 void set propagatedType(DartType propagatedType) { | 7785 void set propagatedType(DartType propagatedType) { |
| 7786 _assertNotResynthesized(_unlinkedVariable); | 7786 _assertNotResynthesized(_unlinkedVariable); |
| 7787 _propagatedType = propagatedType; | 7787 _propagatedType = propagatedType; |
| 7788 } | 7788 } |
| 7789 } | 7789 } |
| 7790 | 7790 |
| 7791 /** | 7791 /** |
| 7792 * The context in which elements are resynthesized. | 7792 * The context in which elements are resynthesized. |
| 7793 */ | 7793 */ |
| 7794 abstract class ResynthesizerContext { | 7794 abstract class ResynthesizerContext { |
| 7795 bool get isStrongMode; |
| 7796 |
| 7795 /** | 7797 /** |
| 7796 * Build [ElementAnnotationImpl] for the given [UnlinkedExpr]. | 7798 * Build [ElementAnnotationImpl] for the given [UnlinkedExpr]. |
| 7797 */ | 7799 */ |
| 7798 ElementAnnotationImpl buildAnnotation(ElementImpl context, UnlinkedExpr uc); | 7800 ElementAnnotationImpl buildAnnotation(ElementImpl context, UnlinkedExpr uc); |
| 7799 | 7801 |
| 7800 /** | 7802 /** |
| 7801 * Build [Expression] for the given [UnlinkedExpr]. | 7803 * Build [Expression] for the given [UnlinkedExpr]. |
| 7802 */ | 7804 */ |
| 7803 Expression buildExpression(ElementImpl context, UnlinkedExpr uc); | 7805 Expression buildExpression(ElementImpl context, UnlinkedExpr uc); |
| 7804 | 7806 |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8522 | 8524 |
| 8523 @override | 8525 @override |
| 8524 void visitElement(Element element) { | 8526 void visitElement(Element element) { |
| 8525 int offset = element.nameOffset; | 8527 int offset = element.nameOffset; |
| 8526 if (offset != -1) { | 8528 if (offset != -1) { |
| 8527 map[offset] = element; | 8529 map[offset] = element; |
| 8528 } | 8530 } |
| 8529 super.visitElement(element); | 8531 super.visitElement(element); |
| 8530 } | 8532 } |
| 8531 } | 8533 } |
| OLD | NEW |