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

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

Issue 11729004: Refactor location computation in dart2js mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Location test added. Created 7 years, 11 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) 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 library elements; 5 library elements;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed.
10 import '../../compiler.dart' as api_e; 10 import '../../compiler.dart' as api_e;
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 */ 2154 */
2155 abstract class MetadataAnnotation { 2155 abstract class MetadataAnnotation {
2156 /** 2156 /**
2157 * The compile-time constant which this annotation resolves to. 2157 * The compile-time constant which this annotation resolves to.
2158 * In the mirror system, this would be an object mirror. 2158 * In the mirror system, this would be an object mirror.
2159 */ 2159 */
2160 Constant get value; 2160 Constant get value;
2161 Element annotatedElement; 2161 Element annotatedElement;
2162 int resolutionState; 2162 int resolutionState;
2163 2163
2164 /**
2165 * The beginning token of this annotation, or [:null:] if it is synthetic.
2166 */
2167 Token get beginToken;
2168
Johnni Winther 2013/01/04 09:57:56 Needed in this CL and not in https://codereview.ch
2164 MetadataAnnotation([this.resolutionState = STATE_NOT_STARTED]); 2169 MetadataAnnotation([this.resolutionState = STATE_NOT_STARTED]);
2165 2170
2166 MetadataAnnotation ensureResolved(Compiler compiler) { 2171 MetadataAnnotation ensureResolved(Compiler compiler) {
2167 if (resolutionState == STATE_NOT_STARTED) { 2172 if (resolutionState == STATE_NOT_STARTED) {
2168 compiler.resolver.resolveMetadataAnnotation(this); 2173 compiler.resolver.resolveMetadataAnnotation(this);
2169 } 2174 }
2170 return this; 2175 return this;
2171 } 2176 }
2172 2177
2173 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 2178 String toString() => 'MetadataAnnotation($value, $resolutionState)';
2174 } 2179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698