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

Side by Side Diff: pkg/analyzer2dart/lib/src/modely.dart

Issue 812523002: Change signature of lookupConstructor to only require a name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: return null for unresolved default constructors 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 | « no previous file | pkg/compiler/lib/src/compile_time_constants.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of analyzer2dart.element_converter; 5 part of analyzer2dart.element_converter;
6 6
7 7
8 /// Base [dart2js.Element] implementation for converted analyzer elements. 8 /// Base [dart2js.Element] implementation for converted analyzer elements.
9 class ElementY extends dart2js.Element { 9 class ElementY extends dart2js.Element {
10 final ElementConverter converter; 10 final ElementConverter converter;
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 // TODO(johnniwinther): Semantic difference: Dart2js points to unnamed 644 // TODO(johnniwinther): Semantic difference: Dart2js points to unnamed
645 // mixin applications, analyzer points to the type in the extends clause or 645 // mixin applications, analyzer points to the type in the extends clause or
646 // Object if omitted. 646 // Object if omitted.
647 @override 647 @override
648 dart2js.DartType get supertype => unsupported('supertype'); 648 dart2js.DartType get supertype => unsupported('supertype');
649 649
650 @override 650 @override
651 int get supertypeLoadState => unsupported('supertypeLoadState'); 651 int get supertypeLoadState => unsupported('supertypeLoadState');
652 652
653 @override 653 @override
654 validateConstructorLookupResults(selector, result, noMatch) {
655 unsupported('validateConstructorLookupResults');
656 }
657
658 @override
659 bool get isEnumClass => unsupported('isEnum'); 654 bool get isEnumClass => unsupported('isEnum');
660 } 655 }
661 656
662 class TypedefElementY extends TypeDeclarationElementY 657 class TypedefElementY extends TypeDeclarationElementY
663 implements dart2js.TypedefElement { 658 implements dart2js.TypedefElement {
664 659
665 analyzer.FunctionTypeAliasElement get element => super.element; 660 analyzer.FunctionTypeAliasElement get element => super.element;
666 661
667 dart2js.ElementKind get kind => dart2js.ElementKind.TYPEDEF; 662 dart2js.ElementKind get kind => dart2js.ElementKind.TYPEDEF;
668 663
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 785
791 @override 786 @override
792 bool get isRedirectingFactory => unsupported('isRedirectingFactory'); 787 bool get isRedirectingFactory => unsupported('isRedirectingFactory');
793 788
794 @override 789 @override
795 get nestedClosures => unsupported('nestedClosures'); 790 get nestedClosures => unsupported('nestedClosures');
796 791
797 @override 792 @override
798 get type => unsupported('type'); 793 get type => unsupported('type');
799 } 794 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698