Commit Graph

31217 Commits

Author SHA1 Message Date
Yan Zhulanow a2b1eb7ee8 Lint: Fix KT-11919 ("Missing Parcelable CREATOR field" rule is not accurate) 2016-04-21 20:08:46 +03:00
Yan Zhulanow 33434a3c5b Lint: Fix KT-11939 (@SuppressLint("PrivateResource") doesn't work) 2016-04-21 20:08:46 +03:00
Yan Zhulanow 574aa5debe Lint: Fix KT-11924 (False positive on beginTransaction() should be completed with a commit() call) 2016-04-21 20:08:46 +03:00
Yan Zhulanow 35fca9171c Lint, Minor: Fix compilation 2016-04-21 20:08:46 +03:00
Yan Zhulanow 5008c6d8fc Lint, Uast: Fix Java function descriptor calculation KT-11923 2016-04-21 20:08:46 +03:00
Yan Zhulanow aa06cd8f7d Lint: Fix EA-81466 2016-04-21 20:08:46 +03:00
Yan Zhulanow 64dbba8e2c Lint: Fix EA-81613, EA-81468 2016-04-21 20:08:46 +03:00
Michael Bogdanov 7335f2394b Sort result ranges in SMAP class 2016-04-21 17:32:03 +03:00
Michael Bogdanov d945c47b63 Skip line numbers that couldn't be mapped by SourceMappers 2016-04-21 17:32:03 +03:00
Alexey Sedunov 021c88e5ff Find Usages: Fixed searching of Java usages for @JvmStatic properties and @JvmStatic @JvmOverloads functions
#KT-11736 Fixed
2016-04-21 16:40:19 +03:00
Alexey Sedunov 1635018fe7 Override/Implement: Use function body template when generating functions with default body
#KT-11807 Fixed
2016-04-21 16:40:17 +03:00
Alexey Sedunov df07554764 Find Usages: Start read action for derived class search
#KT-11845 Fixed
2016-04-21 16:39:18 +03:00
Nikolay Krasko 39e6b893a7 Teach getOwnerFunction() in KtParamter work with stubs 2016-04-21 15:25:10 +03:00
Nikolay Krasko c62d906d5c Minor: test methods rename 2016-04-21 15:25:09 +03:00
Nikolay Krasko b0433b2904 Prevent stepping through indirect assignments in injection search 2016-04-21 15:25:08 +03:00
Nikolay Krasko 505c6624a7 Inject predefined places through usages 2016-04-21 15:25:06 +03:00
Nikolay Krasko 62ff67c2b0 Disable complex injection search in DFA == OFF mode 2016-04-21 15:25:05 +03:00
Nikolay Krasko 9590c9a10b Add note about injection feature to ChangeLog 2016-04-21 15:25:04 +03:00
Nikolay Krasko d69d1f2c53 Support toRegex() standard function
#KT-8088 Fixed
2016-04-21 15:25:02 +03:00
Nikolay Krasko 6bea3923f5 Injection test refactoring 2016-04-21 15:25:01 +03:00
Nikolay Krasko 42084b0529 Allow injection for all Regex constructors
#KT-8088 In Progress
2016-04-21 15:25:00 +03:00
Nikolay Krasko c6e48d8e59 First version of Kotlin patterns in injection
#KT-8088 In Progress
2016-04-21 15:24:58 +03:00
Mikhail Glukhikh a12faf5baf KtDeclaration.containingClassOrObject now works correctly for primary constructor and its parameters #KT-11982 Fixed 2016-04-21 14:21:40 +03:00
Nikolay Krasko 454a8474f1 Write Action: Add write action for template finish processor (KT-11418) 2016-04-21 13:14:51 +03:00
Nikolay Krasko 97a97614b5 Write Action: Wrap import insertion with write action 2016-04-21 13:14:50 +03:00
Nikolay Krasko ab0fe0a900 Write Action: Add write action for deleting qualifier in shortenReferences
Problem revealed after template listners are executed without write action
https://github.com/JetBrains/intellij-community/commit/5c2c94626599c1537ffbd6d14273257f8c250087
2016-04-21 13:14:48 +03:00
Nikolay Krasko 143fd4ee08 Update until version for new idea build numbering 2016-04-21 13:14:47 +03:00
Alexey Andreev 7b76fa6103 KT-11030 Remove tests for diagnostics for local classes in JS backend 2016-04-20 18:12:25 +03:00
Alexey Andreev ade5477c33 KT-11030 Initialization order of enum entries in JS now conforms to JVM backend 2016-04-20 18:12:25 +03:00
Alexey Andreev 87ea0bd0cb KT-11030 Minor code improvements 2016-04-20 18:12:25 +03:00
Alexey Andreev 166b985fca KT-11028 Add test for the issue 2016-04-20 18:12:24 +03:00
Alexey Andreev 4ac730e5ed KT-11030 Fix referencing wrong field generated for captured variable when this captured variable referenced both from constructor and non-constructor method. Avoid duplicate generation of call to delegated constructor. 2016-04-20 18:12:24 +03:00
Alexey Andreev a5e0c70988 KT-11611 Prevent duplicate generation of default values of secondary constructor parameters 2016-04-20 18:12:23 +03:00
Alexey Andreev 7afca74b94 KT-11030 When constructor of object expression calls super constructor, place this call at object creation instead of object's constructor. This allows to capture outer this reference properly in certain cases. JVM backend uses the same approach 2016-04-20 18:12:23 +03:00
Alexey Andreev 03dc9c0fa4 KT-11030 Refactor translation of class to support secondary constructors of local classes 2016-04-20 18:12:23 +03:00
Alexey Andreev e305898f84 KT-11030 Simplify code and refactor generation of object expressions 2016-04-20 18:12:22 +03:00
Alexey Andreev c1c57a06bb KT-11030 Refactoring code to properly implement secondary constructors in local classes 2016-04-20 18:12:22 +03:00
Alexey Andreev b39c16cb6c KT-11030 Fix translation of secondary constructors of inner classes 2016-04-20 18:12:22 +03:00
Alexey Andreev 7af4b2fdb2 KT-11030 Fix subclassing of local class by local class 2016-04-20 18:12:21 +03:00
Alexey Andreev d9504dfe2b KT-11030 When local function is declared inside constructor, capture this into this function 2016-04-20 18:12:21 +03:00
Alexey Andreev a74c613ec5 KT-11030 Make copy method of local data classes to copy captured variables 2016-04-20 18:12:21 +03:00
Alexey Andreev a21b5ad4e6 KT-11030 Fix capturing of local variables via by expression, i.e. object : ClassName by v where v is local variable 2016-04-20 18:12:20 +03:00
Alexey Andreev af0280ca7a KT-11030 Repair support of enums. Minor refactoring of ClassTranslator 2016-04-20 18:12:20 +03:00
Alexey Andreev 47dde9520d KT-11030 Don't capture companion objects into closure 2016-04-20 18:12:15 +03:00
Alexey Andreev 1bded9d66f KT-11030 Fix translation of FQN of native companion objects 2016-04-20 18:01:08 +03:00
Alexey Andreev 6967ebcc8c KT-11030 Copy static properties of object's class to instance of object (think about moving local functions to member methods in objects) 2016-04-20 18:01:08 +03:00
Alexey Andreev 00292f4125 KT-11030 Avoid name clash between member fields and fields that store closure of local classes 2016-04-20 18:01:07 +03:00
Alexey Andreev 337078faf3 KT-11030 Unify concept of objects and companion objects. Fix order of initialization of nested objects. 2016-04-20 18:01:07 +03:00
Alexey Andreev 8e7d949dd4 KT-11030 Implements closures in classes. Represent local object literals as classes 2016-04-20 18:01:07 +03:00
Alexey Andreev 1f8c3375fe KT-11030 Implements local classes that don't have closure 2016-04-20 18:01:06 +03:00