Mikhail Glukhikh
729de536de
Rewrite slice error removed for LEAKING_THIS #KT-13371 Fixed
...
Also EA-86478 fixed
(cherry picked from commit 5ac3126)
2016-08-09 10:28:40 +03:00
Valentin Kipyatkov
6ff91d1399
KT-12793 Code completion doesn't suggest abstract protected extension methods
...
#KT-12793 Fixed
2016-08-05 19:36:52 +03:00
Nikolay Krasko
bc0d302760
Use nullable value and destroy it in tearDown for REPL tests
2016-08-05 16:46:22 +03:00
Nikolay Krasko
300e0acd27
Report RETURN_NOT_ALLOWED and RETURN_IN_FUNCTION_WITH_EXPRESSION_BODY only on the return with label (KT-13340)
...
#KT-13340 Fixed
2016-08-05 13:16:05 +03:00
Natalia Ukhorskaya
7087f10660
Fixes after review: get last statement in codeFragmetn using psi instead of findElementAt
2016-08-03 17:51:49 +03:00
Natalia Ukhorskaya
ed204e9bac
Minor: extract similar parts to separate function
2016-08-03 17:51:49 +03:00
Natalia Ukhorskaya
6a04cd39b2
Debugger: allow to evaluate kotlin expressions in java files
...
#KT-7549 Fixed
If the context is inside PsiJavaFile, get list of all local variables available in current frame (this logic was removed in 29778311e8 01.12.2015 Drop unnecesary logic about additional context for lambda in debugger). For each variable create KtProperty inside top-level KtFunction in KtFile and set it as contextElement for KtCodeFragment. This file should have all imports from PsiJavaFile. We do not create properties on top-level because they will be highlighted as top-level vals/vars.
2016-08-03 17:51:49 +03:00
Natalia Ukhorskaya
d823d6f4ab
Debugger tests: mark objects using NodeDescriptorImpl.getMarkup. Primitive values cannot be marked.
2016-08-03 17:51:49 +03:00
Pavel V. Talanov
30892e0154
KtLightClassForDecompiledDeclaration is now marked by KtLightClassMarker
...
Rename: KtJavaMirrorMarker -> KtLightClassMarker
Introduce code to be able to tell light classes from source and binaries apart in 'frontend.java'
2016-08-03 17:29:06 +03:00
Ilya Chernikov
1248230c69
Fix after review, add logging for scripting-specific behavior
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
fbc5d64aab
gradleScriptTemplateProvider: fix NPE
2016-08-03 09:51:40 +02:00
Ilya Chernikov
80f7dda6c7
Update gradle script resolver environment:
...
- JVM options from IDEA config to connect/run daemon with appropriate options (need to be tested)
- A lexing function to allow gradle plugin to check whether dependency-defining part of the script is actually changed
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
464445c260
KotlinCacheServiceImpl: Add all sdks from project sdk table when building facadeForSdk
...
As of now facadeForSdk should contain all sdks that we can possibly reference while resolving including those that scripts depend on
More granular approach may be beneficial in the future
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
bc0ccd4861
Refactor: move script module info related code to a separate file
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
a8416035b1
IDE Script support: use particular scripts dependencies when building analyzers
...
Use javaHome property to detect jdk to analyze script files against, use default jdk if it's null
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
350abbe8cd
KotlinScriptConfigurationManager, minor: Extract utility to get transform list of file to vfs roots
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
500554e58c
Clarify API so that it's possible to get single KotlinScriptExternalDependencies per script file
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
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
Stanislav Erokhin
19e4dbc37c
Refactoring. Move functionTypeResolveUtils.kt to resolution module.
2016-07-29 17:53:11 +03:00
Dmitry Petrov
2b63c6a2d5
Merge branch 'typealias_completion' of https://github.com/cypressious/kotlin into cypressious-typealias_completion
2016-07-28 18:07:43 +03:00
Pavel V. Talanov
7273ef2754
Fix test data
2016-07-28 18:01:00 +03:00
Pavel V. Talanov
ae0d450acf
Light class test for classes with dollars in name
2016-07-28 18:00:58 +03:00
Pavel V. Talanov
e51957a431
PsiChecker test for classes with dollars in name
2016-07-28 18:00:57 +03:00
Pavel V. Talanov
5a1a1fc03a
Drop KtLightClass#getFqName() and some usages of classFqName in KtLightClassForDecompiledDeclaration
2016-07-28 18:00:53 +03:00