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 'common.dart'; | 7 import 'common.dart'; |
8 import 'elements.dart'; | 8 import 'elements.dart'; |
9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
10 import '../constants/constructors.dart'; | 10 import '../constants/constructors.dart'; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 Modifiers get modifiers => Modifiers.EMPTY; | 62 Modifiers get modifiers => Modifiers.EMPTY; |
63 | 63 |
64 Node parseNode(DiagnosticListener listener) { | 64 Node parseNode(DiagnosticListener listener) { |
65 listener.internalError(this, | 65 listener.internalError(this, |
66 'parseNode not implemented on $this.'); | 66 'parseNode not implemented on $this.'); |
67 return null; | 67 return null; |
68 } | 68 } |
69 | 69 |
70 DartType computeType(Compiler compiler) { | |
71 compiler.internalError(this, | |
72 "computeType not implemented on $this."); | |
73 return null; | |
74 } | |
75 | |
76 void addMetadata(MetadataAnnotationX annotation) { | 70 void addMetadata(MetadataAnnotationX annotation) { |
77 assert(annotation.annotatedElement == null); | 71 assert(annotation.annotatedElement == null); |
78 annotation.annotatedElement = this; | 72 annotation.annotatedElement = this; |
79 addMetadataInternal(annotation); | 73 addMetadataInternal(annotation); |
80 } | 74 } |
81 | 75 |
82 void addMetadataInternal(MetadataAnnotation annotation) { | 76 void addMetadataInternal(MetadataAnnotation annotation) { |
83 metadata = metadata.prepend(annotation); | 77 metadata = metadata.prepend(annotation); |
84 } | 78 } |
85 | 79 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 get nestedClosures => unsupported(); | 289 get nestedClosures => unsupported(); |
296 get memberContext => unsupported(); | 290 get memberContext => unsupported(); |
297 get executableContext => unsupported(); | 291 get executableContext => unsupported(); |
298 get isExternal => unsupported(); | 292 get isExternal => unsupported(); |
299 get constantConstructor => null; | 293 get constantConstructor => null; |
300 | 294 |
301 bool get isRedirectingGenerative => unsupported(); | 295 bool get isRedirectingGenerative => unsupported(); |
302 bool get isRedirectingFactory => unsupported(); | 296 bool get isRedirectingFactory => unsupported(); |
303 | 297 |
304 computeSignature(compiler) => unsupported(); | 298 computeSignature(compiler) => unsupported(); |
| 299 computeType(compiler) => unsupported(); |
305 | 300 |
306 bool get hasFunctionSignature => false; | 301 bool get hasFunctionSignature => false; |
307 | 302 |
308 get effectiveTarget => this; | 303 get effectiveTarget => this; |
309 | 304 |
310 computeEffectiveTargetType(InterfaceType newType) => unsupported(); | 305 computeEffectiveTargetType(InterfaceType newType) => unsupported(); |
311 | 306 |
312 get definingConstructor => null; | 307 get definingConstructor => null; |
313 | 308 |
314 FunctionElement asFunctionElement() => this; | 309 FunctionElement asFunctionElement() => this; |
(...skipping 2587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2902 AstElement get definingElement; | 2897 AstElement get definingElement; |
2903 | 2898 |
2904 bool get hasResolvedAst => definingElement.hasTreeElements; | 2899 bool get hasResolvedAst => definingElement.hasTreeElements; |
2905 | 2900 |
2906 ResolvedAst get resolvedAst { | 2901 ResolvedAst get resolvedAst { |
2907 return new ResolvedAst(declaration, | 2902 return new ResolvedAst(declaration, |
2908 definingElement.node, definingElement.treeElements); | 2903 definingElement.node, definingElement.treeElements); |
2909 } | 2904 } |
2910 | 2905 |
2911 } | 2906 } |
OLD | NEW |