| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, 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 |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
| 12 * the License. | 12 * the License. |
| 13 */ | 13 */ |
| 14 package com.google.dart.tools.ui.internal.cleanup.migration; | 14 package com.google.dart.tools.ui.internal.cleanup.migration; |
| 15 | 15 |
| 16 import com.google.dart.compiler.ast.ASTVisitor; | 16 import com.google.dart.compiler.ast.ASTVisitor; |
| 17 import com.google.dart.compiler.ast.DartClass; | 17 import com.google.dart.compiler.ast.DartClass; |
| 18 import com.google.dart.compiler.ast.DartExpression; | 18 import com.google.dart.compiler.ast.DartExpression; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 import static com.google.dart.tools.core.dom.PropertyDescriptorHelper.DART_VARIA
BLE_VALUE; | 48 import static com.google.dart.tools.core.dom.PropertyDescriptorHelper.DART_VARIA
BLE_VALUE; |
| 49 import static com.google.dart.tools.core.dom.PropertyDescriptorHelper.getLocatio
nInParent; | 49 import static com.google.dart.tools.core.dom.PropertyDescriptorHelper.getLocatio
nInParent; |
| 50 import static com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M2_me
thods_CleanUp.isSubType; | 50 import static com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M2_me
thods_CleanUp.isSubType; |
| 51 | 51 |
| 52 import java.text.MessageFormat; | 52 import java.text.MessageFormat; |
| 53 import java.util.List; | 53 import java.util.List; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * In 1.0 M3 many change to the <code>Iterator</code>, <code>Iterable</code> and
<code>Future</code> | 56 * In 1.0 M3 many change to the <code>Iterator</code>, <code>Iterable</code> and
<code>Future</code> |
| 57 * will be done. | 57 * will be done. |
| 58 * | 58 * |
| 59 * @coverage dart.editor.ui.cleanup | 59 * @coverage dart.editor.ui.cleanup |
| 60 */ | 60 */ |
| 61 public class Migrate_1M3_corelib_CleanUp extends AbstractMigrateCleanUp { | 61 public class Migrate_1M3_corelib_CleanUp extends AbstractMigrateCleanUp { |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * @return <code>E</code> for method <code>where(bool f(E element))</code>, ma
y be | 64 * @return <code>E</code> for method <code>where(bool f(E element))</code>, ma
y be |
| 65 * <code>null</code> if other code structure given. | 65 * <code>null</code> if other code structure given. |
| 66 */ | 66 */ |
| 67 private static String getCollectionTypeFromFunctionParameter(DartMethodDefinit
ion node) { | 67 private static String getCollectionTypeFromFunctionParameter(DartMethodDefinit
ion node) { |
| 68 String result = null; | 68 String result = null; |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 DartTypeNode typeNode = varStatement.getTypeNode(); | 398 DartTypeNode typeNode = varStatement.getTypeNode(); |
| 399 if (typeNode != null) { | 399 if (typeNode != null) { |
| 400 addReplaceEdit(SourceRangeFactory.create(typeNode), "HasNextIterat
or" + typeArg); | 400 addReplaceEdit(SourceRangeFactory.create(typeNode), "HasNextIterat
or" + typeArg); |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 } | 403 } |
| 404 } | 404 } |
| 405 }); | 405 }); |
| 406 } | 406 } |
| 407 } | 407 } |
| OLD | NEW |