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

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 r41904. Created 6 years 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 | « no previous file | dart/pkg/dart2js_incremental/lib/library_updater.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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 variables, name.token); 1253 variables, name.token);
1254 1254
1255 accept(ElementVisitor visitor) => visitor.visitFieldElement(this); 1255 accept(ElementVisitor visitor) => visitor.visitFieldElement(this);
1256 1256
1257 MemberElement get memberContext => this; 1257 MemberElement get memberContext => this;
1258 1258
1259 void reuseElement() { 1259 void reuseElement() {
1260 super.reuseElement(); 1260 super.reuseElement();
1261 nestedClosures.clear(); 1261 nestedClosures.clear();
1262 } 1262 }
1263
1264 FieldElementX copyWithEnclosing(Element enclosingElement) {
1265 return new FieldElementX(
1266 new Identifier(token), enclosingElement, variables);
1267 }
1263 } 1268 }
1264 1269
1265 /// [Element] for a parameter-like element. 1270 /// [Element] for a parameter-like element.
1266 class FormalElementX extends ElementX 1271 class FormalElementX extends ElementX
1267 with AstElementMixin 1272 with AstElementMixin
1268 implements FormalElement { 1273 implements FormalElement {
1269 final VariableDefinitions definitions; 1274 final VariableDefinitions definitions;
1270 final Identifier identifier; 1275 final Identifier identifier;
1271 DartType typeCache; 1276 DartType typeCache;
1272 1277
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
2820 AstElement get definingElement; 2825 AstElement get definingElement;
2821 2826
2822 bool get hasResolvedAst => definingElement.hasTreeElements; 2827 bool get hasResolvedAst => definingElement.hasTreeElements;
2823 2828
2824 ResolvedAst get resolvedAst { 2829 ResolvedAst get resolvedAst {
2825 return new ResolvedAst(declaration, 2830 return new ResolvedAst(declaration,
2826 definingElement.node, definingElement.treeElements); 2831 definingElement.node, definingElement.treeElements);
2827 } 2832 }
2828 2833
2829 } 2834 }
OLDNEW
« no previous file with comments | « no previous file | dart/pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698