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

Side by Side Diff: pkg/compiler/lib/src/closure.dart

Issue 3008793002: Use the entity model for dump_info. (Closed)
Patch Set: respond to comments Created 3 years, 3 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import 'common/names.dart' show Identifiers; 5 import 'common/names.dart' show Identifiers;
6 import 'common/resolution.dart' show ParsingContext, Resolution; 6 import 'common/resolution.dart' show ParsingContext, Resolution;
7 import 'common/tasks.dart' show CompilerTask, Measurer; 7 import 'common/tasks.dart' show CompilerTask, Measurer;
8 import 'common.dart'; 8 import 'common.dart';
9 import 'compiler.dart' show Compiler; 9 import 'compiler.dart' show Compiler;
10 import 'constants/expressions.dart'; 10 import 'constants/expressions.dart';
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 String toString() => "ClosureFieldElement($name)"; 456 String toString() => "ClosureFieldElement($name)";
457 457
458 accept(ElementVisitor visitor, arg) { 458 accept(ElementVisitor visitor, arg) {
459 return visitor.visitClosureFieldElement(this, arg); 459 return visitor.visitClosureFieldElement(this, arg);
460 } 460 }
461 461
462 AnalyzableElement get analyzableElement => 462 AnalyzableElement get analyzableElement =>
463 closureClass.methodElement.analyzableElement; 463 closureClass.methodElement.analyzableElement;
464 464
465 @override 465 @override
466 List<FunctionElement> get nestedClosures => const <FunctionElement>[]; 466 List<MethodElement> get nestedClosures => const <MethodElement>[];
467 467
468 @override 468 @override
469 bool get hasConstant => false; 469 bool get hasConstant => false;
470 470
471 @override 471 @override
472 ConstantExpression get constant => null; 472 ConstantExpression get constant => null;
473 } 473 }
474 474
475 // TODO(ahe): These classes continuously cause problems. We need to find 475 // TODO(ahe): These classes continuously cause problems. We need to find
476 // a more general solution. 476 // a more general solution.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 586
587 @override 587 @override
588 Expression get initializer { 588 Expression get initializer {
589 throw new UnsupportedError("BoxFieldElement.initializer"); 589 throw new UnsupportedError("BoxFieldElement.initializer");
590 } 590 }
591 591
592 @override 592 @override
593 MemberElement get memberContext => box.memberContext; 593 MemberElement get memberContext => box.memberContext;
594 594
595 @override 595 @override
596 List<FunctionElement> get nestedClosures => const <FunctionElement>[]; 596 List<MethodElement> get nestedClosures => const <MethodElement>[];
597 597
598 @override 598 @override
599 VariableDefinitions get node { 599 VariableDefinitions get node {
600 throw new UnsupportedError("BoxFieldElement.node"); 600 throw new UnsupportedError("BoxFieldElement.node");
601 } 601 }
602 602
603 @override 603 @override
604 ResolvedAst get resolvedAst { 604 ResolvedAst get resolvedAst {
605 throw new UnsupportedError("BoxFieldElement.resolvedAst"); 605 throw new UnsupportedError("BoxFieldElement.resolvedAst");
606 } 606 }
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 /// 1552 ///
1553 /// Move the below classes to a JS model eventually. 1553 /// Move the below classes to a JS model eventually.
1554 /// 1554 ///
1555 abstract class JSEntity implements MemberEntity { 1555 abstract class JSEntity implements MemberEntity {
1556 Local get declaredEntity; 1556 Local get declaredEntity;
1557 } 1557 }
1558 1558
1559 abstract class PrivatelyNamedJSEntity implements JSEntity { 1559 abstract class PrivatelyNamedJSEntity implements JSEntity {
1560 Entity get rootOfScope; 1560 Entity get rootOfScope;
1561 } 1561 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common_elements.dart » ('j') | pkg/compiler/lib/src/dump_info.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698