| 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 7868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7879 void set propagatedType(DartType propagatedType) { | 7879 void set propagatedType(DartType propagatedType) { |
| 7880 _assertNotResynthesized(_unlinkedVariable); | 7880 _assertNotResynthesized(_unlinkedVariable); |
| 7881 _propagatedType = propagatedType; | 7881 _propagatedType = propagatedType; |
| 7882 } | 7882 } |
| 7883 } | 7883 } |
| 7884 | 7884 |
| 7885 /** | 7885 /** |
| 7886 * The context in which elements are resynthesized. | 7886 * The context in which elements are resynthesized. |
| 7887 */ | 7887 */ |
| 7888 abstract class ResynthesizerContext { | 7888 abstract class ResynthesizerContext { |
| 7889 bool get isStrongMode; |
| 7890 |
| 7889 /** | 7891 /** |
| 7890 * Build [ElementAnnotationImpl] for the given [UnlinkedExpr]. | 7892 * Build [ElementAnnotationImpl] for the given [UnlinkedExpr]. |
| 7891 */ | 7893 */ |
| 7892 ElementAnnotationImpl buildAnnotation(ElementImpl context, UnlinkedExpr uc); | 7894 ElementAnnotationImpl buildAnnotation(ElementImpl context, UnlinkedExpr uc); |
| 7893 | 7895 |
| 7894 /** | 7896 /** |
| 7895 * Build [Expression] for the given [UnlinkedExpr]. | 7897 * Build [Expression] for the given [UnlinkedExpr]. |
| 7896 */ | 7898 */ |
| 7897 Expression buildExpression(ElementImpl context, UnlinkedExpr uc); | 7899 Expression buildExpression(ElementImpl context, UnlinkedExpr uc); |
| 7898 | 7900 |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8616 | 8618 |
| 8617 @override | 8619 @override |
| 8618 void visitElement(Element element) { | 8620 void visitElement(Element element) { |
| 8619 int offset = element.nameOffset; | 8621 int offset = element.nameOffset; |
| 8620 if (offset != -1) { | 8622 if (offset != -1) { |
| 8621 map[offset] = element; | 8623 map[offset] = element; |
| 8622 } | 8624 } |
| 8623 super.visitElement(element); | 8625 super.visitElement(element); |
| 8624 } | 8626 } |
| 8625 } | 8627 } |
| OLD | NEW |