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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 21065002: Treat ambiguous types as malformed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Status updated. Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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; 5 library elements;
6 6
7 7
8 import '../tree/tree.dart'; 8 import '../tree/tree.dart';
9 import '../util/util.dart'; 9 import '../util/util.dart';
10 import '../resolution/resolution.dart'; 10 import '../resolution/resolution.dart';
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const ElementKind('statement', ElementCategory.NONE); 112 const ElementKind('statement', ElementCategory.NONE);
113 static const ElementKind LABEL = 113 static const ElementKind LABEL =
114 const ElementKind('label', ElementCategory.NONE); 114 const ElementKind('label', ElementCategory.NONE);
115 static const ElementKind VOID = 115 static const ElementKind VOID =
116 const ElementKind('void', ElementCategory.NONE); 116 const ElementKind('void', ElementCategory.NONE);
117 117
118 static const ElementKind AMBIGUOUS = 118 static const ElementKind AMBIGUOUS =
119 const ElementKind('ambiguous', ElementCategory.NONE); 119 const ElementKind('ambiguous', ElementCategory.NONE);
120 static const ElementKind ERROR = 120 static const ElementKind ERROR =
121 const ElementKind('error', ElementCategory.NONE); 121 const ElementKind('error', ElementCategory.NONE);
122 static const ElementKind MALFORMED_TYPE =
123 const ElementKind('malformed', ElementCategory.NONE);
124 122
125 toString() => id; 123 toString() => id;
126 } 124 }
127 125
128 /** 126 /**
129 * A declared element of a program. 127 * A declared element of a program.
130 * 128 *
131 * The declared elements of a program include classes, methods, 129 * The declared elements of a program include classes, methods,
132 * fields, variables, parameters, etc. 130 * fields, variables, parameters, etc.
133 * 131 *
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 int get resolutionState; 934 int get resolutionState;
937 Token get beginToken; 935 Token get beginToken;
938 Token get endToken; 936 Token get endToken;
939 937
940 // TODO(kasperl): Try to get rid of these. 938 // TODO(kasperl): Try to get rid of these.
941 void set annotatedElement(Element value); 939 void set annotatedElement(Element value);
942 void set resolutionState(int value); 940 void set resolutionState(int value);
943 941
944 MetadataAnnotation ensureResolved(Compiler compiler); 942 MetadataAnnotation ensureResolved(Compiler compiler);
945 } 943 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698