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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 448943004: Refactor and simplify the dart2dart renamer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix minifying name generation Created 6 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 | 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 '../helpers/helpers.dart'; 8 import '../helpers/helpers.dart';
9 import '../tree/tree.dart'; 9 import '../tree/tree.dart';
10 import '../util/util.dart'; 10 import '../util/util.dart';
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 get executableContext => unsupported(); 292 get executableContext => unsupported();
293 293
294 bool get isRedirectingFactory => unsupported(); 294 bool get isRedirectingFactory => unsupported();
295 295
296 computeSignature(compiler) => unsupported(); 296 computeSignature(compiler) => unsupported();
297 297
298 get effectiveTarget => this; 298 get effectiveTarget => this;
299 299
300 computeEffectiveTargetType(InterfaceType newType) => unsupported(); 300 computeEffectiveTargetType(InterfaceType newType) => unsupported();
301 301
302 get definingConstructor => this; 302 get definingConstructor => null;
303 303
304 FunctionElement asFunctionElement() => this; 304 FunctionElement asFunctionElement() => this;
305 305
306 String get message => '${messageKind.message(messageArguments)}'; 306 String get message => '${messageKind.message(messageArguments)}';
307 307
308 String toString() => '<$name: $message>'; 308 String toString() => '<$name: $message>';
309 309
310 accept(ElementVisitor visitor) => visitor.visitErroneousElement(this); 310 accept(ElementVisitor visitor) => visitor.visitErroneousElement(this);
311 } 311 }
312 312
(...skipping 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 AstElement get definingElement; 2656 AstElement get definingElement;
2657 2657
2658 bool get hasResolvedAst => definingElement.hasTreeElements; 2658 bool get hasResolvedAst => definingElement.hasTreeElements;
2659 2659
2660 ResolvedAst get resolvedAst { 2660 ResolvedAst get resolvedAst {
2661 return new ResolvedAst(declaration, 2661 return new ResolvedAst(declaration,
2662 definingElement.node, definingElement.treeElements); 2662 definingElement.node, definingElement.treeElements);
2663 } 2663 }
2664 2664
2665 } 2665 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698