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

Side by Side Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 1007563003: fix for getting node for class element (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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/analyzer/test/generated/element_test.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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 */ 692 */
693 void set mixinErrorsReported(bool value) { 693 void set mixinErrorsReported(bool value) {
694 setModifier(Modifier.MIXIN_ERRORS_REPORTED, value); 694 setModifier(Modifier.MIXIN_ERRORS_REPORTED, value);
695 } 695 }
696 696
697 @override 697 @override
698 AstNode get node { 698 AstNode get node {
699 if (isEnum) { 699 if (isEnum) {
700 return getNodeMatching((node) => node is EnumDeclaration); 700 return getNodeMatching((node) => node is EnumDeclaration);
701 } else { 701 } else {
702 return getNodeMatching((node) => node is ClassDeclaration); 702 return getNodeMatching((node) => node is ClassDeclaration || node is Class TypeAlias);
703 } 703 }
704 } 704 }
705 705
706 /** 706 /**
707 * Set whether this class is defined by a typedef construct. 707 * Set whether this class is defined by a typedef construct.
708 */ 708 */
709 void set typedef(bool isTypedef) { 709 void set typedef(bool isTypedef) {
710 setModifier(Modifier.TYPEDEF, isTypedef); 710 setModifier(Modifier.TYPEDEF, isTypedef);
711 } 711 }
712 712
(...skipping 9719 matching lines...) Expand 10 before | Expand all | Expand 10 after
10432 // void <: void (by reflexivity) 10432 // void <: void (by reflexivity)
10433 // bottom <: void (as bottom is a subtype of all types). 10433 // bottom <: void (as bottom is a subtype of all types).
10434 // void <: dynamic (as dynamic is a supertype of all types) 10434 // void <: dynamic (as dynamic is a supertype of all types)
10435 return identical(type, this) || type.isDynamic; 10435 return identical(type, this) || type.isDynamic;
10436 } 10436 }
10437 10437
10438 @override 10438 @override
10439 VoidTypeImpl substitute2( 10439 VoidTypeImpl substitute2(
10440 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; 10440 List<DartType> argumentTypes, List<DartType> parameterTypes) => this;
10441 } 10441 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698