Commit Graph

10557 Commits

Author SHA1 Message Date
Jack Zhou a91a2efc75 Create from usage: Extracted method from getNextAvailableName. 2013-05-28 16:57:26 -07:00
Jack Zhou 12aa90f564 Create from usage: Renamed guessTypeForExpression to guessTypesForExpression. 2013-05-12 23:51:04 -04:00
Jack Zhou 924e70f3f7 Create from usage: Fixed offering error types when guessing type fails. 2013-05-12 23:51:03 -04:00
Jack Zhou 5bd144313d Create from usage: Fixed case for multi-declaration in a for-loop. 2013-05-12 23:51:02 -04:00
Jack Zhou e0a7e85e4a Create from usage: Removed isUnit. 2013-05-12 23:51:00 -04:00
Jack Zhou 927baec6cb Create from usage: Made guessTypeForExpression clearer. 2013-05-12 23:50:59 -04:00
Jack Zhou ce5064e9ae Create from usage: Combined the two overloads of getNextAvailableName. 2013-05-12 23:50:58 -04:00
Jack Zhou ab6cc8b8ea Create from usage: Fixed swapped co-/contravariant comments. 2013-05-12 23:50:57 -04:00
Jack Zhou b527ec45a3 Create from usage: Renamed underscore identifier. 2013-05-12 23:50:56 -04:00
Jack Zhou 8d3c1cddb4 Create from usage: Returning immediately to avoid reassignment. 2013-05-12 23:50:55 -04:00
Jack Zhou e0201bf8f3 Create from usage: Removed extraneous project parameters. 2013-05-12 23:50:54 -04:00
Jack Zhou 1a34c71763 Create from usage: Removed checking for null before instanceof. 2013-05-12 23:50:53 -04:00
Jack Zhou bdf73c07b8 Create from usage: Renamed typeDeclaration to classDeclaration. 2013-05-12 23:50:52 -04:00
Jack Zhou 6ba66cedea Create from usage: Renamed doInvoke to addFunctionToSelectedOwner. 2013-05-12 23:50:51 -04:00
Jack Zhou 7e5c04ad6d Create from usage: Changed checking list.getSelectedIndex() for < 0 to checking list.getSelectedValue() for null. 2013-05-12 23:50:50 -04:00
Jack Zhou f3e6c70e40 Create from usage: Changed class selection to be look like Java. 2013-05-12 23:50:49 -04:00
Jack Zhou 1c18f9f171 Create from usage: Renamed TypeSubstitution to JetTypeSubstitution. 2013-05-12 23:50:48 -04:00
Jack Zhou 74ae201c36 Create from usage: Changed type of TypeOrExpressionThereof.typeCandidates to List instead of array. 2013-05-12 23:50:47 -04:00
Jack Zhou 8535ef9be2 Create from usage: Removed two constructors from TypeOrExpressionThereof. 2013-05-12 23:50:46 -04:00
Jack Zhou ea14607576 Create from usage: Made CreateGetFromUsage7 test clearer. 2013-05-12 23:50:45 -04:00
Jack Zhou ec15d5fee4 Create from usage: Renamed all references of 'method' to 'function'. 2013-05-12 23:50:44 -04:00
Jack Zhou d2ce58e912 Create from usage: Replaced boilerplate code with NavigationUtil.activateFileWithPsiElement. 2013-05-12 23:50:43 -04:00
Jack Zhou e53feac26d Create from usage: Fixed extraneous imports in CreateFromUsageFixBase. 2013-05-12 23:50:42 -04:00
Jack Zhou eadb73c9f8 Create from usage: Using UnsupportedOperationException for the file template instead. 2013-05-12 23:50:41 -04:00
Jack Zhou c7c8c096f7 Create from usage: Removed quickfix for NO_CLASS_OBJECT. 2013-05-12 23:50:40 -04:00
Jack Zhou b7fe134b61 Create from usage: Added tests. 2013-05-12 23:50:36 -04:00
Jack Zhou 60fa732042 Create from usage: Fixed a bug with creating methods in the wrong owners for next and hasNext. 2013-05-12 23:43:46 -04:00
Jack Zhou 3d120432c5 Create from usage: Fixed extra type options. 2013-05-12 23:43:45 -04:00
Jack Zhou 7a42ca211d Create from usage: Changed type order to prefer substituted versions. 2013-05-12 23:43:44 -04:00
Jack Zhou 0e73e32621 Create from usage: Fixed a bug with extension functions. 2013-05-12 23:43:43 -04:00
Jack Zhou a9f1ba3063 Create from usage: Fixed a bug where the type parameter list is not rendered correctly when empty. 2013-05-12 23:43:42 -04:00
Jack Zhou 0cd9c2d9a8 Create from usage: Fixed an overly restrictive assertion. 2013-05-12 23:43:41 -04:00
Jack Zhou 7b072e573a Create from usage: Implemented CreateClassObjectFromUsageFix. 2013-05-12 23:43:40 -04:00
Jack Zhou d20e3413e0 Create from usage: Fixed up assertions. 2013-05-12 23:43:39 -04:00
Jack Zhou a80ea6904a Create from usage: Added type parameter renaming. 2013-05-12 23:43:35 -04:00
Jack Zhou fc6c2be73b Create from usage: Refactoring. 2013-05-12 23:42:46 -04:00
Jack Zhou 4044aae489 Create from usage: Offering more choices for type substitutions. 2013-05-12 23:42:45 -04:00
Jack Zhou 6de37f4c85 Create from usage: Added Any as fallback to expressions that has no guessable types. 2013-05-12 23:42:44 -04:00
Jack Zhou 9a079ae621 Create from usage: Removed supertypes from consideration for return types. 2013-05-12 23:42:39 -04:00
Jack Zhou f2dc5e39e7 Create from usage: Removed a TODO. 2013-05-12 23:37:15 -04:00
Jack Zhou e231397811 Create from usage: Fixed expected type for if-expression. 2013-05-12 23:37:14 -04:00
Jack Zhou 48c825df06 Create from usage: Added guessing types for a declaration without an explicit type. 2013-05-12 23:37:13 -04:00
Jack Zhou d42edc8207 Create from usage: Added EXPECTED_EXPRESSION_TYPE slice in BindingContext. 2013-05-12 23:37:12 -04:00
Jack Zhou 4ffbd353d9 Create from usage: Fixed adding methods across files. 2013-05-12 23:37:11 -04:00
Jack Zhou 2284c7bd48 Create from usage: Fixed typo. 2013-05-12 23:37:09 -04:00
Jack Zhou 4ee5d95dc9 Create from usage: Fixed finding the component number. 2013-05-12 23:37:08 -04:00
Jack Zhou 7b994388d5 Create from usage: Implemented all create method from usage fixes. 2013-05-12 23:37:07 -04:00
Jack Zhou cfce75b788 Create from usage: Fixed warnings. 2013-05-12 23:37:06 -04:00
Jack Zhou b07548184a Create from usage: Fixed duplication of type parameters. 2013-05-12 23:37:05 -04:00
Jack Zhou c0bbb7b2cc Create from usage: Fixed a bug where extension methods could not be added properly. 2013-05-12 23:37:04 -04:00