| OLD | NEW |
| 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 'dart:collection' show LinkedHashMap; | 7 import 'dart:collection' show LinkedHashMap; |
| 8 | 8 |
| 9 import 'elements.dart'; | 9 import 'elements.dart'; |
| 10 import '../../compiler.dart' as api; | 10 import '../../compiler.dart' as api; |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 isErroneous() => true; | 314 isErroneous() => true; |
| 315 | 315 |
| 316 unsupported() { | 316 unsupported() { |
| 317 throw 'unsupported operation on erroneous element'; | 317 throw 'unsupported operation on erroneous element'; |
| 318 } | 318 } |
| 319 | 319 |
| 320 Link<MetadataAnnotation> get metadata => unsupported(); | 320 Link<MetadataAnnotation> get metadata => unsupported(); |
| 321 get type => unsupported(); | 321 get type => unsupported(); |
| 322 get cachedNode => unsupported(); | 322 get cachedNode => unsupported(); |
| 323 get functionSignature => unsupported(); | 323 get functionSignature => unsupported(); |
| 324 get patch => unsupported(); | 324 get patch => null; |
| 325 get origin => unsupported(); | 325 get origin => this; |
| 326 get defaultImplementation => unsupported(); | 326 get defaultImplementation => unsupported(); |
| 327 | 327 |
| 328 bool get isRedirectingFactory => unsupported(); | 328 bool get isRedirectingFactory => unsupported(); |
| 329 bool get isPatched => unsupported(); | |
| 330 bool get isPatch => unsupported(); | |
| 331 | 329 |
| 332 setPatch(patch) => unsupported(); | 330 setPatch(patch) => unsupported(); |
| 333 computeSignature(compiler) => unsupported(); | 331 computeSignature(compiler) => unsupported(); |
| 334 requiredParameterCount(compiler) => unsupported(); | 332 requiredParameterCount(compiler) => unsupported(); |
| 335 optionalParameterCount(compiler) => unsupported(); | 333 optionalParameterCount(compiler) => unsupported(); |
| 336 parameterCount(compiler) => unsupported(); | 334 parameterCount(compiler) => unsupported(); |
| 337 | 335 |
| 338 // TODO(kasperl): These seem unnecessary. | 336 // TODO(kasperl): These seem unnecessary. |
| 339 set patch(value) => unsupported(); | 337 set patch(value) => unsupported(); |
| 340 set origin(value) => unsupported(); | 338 set origin(value) => unsupported(); |
| (...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 | 2179 |
| 2182 MetadataAnnotation ensureResolved(Compiler compiler) { | 2180 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2183 if (resolutionState == STATE_NOT_STARTED) { | 2181 if (resolutionState == STATE_NOT_STARTED) { |
| 2184 compiler.resolver.resolveMetadataAnnotation(this); | 2182 compiler.resolver.resolveMetadataAnnotation(this); |
| 2185 } | 2183 } |
| 2186 return this; | 2184 return this; |
| 2187 } | 2185 } |
| 2188 | 2186 |
| 2189 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2187 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2190 } | 2188 } |
| OLD | NEW |