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

Side by Side Diff: pkg/analyzer/lib/src/generated/element_handle.dart

Issue 1289283004: Initial steps toward adding strong mode to the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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 engine.element_handle; 5 library engine.element_handle;
6 6
7 import 'ast.dart'; 7 import 'ast.dart';
8 import 'element.dart'; 8 import 'element.dart';
9 import 'engine.dart'; 9 import 'engine.dart';
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 ExecutableElementHandle(ExecutableElement element) : super(element); 505 ExecutableElementHandle(ExecutableElement element) : super(element);
506 506
507 @override 507 @override
508 ExecutableElement get actualElement => 508 ExecutableElement get actualElement =>
509 super.actualElement as ExecutableElement; 509 super.actualElement as ExecutableElement;
510 510
511 @override 511 @override
512 List<FunctionElement> get functions => actualElement.functions; 512 List<FunctionElement> get functions => actualElement.functions;
513 513
514 @override 514 @override
515 bool get hasImplicitReturnType => actualElement.hasImplicitReturnType;
516
517 @override
515 bool get isAbstract => actualElement.isAbstract; 518 bool get isAbstract => actualElement.isAbstract;
516 519
517 @override 520 @override
518 bool get isAsynchronous => actualElement.isAsynchronous; 521 bool get isAsynchronous => actualElement.isAsynchronous;
519 522
520 @override 523 @override
521 bool get isExternal => actualElement.isExternal; 524 bool get isExternal => actualElement.isExternal;
522 525
523 @override 526 @override
524 bool get isGenerator => actualElement.isGenerator; 527 bool get isGenerator => actualElement.isGenerator;
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 * Initialize a newly created element handle to represent the given element. 1084 * Initialize a newly created element handle to represent the given element.
1082 * 1085 *
1083 * @param element the element being represented 1086 * @param element the element being represented
1084 */ 1087 */
1085 VariableElementHandle(VariableElement element) : super(element); 1088 VariableElementHandle(VariableElement element) : super(element);
1086 1089
1087 @override 1090 @override
1088 VariableElement get actualElement => super.actualElement as VariableElement; 1091 VariableElement get actualElement => super.actualElement as VariableElement;
1089 1092
1090 @override 1093 @override
1094 bool get hasImplicitType => actualElement.hasImplicitType;
1095
1096 @override
1091 FunctionElement get initializer => actualElement.initializer; 1097 FunctionElement get initializer => actualElement.initializer;
1092 1098
1093 @override 1099 @override
1094 bool get isConst => actualElement.isConst; 1100 bool get isConst => actualElement.isConst;
1095 1101
1096 @override 1102 @override
1097 bool get isFinal => actualElement.isFinal; 1103 bool get isFinal => actualElement.isFinal;
1098 1104
1099 @override 1105 @override
1100 bool get isPotentiallyMutatedInClosure => 1106 bool get isPotentiallyMutatedInClosure =>
1101 actualElement.isPotentiallyMutatedInClosure; 1107 actualElement.isPotentiallyMutatedInClosure;
1102 1108
1103 @override 1109 @override
1104 bool get isPotentiallyMutatedInScope => 1110 bool get isPotentiallyMutatedInScope =>
1105 actualElement.isPotentiallyMutatedInScope; 1111 actualElement.isPotentiallyMutatedInScope;
1106 1112
1107 @override 1113 @override
1108 DartType get type => actualElement.type; 1114 DartType get type => actualElement.type;
1109 } 1115 }
1116
1110 /** 1117 /**
1111 * TODO(scheglov) invalid implementation 1118 * TODO(scheglov) invalid implementation
1112 */ 1119 */
1113 class WeakReference<T> { 1120 class WeakReference<T> {
1114 final T value; 1121 final T value;
1115 WeakReference(this.value); 1122 WeakReference(this.value);
1116 T get() => value; 1123 T get() => value;
1117 } 1124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698