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

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 873133003: Fix type annotations that violate subtyping constraint on overriden methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/dart_types.dart ('k') | pkg/compiler/lib/src/resolution/signatures.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 elements.modelx; 5 library elements.modelx;
6 6
7 import 'elements.dart'; 7 import 'elements.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../helpers/helpers.dart'; // Included for debug helpers. 9 import '../helpers/helpers.dart'; // Included for debug helpers.
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 LocalVariableElementX(String name, 1352 LocalVariableElementX(String name,
1353 ExecutableElement enclosingElement, 1353 ExecutableElement enclosingElement,
1354 VariableList variables, 1354 VariableList variables,
1355 Token token) 1355 Token token)
1356 : super(name, ElementKind.VARIABLE, enclosingElement, variables, token) { 1356 : super(name, ElementKind.VARIABLE, enclosingElement, variables, token) {
1357 createDefinitions(variables.definitions); 1357 createDefinitions(variables.definitions);
1358 } 1358 }
1359 1359
1360 ExecutableElement get executableContext => enclosingElement; 1360 ExecutableElement get executableContext => enclosingElement;
1361 1361
1362 ExecutableElement get memberContext => executableContext.memberContext; 1362 MemberElement get memberContext => executableContext.memberContext;
1363 1363
1364 bool get isLocal => true; 1364 bool get isLocal => true;
1365 } 1365 }
1366 1366
1367 class FieldElementX extends VariableElementX 1367 class FieldElementX extends VariableElementX
1368 with AnalyzableElementX implements FieldElement { 1368 with AnalyzableElementX implements FieldElement {
1369 List<FunctionElement> nestedClosures = new List<FunctionElement>(); 1369 List<FunctionElement> nestedClosures = new List<FunctionElement>();
1370 1370
1371 FieldElementX(Identifier name, 1371 FieldElementX(Identifier name,
1372 Element enclosingElement, 1372 Element enclosingElement,
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after
3063 AstElement get definingElement; 3063 AstElement get definingElement;
3064 3064
3065 bool get hasResolvedAst => definingElement.hasTreeElements; 3065 bool get hasResolvedAst => definingElement.hasTreeElements;
3066 3066
3067 ResolvedAst get resolvedAst { 3067 ResolvedAst get resolvedAst {
3068 return new ResolvedAst(declaration, 3068 return new ResolvedAst(declaration,
3069 definingElement.node, definingElement.treeElements); 3069 definingElement.node, definingElement.treeElements);
3070 } 3070 }
3071 3071
3072 } 3072 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart_types.dart ('k') | pkg/compiler/lib/src/resolution/signatures.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698