Commit Graph

33496 Commits

Author SHA1 Message Date
Ilya Chernikov 5900cad8b3 Add possibility to pass script dependency resolver directly rather than via definition annotation
This may help to reduce dependencies in certain situations
2016-08-03 09:51:40 +02:00
shiraji 5fb79259f7 Intention / inspection for unnecessary lateinit #KT-13011 Fixed
(cherry picked from commit 45d82f1)
2016-08-03 09:31:03 +03:00
Mikhail Glukhikh d868410093 Single-expression string template is inspection for strings and intention otherwise #KT-13113 Fixed
(cherry picked from commit 266f9d0)
2016-08-02 15:31:16 +03:00
shiraji 9b8c55d823 KT-13113: Add inspection to detect single-expression string template
(cherry picked from squashed commits 49a3ef3 and 4c7a42a)
2016-08-02 15:30:23 +03:00
Nikolay Krasko a9ee10a8b7 Ignore intervals that has no mapping for origin line (KT-12896) 2016-08-02 01:05:08 +03:00
Nikolay Krasko 2dd7470cdc Better search for inlined strings in strata: there might me several file mappings to the same file (KT-12896)
#KT-12896 In Progress
2016-08-02 01:05:05 +03:00
Nikolay Krasko ace58e8aa2 Refactorings: functions moves 2016-08-02 01:02:07 +03:00
Nikolay Krasko 5df7358dab Fix breakpoints in inline functions after dexing (KT-12896)
#KT-12896 In Progress
2016-08-02 01:02:07 +03:00
Nikolay Krasko 64979ae190 Allow to step into inline functions while debugging Android app (KT-12896)
#KT-12896 In Progress
2016-08-02 01:02:07 +03:00
Nikolay Krasko 2a2d7cd358 Emulate debugging after dexing for stepping tests with 'dex' prefix (KT-12896)
Remove SourceDebugExtension attribute from resulting class files

 #KT-12896 In Progress
2016-08-02 01:02:07 +03:00
Nikolay Krasko ad1907f48d Refresh output dirs to make CompilerPaths.getModuleOutputDirectory() method work 2016-08-02 01:02:07 +03:00
Nikolay Krasko 64e034959f Refactoring: introduce constants with strata names and reuse them in debugger 2016-08-02 01:02:07 +03:00
Nikolay Krasko 66bbcf470c Refactoring: move smapUtil and DebuggerUtils to debugger package 2016-08-02 01:02:07 +03:00
Mikhail Glukhikh 39090113e9 KT-13262 related: surround with null check is applicable now also for qualified calls with argument type mismatch
(cherry picked from commit 8f13c84)
2016-08-01 12:24:49 +03:00
Mikhail Glukhikh b7fd41844d Wrap with safe let call handles qualified calls correctly #KT-13262 Fixed
(cherry picked from commit 7044348)
2016-08-01 12:24:38 +03:00
Mikhail Glukhikh 77b7648f10 Build fix: replace call with comparison inspection test
(cherry picked from commit 7f6be5b)
2016-08-01 12:24:27 +03:00
Mikhail Glukhikh 475dc6541b Replace call with comparison inspection introduced #KT-11425 Fixed
(cherry picked from commit 042fc0d)
2016-08-01 12:24:14 +03:00
Mikhail Glukhikh fc13b25ca4 KT-11425: convert a.compareTo(b) to binary comparison if possible
(cherry picked from commit 7219904)
2016-08-01 12:23:19 +03:00
Mikhail Glukhikh f309021c9f KT-11425: convert !a.equals(b) to a != b
(cherry picked from commit 56c7786)
2016-08-01 12:23:07 +03:00
Mikhail Glukhikh 2850a7898d KT-11425: replace call with binary operator works now also with equals() and ==
(cherry picked from commit 5d47fdf)
2016-08-01 12:22:54 +03:00
Ilya Gorbunov 39d7d3381c Make unchecked cast in Map.getOrDefault extension that is covariant by K, since getOrDefault member now requires K as key.
Relates to #KT-13209.
2016-07-29 21:03:56 +03:00
Ilya Gorbunov 0a0bdbc8b3 Minor: fix test source root 2016-07-29 21:03:56 +03:00
Mikhail Glukhikh d8bd90fb90 ReplaceInfixCallFix --> ReplaceInfixOrOperatorCallFix
(cherry picked from commit 679867b)
2016-07-29 20:12:21 +03:00
Mikhail Glukhikh 995a633229 Replace with safe call works now on UNSAFE_IMPLICIT_INVOKE #KT-12628 Fixed
(cherry picked from commit 208798d)
2016-07-29 20:12:11 +03:00
Mikhail Glukhikh a9c30e878b KT-12628: !! is now correctly added to array expressions
(cherry picked from commit 56c9d7e)
2016-07-29 20:12:02 +03:00
Mikhail Glukhikh 47493c1a65 KT-12628: replace infix call supports now array accesses too
(cherry picked from commit 3d67f84)
2016-07-29 20:11:45 +03:00
Mikhail Glukhikh c439a751ab KT-12628: new test for arg + something with nullable arg
(cherry picked from commit a7e4e2d)
2016-07-29 20:11:36 +03:00
Mikhail Glukhikh 9830140a15 Make constructor parameter a property: additional test for private property in superclass
(cherry picked from commit dd30bd5)
2016-07-29 20:11:27 +03:00
Mikhail Glukhikh 838cfc7dca Make constructor parameter a property: select 'private' to be able to remove it #KT-13187 Fixed
(cherry picked from commit dc8c195)
2016-07-29 20:11:18 +03:00
Mikhail Glukhikh 0278a6c8a4 Make constructor parameter a property: message shortened a bit
(cherry picked from commit 1938909)
2016-07-29 20:11:09 +03:00
Alexey Tsvetkov e51f2457bf Add additional java source dir to source set in android test 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov ef70814f60 Refactoring: extract function to map classpath 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 2cae5f01cf Move call to kotlinTask.source to doTargetSpecificProcessing 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov ad1340caf3 Refactoring: move mapKotlinTaskProperties call to createKotlinJVMTask 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 048982cf36 Refactor classpath handling in KotlinCompile
#KT-13234 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 815e297328 Add test for code using internal compiled incrementally
The issue was fixed during refactoring

    #KT-12923 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 2e3b3da029 Track changes in generated source files
#KT-12962 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 7fe29a7e55 Refactoring: simplify source roots search 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov b13e1b451d Refactoring: use convention mapping for configuring classpath of kotlin tasks
#KT-12658 fixed
    #KT-12750 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov d55a8f8054 Refactor source configuration for android 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov d36de54aa9 Minor: cleanup 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov d376e76e75 Refactoring: set task properties directly 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 54659fcacf Refactoring: remove extra property to pass stubs directory 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 92af1e9454 Refactoring: do not use extraProperties to pass kapt options to task 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov c838eed6a3 Refactoring: remove reflection calls 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov f297de401c Refactoring: remove remainings of custom classloader in gradle plugin 2016-07-29 17:56:30 +03:00
Stanislav Erokhin aa91b5a1b0 KT-13264 IAE: Argument for @NotNull parameter 'errorClass' createErrorTypeConstructorWithCustomDebugName must not be null
#KT-13264 Fixed
2016-07-29 17:53:12 +03:00
Stanislav Erokhin 19e4dbc37c Refactoring. Move functionTypeResolveUtils.kt to resolution module. 2016-07-29 17:53:11 +03:00
Stanislav Erokhin df461d6e7f Refactoring. Remove supertype TowerContext from class InvokeTowerContext. 2016-07-29 17:53:11 +03:00
Stanislav Erokhin 2c2f105c5d Do not add receiver for function expression by expected type. 2016-07-29 17:53:10 +03:00