Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2647833002: fix #28008, fix #28009 implement FutureOr<T> (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into 28008_futureort Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/dart/element/type.dart ('k') | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/element/type.dart ('k') | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698