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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 isErroneous() => true; | 313 isErroneous() => true; |
314 | 314 |
315 unsupported() { | 315 unsupported() { |
316 throw 'unsupported operation on erroneous element'; | 316 throw 'unsupported operation on erroneous element'; |
317 } | 317 } |
318 | 318 |
319 Link<MetadataAnnotation> get metadata => unsupported(); | 319 Link<MetadataAnnotation> get metadata => unsupported(); |
320 get type => unsupported(); | 320 get type => unsupported(); |
321 get cachedNode => unsupported(); | 321 get cachedNode => unsupported(); |
322 get functionSignature => unsupported(); | 322 get functionSignature => unsupported(); |
323 get patch => unsupported(); | 323 get patch => null; |
324 get origin => unsupported(); | 324 get origin => this; |
325 get defaultImplementation => unsupported(); | 325 get defaultImplementation => unsupported(); |
326 | 326 |
327 bool get isRedirectingFactory => unsupported(); | 327 bool get isRedirectingFactory => unsupported(); |
328 bool get isPatched => unsupported(); | |
329 bool get isPatch => unsupported(); | |
330 | 328 |
331 setPatch(patch) => unsupported(); | 329 setPatch(patch) => unsupported(); |
332 computeSignature(compiler) => unsupported(); | 330 computeSignature(compiler) => unsupported(); |
333 requiredParameterCount(compiler) => unsupported(); | 331 requiredParameterCount(compiler) => unsupported(); |
334 optionalParameterCount(compiler) => unsupported(); | 332 optionalParameterCount(compiler) => unsupported(); |
335 parameterCount(compiler) => unsupported(); | 333 parameterCount(compiler) => unsupported(); |
336 | 334 |
337 // TODO(kasperl): These seem unnecessary. | 335 // TODO(kasperl): These seem unnecessary. |
338 set patch(value) => unsupported(); | 336 set patch(value) => unsupported(); |
339 set origin(value) => unsupported(); | 337 set origin(value) => unsupported(); |
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 | 2205 |
2208 MetadataAnnotation ensureResolved(Compiler compiler) { | 2206 MetadataAnnotation ensureResolved(Compiler compiler) { |
2209 if (resolutionState == STATE_NOT_STARTED) { | 2207 if (resolutionState == STATE_NOT_STARTED) { |
2210 compiler.resolver.resolveMetadataAnnotation(this); | 2208 compiler.resolver.resolveMetadataAnnotation(this); |
2211 } | 2209 } |
2212 return this; | 2210 return this; |
2213 } | 2211 } |
2214 | 2212 |
2215 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2213 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
2216 } | 2214 } |
OLD | NEW |