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

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

Issue 735303002: Incremental compilation of added instance fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41892 Created 6 years, 1 month 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
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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 variables, name.token); 1254 variables, name.token);
1255 1255
1256 accept(ElementVisitor visitor) => visitor.visitFieldElement(this); 1256 accept(ElementVisitor visitor) => visitor.visitFieldElement(this);
1257 1257
1258 MemberElement get memberContext => this; 1258 MemberElement get memberContext => this;
1259 1259
1260 void reuseElement() { 1260 void reuseElement() {
1261 super.reuseElement(); 1261 super.reuseElement();
1262 nestedClosures.clear(); 1262 nestedClosures.clear();
1263 } 1263 }
1264
1265 FieldElementX copyWithEnclosing(Element enclosingElement) {
1266 return new FieldElementX(
1267 new Identifier(token), enclosingElement, variables);
1268 }
1264 } 1269 }
1265 1270
1266 /// [Element] for a parameter-like element. 1271 /// [Element] for a parameter-like element.
1267 class FormalElementX extends ElementX 1272 class FormalElementX extends ElementX
1268 with AstElementMixin 1273 with AstElementMixin
1269 implements FormalElement { 1274 implements FormalElement {
1270 final VariableDefinitions definitions; 1275 final VariableDefinitions definitions;
1271 final Identifier identifier; 1276 final Identifier identifier;
1272 DartType typeCache; 1277 DartType typeCache;
1273 1278
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
2819 AstElement get definingElement; 2824 AstElement get definingElement;
2820 2825
2821 bool get hasResolvedAst => definingElement.hasTreeElements; 2826 bool get hasResolvedAst => definingElement.hasTreeElements;
2822 2827
2823 ResolvedAst get resolvedAst { 2828 ResolvedAst get resolvedAst {
2824 return new ResolvedAst(declaration, 2829 return new ResolvedAst(declaration,
2825 definingElement.node, definingElement.treeElements); 2830 definingElement.node, definingElement.treeElements);
2826 } 2831 }
2827 2832
2828 } 2833 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698