Chromium Code Reviews| OLD | NEW |
|---|---|
| 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', prefix: 'api_e'); | 10 #import('../../compiler.dart', prefix: 'api_e'); |
| (...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1307 // backendMembers are members that have been added by the backend to simplify | 1307 // backendMembers are members that have been added by the backend to simplify |
| 1308 // compilation. They don't have any user-side counter-part. | 1308 // compilation. They don't have any user-side counter-part. |
| 1309 Link<Element> backendMembers = const Link<Element>(); | 1309 Link<Element> backendMembers = const Link<Element>(); |
| 1310 | 1310 |
| 1311 Link<DartType> allSupertypes; | 1311 Link<DartType> allSupertypes; |
| 1312 | 1312 |
| 1313 // Lazily applied patch of class members. | 1313 // Lazily applied patch of class members. |
| 1314 ClassElement patch = null; | 1314 ClassElement patch = null; |
| 1315 ClassElement origin = null; | 1315 ClassElement origin = null; |
| 1316 | 1316 |
| 1317 ClassElement(SourceString name, Element enclosing, this.id, int initialState) | 1317 ClassElement(SourceString name, |
| 1318 Element enclosing, | |
| 1319 this.id, | |
| 1320 int initialState) | |
|
ahe
2012/10/11 18:27:07
If unchanged, please just keep the old formatting.
aam-me
2012/10/12 01:14:06
Done.
| |
| 1318 : supertypeLoadState = initialState, | 1321 : supertypeLoadState = initialState, |
| 1319 resolutionState = initialState, | 1322 resolutionState = initialState, |
| 1320 super(name, ElementKind.CLASS, enclosing); | 1323 super(name, ElementKind.CLASS, enclosing); |
| 1321 | 1324 |
| 1322 abstract ClassNode parseNode(Compiler compiler); | 1325 abstract ClassNode parseNode(Compiler compiler); |
| 1323 | 1326 |
| 1324 InterfaceType computeType(compiler) { | 1327 InterfaceType computeType(compiler) { |
| 1325 if (type == null) { | 1328 if (type == null) { |
| 1326 if (origin === null) { | 1329 if (origin === null) { |
| 1327 ClassNode node = parseNode(compiler); | 1330 ClassNode node = parseNode(compiler); |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1963 | 1966 |
| 1964 MetadataAnnotation ensureResolved(Compiler compiler) { | 1967 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 1965 if (resolutionState == STATE_NOT_STARTED) { | 1968 if (resolutionState == STATE_NOT_STARTED) { |
| 1966 compiler.resolver.resolveMetadataAnnotation(this); | 1969 compiler.resolver.resolveMetadataAnnotation(this); |
| 1967 } | 1970 } |
| 1968 return this; | 1971 return this; |
| 1969 } | 1972 } |
| 1970 | 1973 |
| 1971 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 1974 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 1972 } | 1975 } |
| OLD | NEW |