Commit Graph

34127 Commits

Author SHA1 Message Date
Alexander Udalov a1584377bf Do not pack IDEA core libraries into one idea-core-all.jar in pack-compiler
This is no longer needed because there's no more jsr166e.jar in IDEA core
libraries, which was the reason for the original change.

This reverts commit 9a762e0fa2.
2016-10-06 14:40:21 +03:00
Alexander Udalov 8ffe379c92 Use separate module analysis in CliReplAnalyzerEngine 2016-10-06 14:40:21 +03:00
Alexander Udalov 1e51ba7d00 Run classifier usage checkers for ambiguous references when possible
See comment in getReferencedClassifier and importJavaSamInterface.kt for
explanation
2016-10-06 14:40:21 +03:00
Alexander Udalov ec53efd869 Run classifier usage checkers after all imports are resolved
Otherwise the diagnostic was not reported on an unused import of a deprecated
class in diagnostic tests, see the test case
2016-10-06 14:40:20 +03:00
Alexander Udalov f7b4d7d35b Move ClassifierUsageChecker and DeclarationChecker to checkers/ 2016-10-06 14:40:20 +03:00
Alexander Udalov 0905b361d0 Drop LazyTopDownAnalyzerForTopLevel
Replace it everywhere with LazyTopDownAnalyzer
2016-10-06 14:40:20 +03:00
Alexander Udalov 9c70094ceb Move resolveImportsInAllFiles to LazyTDA#analyzeDeclarations
This does not change the behavior: in the other usage of analyzeDeclarations,
a local class is being resolved and therefore TopDownAnalysisContext there does
not contain any files where imports would be resolved
2016-10-06 14:40:20 +03:00
Alexander Udalov 7070b88ea4 Move PlatformToKotlinClassMap out from ModuleParameters
Configure it in the same way as other platform-specific components instead,
simplify some code
2016-10-06 14:40:20 +03:00
Alexander Udalov b77388bd48 Pass PlatformToKotlinClassMap instance to PlatformTypesMappedToKotlinChecker
The purpose of this change is to allow PlatformToKotlinClassMap to be removed
from ModuleDescriptor
2016-10-06 14:40:19 +03:00
shiraji 0360d0e4f6 Refactoring to use Utils#resolvedToArrayType 2016-10-06 14:36:27 +03:00
shiraji 32b7b5a092 Inspection/Intention replace size check with 'isNotEmpty' and 'isEmpty' #KT-13937 Fixed 2016-10-06 14:35:57 +03:00
Alexey Tsvetkov 5fa561eb70 Add test for freeCompilerArgs in kotlin options for Gradle 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 0944e9076d Add 1.1 language version to kotlin options for Gradle 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 8fa7e1f93e Minor: JS test fix 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 7d657a8c58 Don't warn about absence of kotlin files
#KT-10401 fixed
2016-10-05 22:50:46 +03:00
Alexey Tsvetkov a474d75fe2 Avoid exception when getting relative path
#KT-14056 fixed Target versions 1.0.5
2016-10-05 22:50:46 +03:00
Alexey Tsvetkov d293138c28 Refactoring: use same module name as Intellij 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 0d8fa69760 Refactoring: move gradle tests imported from jps to separate dir
This will allow skipping jps tests when running all tests in directory from Intellij
2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 1cc423b163 Refactoring: move gradle integration tests to separate module 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 8cc384a6dd Refactoring: specify internal visibility where possible 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 617bc6c296 Refactoring: use daemon by default in gradle tests 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov c144191522 Minor, set Groovy indent to 4 spaces 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov b3ed04230d Refactoring: cleanup build.gradle files in tests 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 11d971c4bf Refactoring: extract kotlin_version constant for gradle tests 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 18ffb974c7 Refactoring: cleanup after merge 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 139cead7b4 Refactoring: merge modules 'kotlin-gradle-plugin-dsl', 'kotlin-gradle-plugin-core' into 'kotlin-gradle-plugin' 2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 892fc63fd1 Generate gradle options from compiler arguments
#KT-13633 fixed
2016-10-05 22:50:46 +03:00
Alexey Tsvetkov 2c34088859 Track changes in java files generated by kapt2
#KT-13500 fixed
2016-10-05 22:50:46 +03:00
Nikolay Krasko c70e9a6702 Create special parameter for branch version auto-increment
Can be used when bootstrap branch differs from the one used for auto-increment.

Auto-increment is guarded by branch parameter to avoid accidental enabling after branches auto-merge.

(cherry picked from commit 46791a3)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 019ba77e2b J2K: AbstractBytecodeTextTest.java fix compile errors
(cherry picked from commit 02b59be)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 32dff799ff J2K: AbstractBytecodeTextTest.java convert
(cherry picked from commit 93fce11)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 5a873432d9 J2K: AbstractBytecodeTextTest.java rename
(cherry picked from commit 8edd7be)
2016-10-05 18:49:38 +03:00
Nikolay Krasko aae0b85684 Refactoring: hide state of occurrence class
(cherry picked from commit 4f438bc)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 3d9d6e666d Test several line numbers are generated for one instruction
(cherry picked from commit 1ea9280)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 25051746d1 Refactoring: no need in DebugProcessImpl.ResumeCommand for getting command action
(cherry picked from commit 5638f31)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 7ba0436d7f Add cause exception to AssertionError
(cherry picked from commit 0b60cbb)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 3d6ac2f277 Refactoring: create step-over kotlin position and move counting step over specific to create action stage
(cherry picked from commit 4b08bbd)
2016-10-05 18:49:38 +03:00
Nikolay Krasko 60fbcb7e38 Refactoring: extract top-level functions from KotlinSteppingCommandProvider
(cherry picked from commit 2daac45)
2016-10-05 18:49:38 +03:00
Nikolay Krasko dd42420a1e Revert using temp directory for building debugger application by default
(cherry picked from commit f131be0)
2016-10-05 18:49:38 +03:00
Dmitry Jemerov b6e1327e89 allow to specify plugin.xml version number as build script parameter 2016-10-05 16:52:21 +02:00
Dmitry Jemerov 2bd948754e fix QualifiedNameTest 2016-10-05 11:35:06 +02:00
Alexey Sedunov 3f6e60fb51 Call Hierarchy: Show Kotlin usages of Java methods
#KT-12398 Fixed
2016-10-05 11:32:43 +03:00
Alexey Sedunov 5bb035282f Generate 'toString()': Permit for data classes
#KT-14122 Fixed
2016-10-05 11:32:42 +03:00
Alexey Sedunov 0616e869aa Quick Fixes: Implement "Remove unused assignment" quickfix
#KT-9931 Fixed
2016-10-05 11:32:41 +03:00
Alexey Sedunov 074ad6b5f0 Move out of Companion Object: Warn if traget class already contains function with the same signature
#KT-13877 Fixed
2016-10-05 11:32:40 +03:00
Alexey Sedunov 450d31b4bc Test Framework Support: Allow using whitespaces and other symbols in "Generate -> Test Function" dialog
#KT-12556
2016-10-05 11:32:39 +03:00
Alexey Sedunov 86c123164a Move Inner Class to Upper Level: Fix replacement of outer class instances used in inner class constructor calls
#KT-13928 Fixed
2016-10-05 11:32:38 +03:00
Alexey Sedunov c76c834009 Rename: When renaming Kotlin file outside of source root do not rename its namesake in a source root
#KT-14096 Fixed
2016-10-05 11:32:37 +03:00
Alexey Sedunov a5eee2d3d8 Move: Do not report accessibility conflicts on builtin declarations
#KT-13726 Fixed
2016-10-05 11:32:36 +03:00
Alexey Sedunov ba1ee99e97 Navigation: Filter out candidate declarations coming from the wrong library
#KT-13726 In Progress
2016-10-05 11:32:36 +03:00