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 '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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 final Map messageArguments; | 276 final Map messageArguments; |
277 | 277 |
278 ErroneousElementX(this.messageKind, this.messageArguments, | 278 ErroneousElementX(this.messageKind, this.messageArguments, |
279 String name, Element enclosing) | 279 String name, Element enclosing) |
280 : super(name, ElementKind.ERROR, enclosing); | 280 : super(name, ElementKind.ERROR, enclosing); |
281 | 281 |
282 bool get isTopLevel => false; | 282 bool get isTopLevel => false; |
283 | 283 |
284 bool get isSynthesized => true; | 284 bool get isSynthesized => true; |
285 | 285 |
| 286 bool get isCyclicRedirection => false; |
| 287 |
| 288 PrefixElement get redirectionDeferredPrefix => null; |
| 289 |
286 AbstractFieldElement abstractField; | 290 AbstractFieldElement abstractField; |
287 | 291 |
288 unsupported() { | 292 unsupported() { |
289 throw 'unsupported operation on erroneous element'; | 293 throw 'unsupported operation on erroneous element'; |
290 } | 294 } |
291 | 295 |
292 get asyncMarker => AsyncMarker.SYNC; | 296 get asyncMarker => AsyncMarker.SYNC; |
293 Link<MetadataAnnotation> get metadata => unsupported(); | 297 Link<MetadataAnnotation> get metadata => unsupported(); |
294 bool get hasNode => false; | 298 bool get hasNode => false; |
295 get node => unsupported(); | 299 get node => unsupported(); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 } | 411 } |
408 | 412 |
409 get nestedClosures { | 413 get nestedClosures { |
410 throw new UnsupportedError("nestedClosures"); | 414 throw new UnsupportedError("nestedClosures"); |
411 } | 415 } |
412 | 416 |
413 set nestedClosures(_) { | 417 set nestedClosures(_) { |
414 throw new UnsupportedError("nestedClosures="); | 418 throw new UnsupportedError("nestedClosures="); |
415 } | 419 } |
416 | 420 |
| 421 set redirectionDeferredPrefix(_) { |
| 422 throw new UnsupportedError("redirectionDeferredPrefix="); |
| 423 } |
| 424 |
417 bool get hasNoBody => false; | 425 bool get hasNoBody => false; |
418 | 426 |
419 bool get _hasNoBody => false; | 427 bool get _hasNoBody => false; |
420 | 428 |
421 void set effectiveTarget(_) { | 429 void set effectiveTarget(_) { |
422 throw new UnsupportedError("effectiveTarget="); | 430 throw new UnsupportedError("effectiveTarget="); |
423 } | 431 } |
424 } | 432 } |
425 | 433 |
426 /// A message attached to a [WarnOnUseElementX]. | 434 /// A message attached to a [WarnOnUseElementX]. |
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3130 AstElement get definingElement; | 3138 AstElement get definingElement; |
3131 | 3139 |
3132 bool get hasResolvedAst => definingElement.hasTreeElements; | 3140 bool get hasResolvedAst => definingElement.hasTreeElements; |
3133 | 3141 |
3134 ResolvedAst get resolvedAst { | 3142 ResolvedAst get resolvedAst { |
3135 return new ResolvedAst(declaration, | 3143 return new ResolvedAst(declaration, |
3136 definingElement.node, definingElement.treeElements); | 3144 definingElement.node, definingElement.treeElements); |
3137 } | 3145 } |
3138 | 3146 |
3139 } | 3147 } |
OLD | NEW |