Commit Graph

69 Commits

Author SHA1 Message Date
Valentin Kipyatkov d8574f38d2 Trying to rewrite code to avoid JVM crash 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov 6ec10b9b6b Correct completion of nested/inner classes after dot
#KT-1889 Fixed
2014-12-18 15:48:27 +03:00
Valentin Kipyatkov 2a41856af6 Changed API in ResolutionFacade to resolve to element to support 3 modes 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov 191d3e2766 Corrected usages of isNullableType/isMarkedNullable 2014-12-18 15:47:58 +03:00
Ilya Ryzhenkov be717f48f8 Stop using deprecated APIs 2014-12-16 17:33:24 +03:00
Svetlana Isakova a2fa38a7f9 Rewritten ConstraintPosition to Kotlin
Added ConstraintPositionKind
 (to be able to use enum constants from Java code)
2014-12-12 23:08:26 +03:00
Natalia Ukhorskaya 73d62902d0 Debugger: use partialBodyResolve. Don't compete variables defined after context element 2014-12-12 13:42:35 +03:00
Valentin Kipyatkov b8d1f115bf Renamed JetType.isNullable() to isMarkedNullable() 2014-12-03 21:36:10 +03:00
Valentin Kipyatkov 7ba11b0f2f Fixed auto-import of operator functions broken before + fixed bug in its implementation 2014-12-03 21:09:29 +03:00
Valentin Kipyatkov 3161eb284b Added comment 2014-12-03 20:12:44 +03:00
Valentin Kipyatkov 132cb26e04 Code improvements after review 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov dfd5e773df extensionsUtils.kt uses FuzzyType + more correct treatment of receiver nullability there 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov 418b16e766 Moved FuzzyType and changed package for extensionUtils 2014-12-03 19:07:32 +03:00
Valentin Kipyatkov 522ceee559 Optimizations 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 1d288e6dcc Completion: multiple extension methods with different substitutions may be shown 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 2c08b3e229 Extension methods shown with type arguments substituted in completion list 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 9dc6a82fef More clear code + better test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov acfd308a7e Code completion: graying members after dot completion for nullable value 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov a60f32b919 More correct and simple code 2014-12-03 18:59:45 +03:00
Valentin Kipyatkov 79cfa1f84e Code simplification 2014-12-03 18:59:45 +03:00
Andrey Breslav db635c0e44 is<TYPE>() made static in KotlinBuiltIns 2014-12-03 15:39:10 +03:00
Natalia Ukhorskaya 732700e959 Completion: insert cast to runtime type for receiver in code fragments 2014-12-03 12:49:33 +03:00
Andrey Breslav e0bd881c1e Rendering for dynamic types 2014-12-01 20:43:38 +03:00
Valentin Kipyatkov 122b14dd7d More accurate filtering of extensions 2014-11-28 15:33:28 +03:00
Valentin Kipyatkov 95042a729f Fixed NPE 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov 32a13502c5 Fixed one of the cases with lambda's returning Nothing 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov c5afc219b9 Added assert + removed qualified names 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov 2f226685d5 Compiler bug workaround 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 390f5b1bc4 Added comment 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 1f7f046552 Code refactoring 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 14d1b9ce35 Renamed StatementTree + moved utility functions into class object 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov ea3da6cbe6 Renamed enum members 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov d334011d5d Renamed firstOrNullIsInstance 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov ddc60ac5dd Better injecting of partial body resolve filter 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 0b56760910 Partial body resolve works for property accessor body 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 8ccf56415a Partial body resolve filter: fixed nested loops case 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov cc84e9682b Partial body resolve: corrected it for explicit function type but unfortunately it does not work for non-explicit type yet 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 0dd77a8ed3 Renames - dropped word "Service" 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 2f19713cc2 Partial body resolve: rewritten algorithm of filter building to ensure correct resolve of smart cast points (+ prepared to support more strict mode for resolve only) 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov f8f07dc824 Minor 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 4503adb7fc Partial body resolve filter: more correct lambda resolve for return 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov 59cc441fc5 Partial body resolve filter: changed algorithm so that all statements to resolve are found when constructing it 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov 00d9c94a8b Changed way to pass statementFilter from ElementResolver into ExpressionTypingServices 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov a0c9c0e7b2 Added firstOrNullIsInstance and firstIsInstance methods 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov 46c393d2db Added === and !== in addition to == and != 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov a4513c6a00 Added comments 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov 6230ba7310 "casted" -> "cast" 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov 3e437adbb4 Minor code improvements 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov 8010c0f09d Partial body resolve works for local Nothing functions + does not go inside local functions and classes 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov 3b77d337e8 Renames "possibly nothing" to "probably nothing" 2014-11-24 20:11:25 +03:00