Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1172693003: Move computeType to TypedElement and TypeDeclarationElement. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698