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

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1068233002: Revert "Extract CallStructure from Selector." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/elements/names.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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 CompilationUnitElement get compilationUnit { 161 CompilationUnitElement get compilationUnit {
162 Element element = this; 162 Element element = this;
163 while (!element.isCompilationUnit) { 163 while (!element.isCompilationUnit) {
164 element = element.enclosingElement; 164 element = element.enclosingElement;
165 } 165 }
166 return element; 166 return element;
167 } 167 }
168 168
169 LibraryElement get library => enclosingElement.library; 169 LibraryElement get library => enclosingElement.library;
170 170
171 Name get memberName => new Name(name, library);
172
173 LibraryElement get implementationLibrary { 171 LibraryElement get implementationLibrary {
174 Element element = this; 172 Element element = this;
175 while (!identical(element.kind, ElementKind.LIBRARY)) { 173 while (!identical(element.kind, ElementKind.LIBRARY)) {
176 element = element.enclosingElement; 174 element = element.enclosingElement;
177 } 175 }
178 return element; 176 return element;
179 } 177 }
180 178
181 ClassElement get enclosingClass { 179 ClassElement get enclosingClass {
182 for (Element e = this; e != null; e = e.enclosingElement) { 180 for (Element e = this; e != null; e = e.enclosingElement) {
(...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after
3070 AstElement get definingElement; 3068 AstElement get definingElement;
3071 3069
3072 bool get hasResolvedAst => definingElement.hasTreeElements; 3070 bool get hasResolvedAst => definingElement.hasTreeElements;
3073 3071
3074 ResolvedAst get resolvedAst { 3072 ResolvedAst get resolvedAst {
3075 return new ResolvedAst(declaration, 3073 return new ResolvedAst(declaration,
3076 definingElement.node, definingElement.treeElements); 3074 definingElement.node, definingElement.treeElements);
3077 } 3075 }
3078 3076
3079 } 3077 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/elements/names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698