Denis Zharkov
4bea054e4b
Optimize TowerResolver.run implementation
...
- run `processor` at each level instead of list construction
- make it as lazy as possible
Speed up analysis time nearly for 2-5%
2016-03-16 19:27:28 +03:00
Nikolay Krasko
ee50aec734
Don't add a blank line between one line class and object (KT-10965)
2016-03-16 18:41:28 +03:00
Alexey Tsvetkov
61090d7027
Refactoring: optimize createDefaultSourceDirectorySet
2016-03-16 16:43:25 +03:00
Alexey Tsvetkov
d1abc87857
Fix NoSuchMethodError with Gradle 2.12
...
#KT-11351 fixed
2016-03-16 16:43:24 +03:00
Alexey Tsvetkov
d6c2f77125
Fix Process.waitFor freeze on windows when gradle daemon is stopped during tests
2016-03-16 16:43:24 +03:00
Alexander Udalov
b2cffeeb24
Fix 'IDE' scope file pattern by including 'src' recursively
...
See b328f37
2016-03-16 16:10:26 +03:00
NitroG42
c66f4450d8
Add new expressions to template
...
Added two missing expressions for live-templates, the className(), and
the functionName()
2016-03-16 13:40:33 +01:00
Zalim Bashorov
f00615c00b
Minor: source sources of SourceToOutputMap when dump it to make IC tests more stable
2016-03-16 14:42:13 +03:00
Kirill Rakhman
48310d66da
Implement quick fix for converting primitive types
...
#KT-10476 Fixed
2016-03-16 10:58:29 +01:00
Alexander Udalov
b328f37495
Add all IDE modules to scope 'IDE', exclude tests
...
Exclude test roots (add only src/* and testData/*) to prevent clash with the
built-in "Tests" scope
2016-03-16 12:52:20 +03:00
Nikolay Krasko
94e8ba7c4b
"Code formatter doesn't remove spaces in single line properties" fixed (KT-11076)
...
#KT-11076 Fixed
2016-03-16 12:38:26 +03:00
Nikolay Krasko
2db888a646
Accurate work with adding/removing context of tests.
...
Need this because of KEEP_FIRST_COLUMN_COMMENT setting. Comments accidentally left on first
collumn cause the bad formatting.
#KT-4175 Fixed
2016-03-16 12:38:24 +03:00
Nikolay Krasko
8ad0c1ac01
Force new line if the whitespace between comments doesn't have a line break
...
Tweeking KEEP_FIRST_COLUMN_COMMENT setting and one-line comments generated on the same line.
#KT-4175 In Progress
2016-03-16 12:38:23 +03:00
Nikolay Krasko
85bc32a884
Adjust move code tests for KEEP_FIRST_COLUMN_COMMENT option
...
#KT-4175 In Progress
2016-03-16 12:38:21 +03:00
Nikolay Krasko
085deec717
Make J2K pay more attention to original formatting of comments. Better support for KEEP_FIRST_COLUMN_COMMENT
...
#KT-4175 In Progress
2016-03-16 12:38:20 +03:00
Nikolay Krasko
a9f11d2c64
Always add new line space with space before to deal with KEEP_FIRST_COLUMN_COMMENT option
...
InvertIfConditionIntention, RemoveBracesIntention tests are affected
#KT-4175 In Progress
2016-03-16 12:38:19 +03:00
Nikolay Krasko
6193987d0d
Reformat code should not align comments (KT-4175)
...
#KT-4175 In Progress
2016-03-16 12:38:17 +03:00
Natalia Ukhorskaya
334c6ba71a
Refactoring: rename kotlin-android-plugin to idea-android
2016-03-15 20:26:14 +03:00
Natalia Ukhorskaya
d2de74226e
Refactoring: rearrange dependencies in android modules
2016-03-15 20:25:54 +03:00
Natalia Ukhorskaya
ec9a6aacd5
Refactoring: move android-extensions-* module under separate module group
2016-03-15 20:25:52 +03:00
Natalia Ukhorskaya
78d4860215
Refactoring: rename android-jps-plugin to android-extensions-jps
2016-03-15 20:25:50 +03:00
Natalia Ukhorskaya
bf4c92d903
Refactoring: rename android-idea-plugin to android-extensions-idea
2016-03-15 20:25:48 +03:00
Natalia Ukhorskaya
7e6fa8ef17
Refactoring: rename android-compiler-plugin to android-extensions-compiler
2016-03-15 20:25:45 +03:00
Natalia Ukhorskaya
93161be199
Configure Kotlin: restore all changed files in undo action
2016-03-15 20:25:42 +03:00
Natalia Ukhorskaya
e31202ff7c
Show only changed files in notification "Kotlin not configured"
2016-03-15 20:25:36 +03:00
Natalia Ukhorskaya
7c3dd3e139
Minor: fix warnings
2016-03-15 20:21:21 +03:00
Natalia Ukhorskaya
6b48eae03e
Configure Kotlin for Android: add kotlin plugin to project build.gradle file.
...
Do not add mavenCentral dependency if jcenter is present
2016-03-15 20:20:24 +03:00
Natalia Ukhorskaya
e611154580
Minor: fix testData after e2d2d696c0d8b24ebe310fd880a912d6eb428872s
2016-03-15 14:53:03 +03:00
Ilya Gorbunov
02bb7f2f0d
Remove the compiler option "Xmultifile-facades-open"
2016-03-15 14:10:33 +03:00
Natalia Ukhorskaya
e2d2d696c0
Add function name to fake local variable for inline argument
2016-03-15 13:25:49 +03:00
Mikhail Glukhikh
a830d80dac
Values equality no more provides guarantee for their types equality (for open types or types with overridden equals) #KT-11280 Fixed
2016-03-15 11:01:39 +03:00
Michael Bogdanov
3eb6749377
Call done on when mapping transformation end
2016-03-15 10:04:28 +03:00
Alexander Udalov
4f77b02a58
Rename 'ins' -> 'Ins' in BuiltinsPackageFragment and related classes
2016-03-14 20:41:46 +03:00
Alexander Udalov
777ef32d65
Move AnnotationsImpl to frontend, delete unused DefaultAnnotationArgumentVisitor
2016-03-14 20:05:19 +03:00
Alexander Udalov
11409ec6cf
Move some function type utilities from descriptors to frontend
2016-03-14 19:45:09 +03:00
Alexander Udalov
63eb6712eb
Rename getParameterTypeProjectionsFromFunctionType -> getValueParameterTypesFromFunctionType
...
Also add getValueParametersCountFromFunctionType which doesn't create a new
list every time but only returns the number of value parameters
2016-03-14 19:45:08 +03:00
Alexander Udalov
5b7115dc38
Minor, drop deprecated KotlinBuiltIns.getExtensionFunction
2016-03-14 19:45:08 +03:00
Alexander Udalov
516484c905
Use DFS in isFunctionTypeOrSubtype
...
To prevent exponential working time on weird hierarchies
2016-03-14 19:24:18 +03:00
Alexander Udalov
117d0bcf03
Fix multiple exceptions related to subtypes of function types
...
The main change is in FunctionsTypingVisitor#visitLambdaExpression, where we
incorrectly allowed subtypes of function types to be expected type during
resolution of lambdas
Also see EA-70485
#KT-9820 Fixed
2016-03-14 19:24:17 +03:00
Alexander Udalov
33ff1e1e29
Use correct function to check for function type in InlineParameterChecker
...
There's no use of noinline/crossinline modifiers on parameters of _subtypes_ of
function types
#KT-11411 Fixed
2016-03-14 19:24:08 +03:00
Alexander Udalov
c18fab82e5
Simplify and rename function type utilities
...
- isFunctionType -> change the only usage in TracingStrategyForInvoke to check
for exact function type
- isExtensionFunctionType -> change all usages to check for exact extension
function type because extension function types are uninheritable in Kotlin
- isExactFunctionType -> isNonExtensionFunctionType
- isExactExtensionFunctionType -> isExtensionFunctionType
- isExactFunctionOrExtensionFunctionType -> isFunctionType
- isFunctionOrExtensionFunctionType -> isFunctionTypeOrSubtype
2016-03-14 19:24:07 +03:00
Alexander Udalov
e308f2acdb
Minor, fix warnings and remove weird comments in KotlinBuiltIns
2016-03-14 19:24:07 +03:00
Alexander Udalov
2ce661af98
Rename KotlinBuiltIns.getFunctionType -> createFunctionType, move to functionTypes.kt
2016-03-14 19:24:06 +03:00
Alexander Udalov
fd344561fc
Move static function type utilities from KotlinBuiltIns to functionTypes.kt
2016-03-14 19:24:05 +03:00
Mikhail Glukhikh
569a5888ff
do...while (true) is now considered infinite loop in CFA #KT-3896 Fixed
...
Also #KT-3883 Fixed
Also #KT-4986 Fixed
2016-03-14 16:13:14 +03:00
Mikhail Glukhikh
4cf3ec3df2
Minor: ControlFlowInformationProvider cleanup
2016-03-14 16:13:05 +03:00
Mikhail Glukhikh
7232c5ccc1
Minor: FILE directives fixed in two tests
2016-03-14 15:49:50 +03:00
Michael Bogdanov
92f1a20d5f
New name generation for transformed when classes
2016-03-14 12:22:06 +03:00
Michael Bogdanov
a72636afb8
Code clean
2016-03-14 11:26:51 +03:00
Michael Bogdanov
bec6126b06
Support when mapping transformation on inlining
2016-03-14 11:24:39 +03:00