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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeProviderImpl.java

Issue 913623002: Partial backport of analyzer async/await fixes to Java. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status files Created 5 years, 10 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 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. 2 * Copyright (c) 2013, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 * The type representing the built-in type 'Function'. 60 * The type representing the built-in type 'Function'.
61 */ 61 */
62 private InterfaceType functionType; 62 private InterfaceType functionType;
63 63
64 /** 64 /**
65 * The type representing the built-in type 'int'. 65 * The type representing the built-in type 'int'.
66 */ 66 */
67 private InterfaceType intType; 67 private InterfaceType intType;
68 68
69 /** 69 /**
70 * The type representing 'Iterable<dynamic>'.
71 */
72 private InterfaceType iterableDynamicType;
73
74 /**
75 * The type representing the built-in type 'Iterable'.
76 */
77 private InterfaceType iterableType;
78
79 /**
70 * The type representing the built-in type 'List'. 80 * The type representing the built-in type 'List'.
71 */ 81 */
72 private InterfaceType listType; 82 private InterfaceType listType;
73 83
74 /** 84 /**
75 * The type representing the built-in type 'Map'. 85 * The type representing the built-in type 'Map'.
76 */ 86 */
77 private InterfaceType mapType; 87 private InterfaceType mapType;
78 88
79 /** 89 /**
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 public InterfaceType getFunctionType() { 159 public InterfaceType getFunctionType() {
150 return functionType; 160 return functionType;
151 } 161 }
152 162
153 @Override 163 @Override
154 public InterfaceType getIntType() { 164 public InterfaceType getIntType() {
155 return intType; 165 return intType;
156 } 166 }
157 167
158 @Override 168 @Override
169 public InterfaceType getIterableDynamicType() {
170 return iterableDynamicType;
171 }
172
173 @Override
174 public InterfaceType getIterableType() {
175 return iterableType;
176 }
177
178 @Override
159 public InterfaceType getListType() { 179 public InterfaceType getListType() {
160 return listType; 180 return listType;
161 } 181 }
162 182
163 @Override 183 @Override
164 public InterfaceType getMapType() { 184 public InterfaceType getMapType() {
165 return mapType; 185 return mapType;
166 } 186 }
167 187
168 @Override 188 @Override
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 */ 244 */
225 private void initializeFrom(LibraryElement library) { 245 private void initializeFrom(LibraryElement library) {
226 Namespace namespace = new NamespaceBuilder().createPublicNamespaceForLibrary (library); 246 Namespace namespace = new NamespaceBuilder().createPublicNamespaceForLibrary (library);
227 boolType = getType(namespace, "bool"); 247 boolType = getType(namespace, "bool");
228 bottomType = BottomTypeImpl.getInstance(); 248 bottomType = BottomTypeImpl.getInstance();
229 deprecatedType = getType(namespace, "Deprecated"); 249 deprecatedType = getType(namespace, "Deprecated");
230 doubleType = getType(namespace, "double"); 250 doubleType = getType(namespace, "double");
231 dynamicType = DynamicTypeImpl.getInstance(); 251 dynamicType = DynamicTypeImpl.getInstance();
232 functionType = getType(namespace, "Function"); 252 functionType = getType(namespace, "Function");
233 intType = getType(namespace, "int"); 253 intType = getType(namespace, "int");
254 iterableType = getType(namespace, "Iterable");
234 listType = getType(namespace, "List"); 255 listType = getType(namespace, "List");
235 mapType = getType(namespace, "Map"); 256 mapType = getType(namespace, "Map");
236 nullType = getType(namespace, "Null"); 257 nullType = getType(namespace, "Null");
237 numType = getType(namespace, "num"); 258 numType = getType(namespace, "num");
238 objectType = getType(namespace, "Object"); 259 objectType = getType(namespace, "Object");
239 stackTraceType = getType(namespace, "StackTrace"); 260 stackTraceType = getType(namespace, "StackTrace");
240 stringType = getType(namespace, "String"); 261 stringType = getType(namespace, "String");
241 symbolType = getType(namespace, "Symbol"); 262 symbolType = getType(namespace, "Symbol");
242 typeType = getType(namespace, "Type"); 263 typeType = getType(namespace, "Type");
264 iterableDynamicType = iterableType.substitute(new Type[] {dynamicType});
243 } 265 }
244 } 266 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698