Compare commits

..

4685 Commits

Author SHA1 Message Date
Alexey Tsvetkov
4e10524394 JS: do not generate break for top level return during inline 2015-04-23 20:47:11 +03:00
Alexey Tsvetkov
e5cff6a487 Minor in JS: store js test directives in a list 2015-04-23 20:29:22 +03:00
Alexey Tsvetkov
1ae3ca2734 Minor in JS: simplify count vars directive 2015-04-23 20:25:45 +03:00
Alexey Tsvetkov
1e3ee9ffe2 JS: do not alias 'this' literal in a receiver position 2015-04-23 19:34:08 +03:00
Alexey Tsvetkov
f53c811a38 JS: do not create variable for result, if inline call is only return subexpression 2015-04-23 19:34:08 +03:00
Alexey Tsvetkov
339c28ae9e JS: do not create variable for result, if inline function has one top level return 2015-04-23 19:34:08 +03:00
Alexey Tsvetkov
c86c19efa6 JS: do not create var for result if statement is 'someVar = inlineCall()' 2015-04-22 19:22:20 +03:00
Alexey Tsvetkov
aebaf317d3 Minor in JS: moved test for additional vars during inline to separate directory 2015-04-22 19:17:04 +03:00
Alexey Tsvetkov
3c51a363c4 JS: converted FunctionInlineMutator to Kotlin 2015-04-21 18:34:16 +03:00
Alexey Tsvetkov
ed3852dc7f JS: changed file extension FunctionInlineMutator.kt->.java 2015-04-21 18:34:09 +03:00
Alexey Sedunov
878095da0c Control-Flow: Assign pseudo-values to local functions (except those
declared directly in the block)
2015-04-21 18:01:36 +03:00
Alexey Sedunov
ce4750eda3 Control-Flow: Add tests for pseudo-values of labeled expressions 2015-04-21 18:01:35 +03:00
Dmitry Jemerov
59b5b273c3 escape identifiers in generated super method call in Override/Implement
#KT-6669 Fixed
2015-04-21 18:01:35 +03:00
Dmitry Jemerov
3e8f163f1e don't complete KDoc tag names if we have a non-empty prefix which is not a tag name
#KT-7476 Fixed
2015-04-21 15:37:32 +02:00
Dmitry Jemerov
efa41bfb2a support quick doc for completion items
#KT-4346 Fixed
2015-04-21 15:36:38 +02:00
Dmitry Jemerov
eeb2728b7e show "defined in" for declarations in quick doc popup
#KT-7320 Fixed
2015-04-21 15:36:37 +02:00
Dmitry Jemerov
0c6cd3b422 KotlinQuickDocumentationProvider: cleanup after J2K done 2015-04-21 15:36:36 +02:00
Dmitry Jemerov
a13e38578a KotlinQuickDocumentationProvider: cleanup after conversion 2015-04-21 15:36:36 +02:00
Dmitry Jemerov
b1b138b424 KotlinQuickDocumentationProvider: J2K 2015-04-21 15:36:35 +02:00
Dmitry Jemerov
3d21824929 JetQuickDocumentationProvider: rename to .kt 2015-04-21 15:36:35 +02:00
Mikhail Glukhikh
e64dab0ae9 Review fixes after automatic code analysis 2015-04-21 15:29:34 +03:00
Mikhail Glukhikh
27625b04e1 Refactoring of JetTypeInfo / BindingContext. Loop data flow analysis corrected.
Now BindingContext includes expression type info instead of jump out possible, data flow info and expression type.
getType() was added into BindingContext, getType() and recordType() were added into BindingTrace.
JetTypeInfo now includes also jump possible flag and jump point data flow info.
Old TypeInfoWithJumpInfo deleted.
TypeInfoFactory introduced to create JetTypeInfo instances.
A pack of extra tests for break / continue in loops added.
2015-04-21 15:29:07 +03:00
Dmitry Jemerov
14b92404cd add test for private-to-this visibility in traits 2015-04-21 14:13:30 +02:00
Dmitry Jemerov
8d922dda4d private members of traits are not open by default
#KT-4171 Fixed
2015-04-21 14:13:29 +02:00
Denis Zharkov
036f31f36b j2k: Generate class literals in throws 2015-04-21 08:08:32 +03:00
Denis Zharkov
5ce4f4cad1 Temporary comment out throws usage in code
Until new `throws` will be in bootstrap
2015-04-21 08:08:31 +03:00
Denis Zharkov
6ef2340eb5 Migrate type of throws parameter to KClass
Change declaration, testData and codegen parts for `throws`
2015-04-21 08:08:31 +03:00
Denis Zharkov
e1dfdc582d Minor. Drop trivial override 2015-04-21 08:08:31 +03:00
Denis Zharkov
8d7aa3fdcd Drop throws usages with changes in Java code 2015-04-21 08:08:31 +03:00
Denis Zharkov
5b9aff12d0 Drop throws usages that looks redundant
Probably appeared after j2k-conversion
2015-04-21 08:08:31 +03:00
Alexander Udalov
6f8694976d Fix test data 2015-04-20 23:30:05 +03:00
Michael Nedzelsky
d0616ed8bd fix KT-7512 JS: project with external library lead to deadlock and IDEA freeze due to wrong storage manager configured
#KT-7512 Fixed
2015-04-20 21:02:01 +03:00
Alexander Udalov
ba927318d9 Minor, add PackageFragmentProvider.Empty 2015-04-20 19:09:36 +03:00
Alexander Udalov
3d928a0842 Refactor deserialization initialization in built-ins and JS
BuiltinsPackageFragment was only designed to work with a single instance alive.
Because of this, it was creating deserialization subsystem upon initialization.
This was not working perfectly in JS where it was used, because multiple
storage managers, class caches and other components were created for each
package, leading to different concurrency errors and performance hits. Also in
the near future another package fragment will be needed to represent the
built-in package "kotlin.reflect"
2015-04-20 19:09:35 +03:00
Alexander Udalov
19ddb4b510 Minor, remove unused stuff from MutableClassDescriptor 2015-04-20 19:09:35 +03:00
Alexander Udalov
2a3f658ea7 Minor, add missing space to error message 2015-04-20 18:57:31 +03:00
Alexander Udalov
02f05a1d9a Don't use private Sun API in JsContext 2015-04-20 18:57:30 +03:00
Michael Bogdanov
d34f103652 Rollback 'java8-test' module sdk to project one 2015-04-20 16:31:14 +03:00
Michael Bogdanov
f821f5a491 Fix source level 2015-04-20 15:51:41 +03:00
Andrey Breslav
c95eca10ef Avoid wrapping AssertionError over and over again, see KT-7501 2015-04-20 15:48:43 +03:00
Michael Bogdanov
ef17ac6c0f Use jdk8 for java8-test module 2015-04-20 13:36:42 +03:00
Mikhail Glukhikh
853483cf38 DataFlowInfo.getPossibleTypes() with two arguments rolled back 2015-04-20 12:01:46 +03:00
Michael Bogdanov
2f88f830b8 Test for KT-5969: Codegen overrides all java 8 default methods with delegation to unexisting Timpl
#KT-5969 Fixed
2015-04-18 14:45:16 +03:00
Michael Bogdanov
115c4b78c0 Added sam test on java8 interface with default method 2015-04-18 14:45:16 +03:00
Michael Bogdanov
5c18cfebd1 Support several java file compiling 2015-04-18 14:45:15 +03:00
Michael Bogdanov
7e3403f602 Add java8 test module and run configuration with initial test 2015-04-18 14:45:15 +03:00
Denis Zharkov
cc9322fbdd Add quickfix for usages of javaClass<T>() in annotations loaded from Java 2015-04-17 18:52:17 +03:00
Denis Zharkov
7325a459e5 Ignore diagnostic on tests supposed to be dropped soon 2015-04-17 18:52:16 +03:00
Denis Zharkov
f53baebf89 Show warning on usages of javaClass<T>() in annotations loaded from Java 2015-04-17 18:50:37 +03:00
Denis Zharkov
482b4e3688 Minor, split and clean tests
Tests that are using javaClass supposed to be deleted soon
while other ones just check that annotation loaded correctly
and shold use class literals
2015-04-17 17:40:41 +03:00
Alexey Sedunov
7a02bdae23 Extraction Engine: Fix implicit "this" analysis under smart-casts 2015-04-17 16:30:29 +03:00
Alexey Sedunov
bf13f7e637 Introduce Parameter: Do not remove unused parameters if new parameter is extracted with default value 2015-04-17 16:30:28 +03:00
Alexey Sedunov
6e2076d602 Change Signature: Process Kotlin-side calls of Java methods overriding Kotlin declarations 2015-04-17 16:30:27 +03:00
Alexey Sedunov
58bee8c57f Change Signature: Fix element bound to UsageInfo 2015-04-17 16:30:26 +03:00
Alexey Sedunov
8a04a604ce Usages Search: Introduce extension for usages of methods overriding Kotlin functions/properties 2015-04-17 16:30:25 +03:00
Michael Bogdanov
4775858e1c Analyze inline function with reified type parameters in ByteCodeToolWindow when inlinie disabled 2015-04-17 14:24:36 +03:00
Michael Bogdanov
48aef1eb28 Fix for KT-6895: Compile error on Android (EXCEPTION FROM SIMULATION) when declaring locals in an inline function
#KT-6895 Fixed
2015-04-17 14:24:35 +03:00
Michael Bogdanov
0080ebd386 Fix for KT-7273: Bad local variable type when using non-local return
#KT-7273 Fixed
2015-04-17 14:24:34 +03:00
Michael Bogdanov
51d5b52f69 refactorings 2015-04-17 14:24:34 +03:00
Michael Bogdanov
6465c6b680 Refactoring: extracted split method into intervals 2015-04-17 14:24:33 +03:00
Michael Bogdanov
2f88baf641 Refactoring: added Interval abstraction to represent TryCatchBlock and LocalVar nodes 2015-04-17 14:24:33 +03:00
Alexey Sedunov
45428895ad Change Signature: Always put last lambda argument outside of value argument list 2015-04-17 13:04:57 +03:00
Alexey Sedunov
daebf569ab Extract Function: Allow capturing local function references as lambda parameters 2015-04-17 13:04:56 +03:00
Mikhail Glukhikh
86bb0d5bc5 Build fix. The second version of DataFlowInfo.getPossibleTypes returning also the original type added and used. 2015-04-17 11:49:44 +03:00
Valentin Kipyatkov
6421f48c07 Further code improvements during review 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
1aa123dadb InsertExplicitTypeArguments - minor code improvements 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
2466aa64fe InsertCurlyBracesToTemplateIntention - no i18n 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
7ccb20977d ConvertToStringTemplateIntention - minor code improvements 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
a8d629f609 ConvertToForEachLoopIntention - renamed 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
a155b0c860 ConvertToForEachLoopIntention - smaller range + refactored 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
fc8b046694 ConvertToForEachFunctionCallIntention - smaller availability range + code refactoring 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
c2335790b5 ConvertToExpressionBodyIntention - refactoring 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
94480e3d5c Renamed in test data 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
0334ad1152 ConvertToConcatenatedStringIntention - minor code improvements + fixed bug 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
b980d98af6 ConvertToBlockBodyAction - refactoring 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
b201e60081 ConvertReceiverToParameterIntention - no i18n 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
24203a8a31 ConvertPropertyToFunctionIntention - no i18n + a bit better range 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
0698bb3866 ConvertParameterToReceiverIntention - made available on parameter name only + minor 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
960a45e4cc Code simplifications 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
ff44f1fa32 ConvertFunctionToPropertyIntention minor code improvements + to work in the end of name 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
636f80ee48 ConvertAssertToIfWithThrowIntention: smaller availability range + minor code refactorings 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
1268684ced Smaller availability range for RemoveBracesIntention + refactored it and AddBracesIntention 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
dc6c6f13d5 OperatorToFunctionIntention and SwapBinaryExpressionIntention: more narrow availability range + no i18n 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
00a4beae1d Refactoring of JetSelfTargetingInspection 2015-04-16 22:00:51 +03:00
Valentin Kipyatkov
894bf000e1 JetSelfTargetingInspection - deprecated i18n usage 2015-04-16 22:00:51 +03:00
Alexey Tsvetkov
8c01298930 JS: generated tests 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
ff5090136c JS: do not extract expressions, when inline call can be expression 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
bf5300a849 JS: fixed tryCatchFinally test because of KT-7328 bug 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
78a6b95f5a JS: added test case, where inline call in "for" is used 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
27a1861263 JS: lambda constructor cannot have sideEffect 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
97a1a13235 JS: inline componentN functions
#KT-7294 fixed
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
a9d38e8d22 JS: decomposition of vars 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
e80059e4a2 JS: decomposition of "while" and "do while" 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
71ea487828 JS: decomposition of "if" 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
c0111d6e33 JS: decomposition of binary operator
#KT-6437 fixed
 #KT-7359 fixed
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
fd844ad6e3 JS: decomposition of ternary operator 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
3782b9d382 JS: decomposition of array access 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
8b68f6d9ab JS: decomposition of array literal 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
92942fd1c5 JS: decomposition of invocation/"new" 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
b7e26c3bf7 JS: extract expressions preceding inline call 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
f900cb36c5 JS: added inline evaluation order tests generation 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
616872558c Minor in JS: made JsNew qualifier mutable 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
5eadac9750 Minor in JS: use acceptStatement where appropriate 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
fafd4ef805 Minor in JS: deleted unused function 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
a356847006 JS: added @NotNull annotation to JsVisitorWithContext 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
be5e73a5bc JS: make qualifier mutable 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
6ff4785cb0 JS: turn off inline call extraction at translation 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
24aa19bd49 JS: fixed nullability issues after conversion 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
1f705eb77a JS: converted JsVisitor to Kotlin 2015-04-16 21:17:10 +03:00
Alexey Tsvetkov
cd92e2de73 JS: changed file extension JsVisitor(.java->.kt) 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
05c44db80f JS: inline all calls in a statement in one pass 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
c8453ec0d9 JS: removed unused JsContext methods 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
add0aca746 JS: removed StatementContext, InsertionPoint 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
e94c79f838 JS: added type parameter to JsContext 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
efba2a2372 JS: make JsEmpty singleton 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
dd13e91883 JS: converted JsEmpty to kotlin 2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
ba1eb5f848 JS: changed extension JsEmpty.java->.kt 2015-04-16 21:17:09 +03:00
Svetlana Isakova
d40fd440b0 KT-7433 Type inference pushes Unit inside generic function with lower bound constraint
#KT-7433 Fixed
 #KT-7351 Fixed
2015-04-16 21:02:42 +03:00
Mikhail Glukhikh
a37ae6ba6d Test fixed accordingly with KT-3175 2015-04-16 20:48:48 +03:00
Mikhail Glukhikh
109e0abb6d Review fixes for mutable variable smart casting (mostly refactoring).
DataFlowValue.isPredictable() introduced instead of isStableIdentifier().
Parenthesized assignments are treated correctly.
2015-04-16 20:11:03 +03:00
Mikhail Glukhikh
e97e792674 Review fixes for smart casts in / out loops.
LoopTypeInfo became TypeInfoWithJumpInfo rewritten in Kotlin.
Fixed a bug with break inside Elvis inside a loop, a pack of related tests added.
isTrueConstant moved to JetPsiUtil.
2015-04-16 20:11:01 +03:00
Mikhail Glukhikh
d5aed62410 Smart casts for local variables not captured in a closure and not changed in a loop, see #KT-3175.
isLocalVariable added. Assignment / initialization analysis.
Control whether a variable is changed in a loop at the beginning and at the end of the loop.
Control whether a variable is captured in a closure. #KT-3175  Fixed. #KT-2266  Fixed.
Tests for variable null safety and for variables is/as operations.
Loop / closure / variable property tests are included.
Old tests changed in accordance with KT-3175. In particular, all three of testSmartcastImpossible were fixed.
2015-04-16 20:10:58 +03:00
Mikhail Glukhikh
e4b1046a54 Minor bug fix: necessary !! added 2015-04-16 20:10:56 +03:00
Pavel V. Talanov
a21abeba33 Fix kotlin-gradle-plugin to correctly process java source files
Do not remove outdirectory from cp in maven: this is needed for gradle-plugin build to see files compiled by gmaven
    this may cause problems with running mvn install without clean for kotlin
Remove special magic with groovy-output in gradle-plugin pom.xml
2015-04-16 16:40:55 +03:00
Pavel V. Talanov
3329136c9c Fix test data for quickfix tests
Depending on Module and ModuleBuilder from runtime
2015-04-16 16:40:44 +03:00
Pavel V. Talanov
818a6b5c2e Fix various tests and test data
Since we now distinguish between binaries and java source roots
2015-04-16 16:40:37 +03:00
Pavel V. Talanov
d76f293dc9 Speed up finding kotlin binaries and java files in CLI
Change VirtualFileFinder api to accept ClassId and adjust usages
Introduce KotlinCoreProjectEnvironment to create special KotlinCliJavaFileManager which shares cache with CliVirtualFileFinder
Truly distinguish between java source roots and binary roots: don't search for source files in classpath and vica versa
Implement JvmDependenciesIndex
2015-04-16 16:40:28 +03:00
Pavel V. Talanov
94cc847c48 Drop module "ktm" scripts and support java source roots in "xml" modules
Drop kotlin.modules package from runtime
Move adapted classes into compiler
Unsupport files with "ktm" extension
Delete code for loading module scripts
Drop tests for module scripts
Separate section for java source roots in xml script generator/parser
2015-04-16 16:40:19 +03:00
Pavel V. Talanov
09947d8f58 Move dangerous ClassId.fromString() to test 2015-04-16 16:40:12 +03:00
Natalia Ukhorskaya
336886f115 Fix KotlinBytecodeToolWindow: show bytecode correctly when there is inline function from another module
#KT-7409 Fixed
2015-04-16 14:55:29 +03:00
Natalia Ukhorskaya
06eb749f5a Android tests: copy kotlin-reflect.jar to test android application 2015-04-16 14:48:54 +03:00
Alexander Udalov
ccae0311c3 Merge InlineDescriptorUtils to InlineUtil 2015-04-16 14:35:07 +03:00
Alexander Udalov
16e6bc347f Move inline-related stuff from 'descriptors' to 'frontend'
Move to package org.jetbrains.kotlin.resolve.inline
2015-04-16 14:35:06 +03:00
Alexander Udalov
d93a7a9547 Minor, simplify some checks in InlineUtil 2015-04-16 14:35:05 +03:00
Alexander Udalov
7cbbc5f98d Minor, rename InlineUtil.getInlineType -> getInlineStrategy 2015-04-16 13:55:07 +03:00
Alexander Udalov
4a2fac6f40 Add utility InlineUtil.isInline instead of interface method in SimpleFunctionDescriptor
Also fix some warnings and reformat along the way
2015-04-16 13:55:07 +03:00
Alexander Udalov
9ed8ad8dd4 Replace eager assert with lazy in PseudocodeVariableDataCollector
For some reason some IDE tests would fail after the simple change. Add explicit
toString() call on the descriptor, to be investigated later
2015-04-16 13:55:06 +03:00
Alexander Udalov
1b0a78077f Use assert with lazy message in project instead of eager one 2015-04-16 13:55:06 +03:00
Alexander Udalov
44e35cad29 Make 'sure' an inline function with a lazy parameter
Also replace some other non-lazy stdlib function usages with the new lazy
'sure'
2015-04-16 13:55:06 +03:00
Denis Zharkov
b2a2e4ae92 Add bytecodeText test for annotation with default value
It checks that no value is emitted if argument is not specified
2015-04-16 10:40:20 +03:00
Denis Zharkov
97e4a899cf Add specific warning when KClass literal expected 2015-04-16 10:40:20 +03:00
Denis Zharkov
98ffa3b475 Render Class-constant as javaClass<T>() 2015-04-16 10:40:20 +03:00
Denis Zharkov
2a03994ecb JVM: Write signature for annotation parameter 2015-04-16 10:40:20 +03:00
Denis Zharkov
294eb1dceb Load annotation parameter's type for ctr as contravariant
See comment in code
2015-04-16 10:40:20 +03:00
Denis Zharkov
8f0e290dec Create additional constructor for java annotation with Class-parameter
One of them with KClass<*> parameters and other with java.lang.Class<*>.

It's needed just for backward compatibility, and second one is deprecared.
2015-04-16 10:40:20 +03:00
Denis Zharkov
f5111180c3 Load Class<?> as KClass<*> for Java annotations parameters 2015-04-16 10:40:20 +03:00
Denis Zharkov
0abc63261d Inject reflectionTypes into LazyJavaResolverContext 2015-04-16 10:40:20 +03:00
Denis Zharkov
07a4e8a405 Minor, move module property to LazyJavaResolverContext
All usages of LazyJavaPackageFragmentProvider.module
got it through LazyJavaResolverContext
2015-04-16 10:40:19 +03:00
Denis Zharkov
f942f6ac8e Move ReflectionTypes to builtins 2015-04-16 10:40:19 +03:00
Denis Zharkov
cc17f7d82d JVM: Support using KClass as annotation parameter type 2015-04-16 10:40:19 +03:00
Denis Zharkov
82674e56b9 Frontend: Allow using KClass as annotation parameter type 2015-04-16 10:40:19 +03:00
Nikolay Krasko
c155b1a455 Set permissions for kotlin compiler on linux and mac even on teamcity 2015-04-16 02:27:50 +03:00
Nikolay Krasko
e9fcdec3b0 Always download bootstrap compiler to "dependencies\bootstrap-compiler" 2015-04-16 00:25:04 +03:00
Nikolay Krasko
1c4335ec25 Test background threads are stopped 2015-04-16 00:25:03 +03:00
Nikolay Krasko
e304ee0a29 Print project name and command line for debug 2015-04-16 00:25:03 +03:00
Nikolay Krasko
8ed54a6dba Additional stop for JobScheduler
Background threads prevents class loader collect

 #KT-7172 In Progress
2015-04-16 00:25:02 +03:00
Nikolay Krasko
ea47e29757 Update ZipFileCache and LowMemoryWatcher from new Idea 2015-04-16 00:25:01 +03:00
Alexey Sedunov
d036edb5c6 Extraction Engine: Respect smart casts applied to "this" references
#KT-7447
2015-04-15 23:20:54 +03:00
Alexey Sedunov
aa0930ea60 Change Signature: Skip secondary constructor calls when looking for primary constructor usages
#KT-7445 Fixed
2015-04-15 23:20:52 +03:00
Alexey Sedunov
02b0c4c7eb Name Suggester: Do not strip "get"/"is"/"set" prefixes if remaining sequence is not upper-cased
#KT-7399 Fixed
2015-04-15 23:20:51 +03:00
Valentin Kipyatkov
3842d71ee3 simplify code, fix test, use CompletionUtil.findIdentifierPrefix() 2015-04-15 19:59:59 +02:00
Valentin Kipyatkov
be92ad2f2d # This is a combination of 2 commits.
# The first commit's message is:

use more simple API

# This is the 2nd commit message:

More simple code
2015-04-15 19:53:16 +02:00
Dmitry Jemerov
7f5b1d489e KDoc typed handler: autoinsert pair brackets and parentheses
#KT-7347 fixed
2015-04-15 19:53:14 +02:00
Dmitry Jemerov
5bbbadeb37 add a token for inline Markdown links; add test for identifier links with labels 2015-04-15 19:48:46 +02:00
Dmitry Jemerov
2aba59cbec KDocCompletionContributor code review: use resolution facade instead of KotlinCodeAnalyzer; inherit CompletionSessionBase 2015-04-15 19:48:45 +02:00
Evgeny Gerashchenko
4f412f77d1 Updated some test data so it won't be affected by automatic renamers. 2015-04-15 20:13:51 +03:00
Evgeny Gerashchenko
260b8ae431 Automatic renaming subclasses.
#KT-4642 in progress
2015-04-15 19:15:18 +03:00
Evgeny Gerashchenko
e6e5e28e1d Automatic renaming properties, variables, parameters when renaming class.
#KT-4642 in progress
2015-04-15 19:14:20 +03:00
Ilya Gorbunov
a20f1bdb6e Change the expected diagnostic output after reduce signature has been changed. 2015-04-15 17:34:09 +03:00
Ilya Gorbunov
043b27bfe5 Make more generic signature for reduce and reduceRight methods.
Fixes #KT-2287
2015-04-15 17:34:08 +03:00
Michael Nedzelsky
08e92ac746 KT-7357 JS: extension functions from external KJS library couldn't be called in some cases
#KT-7357 Fixed
#KT-7382 Fixed
2015-04-15 17:00:08 +03:00
Michael Nedzelsky
6842c98285 JS: tests for KT-7357: extension functions from external KJS library couldn't be called in some cases 2015-04-15 17:00:06 +03:00
Dmitry Jemerov
66aa15f470 pull up "New Kotlin File" action next to "New Java class" 2015-04-15 15:29:26 +02:00
Alexander Udalov
4ad603ba12 Fix AssertionError in JsLibraryStdDetectionUtil
#KT-7462 Fixed
2015-04-15 15:23:08 +03:00
Alexander Udalov
aab5d1c3e3 Minor, update built-ins serializer message
.kotlin_class_names was deleted and .kotlin_name_table was renamed
2015-04-15 01:16:07 +03:00
Alexander Udalov
1b7ba320c7 Fix handling of paths with spaces in kotlinc script 2015-04-15 01:16:07 +03:00
Onorio Catenacci
84acaa9bf6 Changed the path for calling kotlinc-jvm.bat to use short (8.3) names so that this will work correctly with paths with spaces in them 2015-04-15 01:16:06 +03:00
Mikhail Glukhikh
1544755838 Test refactoring 2015-04-14 19:11:26 +03:00
Mikhail Glukhikh
8184bccda1 Extended loop data flow analysis was implemented. #KT-6283 Fixed. #KT-6284 Fixed.
A local descendant of JetTypeInfo added to save separately current data flow info and jump point data flow info together with jump opportunity.
Now data flow analysis know about loop bodies that must be executed at least once (do...while, while(true) until the first break/continue).
A set of tests for smart casts in and after loops.
Existing DoWhile and WhileTrue resolve tests corrected in accordance.
2015-04-14 19:11:22 +03:00
Valentin Kipyatkov
bb808b5620 Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00
Valentin Kipyatkov
63825c45dd First step: moved classes of test framework to another package 2015-04-14 18:53:00 +03:00
Ilya Gorbunov
409209ba3c Don't count on split removing trailing empty entries. 2015-04-14 15:45:04 +03:00
Evgeny Gerashchenko
7b77ce58a5 Added assertion. There should be either space symbol after prefix (e.g., //ABSENT: A) or no symbols at all (e.g. //RUNTIME). 2015-04-14 15:01:29 +03:00
Alexander Udalov
91bb789758 Fix builtins-serializer source root in compiler sources jar 2015-04-14 12:56:50 +03:00
Alexander Udalov
5d5d1b759d Minor, simplify jar inclusion in build.xml 2015-04-14 12:56:01 +03:00
Alexander Udalov
3a4659c074 Include resources/kotlinManifest.properties to kotlin-for-upsource.jar 2015-04-14 12:52:33 +03:00
Natalia Ukhorskaya
8bd7fe1464 Gradle: add kotlin outputDir to java classPath if kotlin files are up-to-date 2015-04-14 10:41:42 +03:00
Natalia Ukhorskaya
5e6250511b Gradle: support for 1.2.0-beta2 com.android.application plugin 2015-04-14 10:41:41 +03:00
Natalia Ukhorskaya
34205c3ff0 NPE in Surround with Action on empty line 2015-04-14 10:41:40 +03:00
Valentin Kipyatkov
38c154ace4 Fixed exception in conversion from Java 2015-04-13 18:14:57 +03:00
Dmitry Jemerov
9434e4bee9 mark wrapper methods that pass default values of parameters as synthetic
#KT-7314 Fixed
2015-04-13 15:26:20 +02:00
Dmitry Jemerov
900a16a315 deprecate required classes for traits 2015-04-13 16:22:22 +03:00
Michael Bogdanov
7b0f6018dc Fix nameless function inlining 2015-04-13 16:11:21 +03:00
Michael Bogdanov
7025a4f933 Test framewrk update: check lambda inlining 2015-04-13 16:11:21 +03:00
Michael Bogdanov
27c40edeb4 InlineTestUtil convertion 2015-04-13 16:11:21 +03:00
Michael Bogdanov
9c74b22262 Rename InlineTestUtil.java to *.kt 2015-04-13 16:11:21 +03:00
Michael Bogdanov
e200b97ca4 Inline callable references
#KT-6900 Fixed
2015-04-13 16:11:21 +03:00
Dmitry Jemerov
991db29731 drop covariant specialisation for supertypes 2015-04-13 15:28:50 +03:00
Evgeny Gerashchenko
9de5acf9a6 Removed indeterministic test. We have analogous test for diagnostics, so it is not a big problem. 2015-04-13 15:21:40 +03:00
Evgeny Gerashchenko
993ba6161f Fixed compilation. 2015-04-13 15:21:23 +03:00
Evgeny Gerashchenko
508c7a58b6 KT-7377 Throwable: Empty PSI elements should not be passed to createDescriptor from UnusedReceiverParameterInspection
#KT-7377 fixed
2015-04-13 15:04:00 +03:00
Valentin Kipyatkov
e3bdc18aea KT-7344 Completion of second type argument in class instantiation does not work
#KT-7344 Fixed
2015-04-13 14:30:03 +03:00
Valentin Kipyatkov
3fad68ad4c Completion: no "else" in first when entry 2015-04-13 14:30:03 +03:00
Valentin Kipyatkov
3faf6cc3e8 Correct value passed as containingDeclarationOrModule to SmartCastUtils 2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
33f119a65a Renamed "containingDeclaration" parameters to "containingDeclarationOrModule" to make it more clear that we can pass ModuleDescriptor instead of precise containing declaration 2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
f73a41aa15 Completion should not generate deprecated lambda syntax 2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
723bf0ecf9 Minor 2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
5954307147 Fixed KT-7308 Exception on completion inside anonymous object
#KT-7308 Fixed
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
8b5be4febc Minor 2015-04-13 13:41:44 +03:00
Valentin Kipyatkov
f02e2b3ed6 Corrected generated tests after rebase 2015-04-13 13:41:44 +03:00
Valentin Kipyatkov
03270af430 Added scrollbar 2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
066a7c3002 Code style setting for packages to always use star imports and UI for it 2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
1a54886720 Basic UI for import code style settings 2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
a8d737bf87 One more test for import nested classes setting 2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
04b2bdcc79 Added test for "import packages" code style setting 2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
0f9858bb75 Code style setting to import nested classes 2015-04-13 13:41:43 +03:00
Nikolay Krasko
be896b7d8e Fix test data: non-inherited elements are shown in file structure popup 2015-04-13 13:03:02 +03:00
Nikolay Krasko
b359cd2af0 Update to idea 141.588.1 2015-04-13 13:03:00 +03:00
Valentin Kipyatkov
965f3da2b1 Fixed bug with bad conversion on paste when top-level java class copied 2015-04-13 11:05:31 +03:00
Alexey Sedunov
aff17a9fa1 Introduce Parameter: Implement dialog advertisement and switch 2015-04-10 21:57:10 +03:00
Alexey Sedunov
f038a2d1d8 In-place Introduce: Track active instance of KotlinInplaceVariableIntroducer 2015-04-10 21:57:09 +03:00
Alexey Sedunov
68a5b05af9 Introduce Parameter: Implement dialog UI 2015-04-10 21:57:08 +03:00
Alexey Sedunov
da14222c4a Introduce Parameter: Do not apply to expressions of type Unit or Nothing 2015-04-10 21:57:07 +03:00
Alexey Sedunov
54392e7064 Minor: Fix refactoring name 2015-04-10 21:57:06 +03:00
Alexander Udalov
92fa107471 Delete three diagnostic tests which rendered parts of JRE
- PackageLocalClassNotImportedWithDefaultImport.kt goes to codegen multi-file
  tests. File in java.lang moved to kotlin.jvm, which seems irrelevant to the
  test, because java.lang is prohibited by the VM
- MergePackagesWithJava.kt (KT-689, Java and Kotlin in the same package) and
  kt955.kt (Unable to import from default package) are considered too obsolete
  to even test and are thus deleted

Also check that there's no more than 1000 lines in the .txt file in diagnostic
tests.
2015-04-10 20:35:18 +03:00
Alexander Udalov
94df191f86 Regenerate tests 2015-04-10 20:26:34 +03:00
Alexander Udalov
69e7a25b08 Drop InnerTestClasses annotation, use Java reflection 2015-04-10 20:26:33 +03:00
Alexander Udalov
5c06204658 Move ExpectLoadError from tests to testData
To avoid loading all sources under "compiler/tests" in each test. Saves about
20-25% when running LoadJavaTestGenerated
2015-04-10 20:26:33 +03:00
Ilya Gorbunov
845d755fdd Make Char-related constants to be properties in Char companion object. 2015-04-10 15:22:02 +03:00
Alexander Udalov
646e81bc61 Regenerate tests 2015-04-10 12:34:31 +03:00
Alexander Udalov
b2e0eda953 Include protobuf to kotlin-for-upsource.jar 2015-04-10 12:32:46 +03:00
Michael Bogdanov
67c2f7105b Fix for KT-6863: Internal compiler error folding functions
#KT-6863 Fixed
2015-04-10 08:59:27 +03:00
Michael Bogdanov
a24d845bd0 Test for KT-7009: VerifyError: Bad type on operand stack in daload
#KT-7009 Obsolete
2015-04-10 08:59:27 +03:00
Michael Bogdanov
824d1ac556 Fix for KT-7306: Implicit array conversions cause ClassCastException at runtime
#KT-7306 Fixed
2015-04-10 08:59:26 +03:00
Alexander Udalov
405038b2d8 Change sources of kotlin-runtime project library
Use sources from the project instead of ones in kotlin-runtime-sources.jar.

This is not very accurate, but fixes the problem with debugging anything from
'core' in the project (sources from the project were clashing with the sources
from the library)
2015-04-09 19:46:49 +03:00
Alexander Udalov
6182b3ff5c Prohibit Array::class, require type arguments for reified parameters 2015-04-09 19:46:47 +03:00
Valentin Kipyatkov
a0d2b00287 Code corrections on code review 2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
498f24b98b KT-7291 Copy/paste of java declaration with preceding comment omitted does not convert it to Kotlin propertly
#KT-7291 Fixed
2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
bfadd489a3 Imports on paste tests: generate result if does not exist and use default target file text 2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
c5a785577b Imports on paste: code refactoring 2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
4a3592be50 Imports on paste: don't try to import symbols not visible from current module 2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
ea7732883e Tests: use errors dump instead of ALLOW_UNRESOLVED_REFERENCE 2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
84a6f72ab3 Imports on paste: fixed overloaded extensions import 2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
8d31a5c3a6 Imports on paste: do not suggest to import already imported extensions 2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
0abc912208 Test to generate expected output if absent 2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
93f1210f25 Imports on paste: added checking of symbols to import into test + fixed bug on copy/paste import/package directive 2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
11380358ee Converted to Kotlin 2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
fe14107848 More simple code doing the same 2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
f6e363abb8 J2K: replace overloads with optional parameters not only for constructors but for methods too 2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
ff4ff78307 Use of Kotlin wrapper methods instead of Application.runReadAction/runWriteAction and CommandProcessor.executeCommand 2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
00660bc59e No explicit runReadAction needed 2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
2440371cd9 Refactored code 2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
3efc6cd383 J2K: default parameter values generated for secondary constructors too 2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
9b80d49bab Generated constructors with default parameter values are marked with kotlin.jvm.overloads annotation 2015-04-09 19:09:06 +03:00
Valentin Kipyatkov
1afbb961ee KT-7135 Java to Kotlin converter should update usages in Java and Koltin code in the rest of the project
#KT-7135 Fixed
2015-04-09 19:09:06 +03:00
Andrey Breslav
b810ebbb0e Report exceptions from analyzer in the editor
They are rendered as errors and positioned on those expressions that cause them
2015-04-09 18:15:08 +03:00
Alexey Sedunov
5b3ff187da Create from Usage: Do not search usages of non-local properties 2015-04-09 13:49:25 +03:00
Alexey Sedunov
918eda0c9b Introduce Parameter: Do not suggest containers of object and non-inner classes 2015-04-09 13:49:24 +03:00
Alexey Sedunov
80134b9b2b Introduce Parameter: Support parameters without default values 2015-04-09 13:49:23 +03:00
Alexey Sedunov
13776f5bbd Introduce Parameter: Duplicate search & replace 2015-04-09 13:49:22 +03:00
Alexey Sedunov
3bb86a63cc Introduce Parameter: Remove parameters which become unused after occurrence replacement 2015-04-09 13:49:21 +03:00
Alexey Sedunov
53a6827ad8 Introduce Parameter: Initial support 2015-04-09 13:49:20 +03:00
Alexey Sedunov
06960be3ad Minor: Extract findElementByComment() function 2015-04-09 13:49:18 +03:00
Alexey Sedunov
4af608ef84 Parser: Recovery for parameter with missing name 2015-04-09 13:49:17 +03:00
Alexey Sedunov
7d4d3e537c Minor: Change signature of JetParameterInfo constructor 2015-04-09 13:49:16 +03:00
Alexey Sedunov
95a8db458b Minor: Generify KotlinInplaceVariableIntroducer 2015-04-09 13:49:15 +03:00
Alexey Sedunov
ee8df94f19 Minor: Extract container selection logic 2015-04-09 13:49:14 +03:00
Alexey Sedunov
d3605a5352 Minor: Move getValueParameters() function to jetPsiUtil.kt 2015-04-09 13:49:13 +03:00
Alexey Sedunov
b47c700a27 Introduce Variable: Fix replacement of multiple occurrences when variable name is changed in the template editor
#KT-7244 Fixed
2015-04-09 13:49:12 +03:00
Michael Bogdanov
20653090d3 Test for KT-7338: Incorrect code is emitted for is-checks with array types, resulting in java.lang.VerifyError
#KT-7338 Obsolete
2015-04-09 11:10:33 +03:00
Michael Bogdanov
efd4a3ce84 Print bytecode on test fail 2015-04-09 09:25:26 +03:00
Michael Bogdanov
ce13b3a44a Optimization fix 2015-04-09 09:25:26 +03:00
Michael Bogdanov
99496f8f52 Update some test due smap generation 2015-04-09 09:25:26 +03:00
Michael Bogdanov
c582b1d9ce Generate linenumber if needed after inlining 2015-04-09 09:25:26 +03:00
Michael Bogdanov
8cd496556c Generate local var table 2015-04-09 09:25:26 +03:00
Evgeny Gerashchenko
5c0a81fae1 Minor. Renamed test data. default object -> companion object. 2015-04-08 21:15:28 +03:00
Evgeny Gerashchenko
8ef2718e30 Added assert clarification for EA-66572 2015-04-08 21:15:28 +03:00
Evgeny Gerashchenko
4ba0d2aba5 Updated quasi-indeterministic test data. After introducing new line marker provider, which invokes lazy resolution, diagnostic is reported on different element. 2015-04-08 21:15:28 +03:00
Michael Nedzelsky
c62b1fac69 JS: fix support auto import for class names 2015-04-08 16:50:48 +03:00
Michael Nedzelsky
15ebab4f7e JS: add tests for quickfix: autoimport for Kotlin/Javascript projects 2015-04-08 16:50:45 +03:00
Evgeny Gerashchenko
53ef521a8f Deparenthesizing this expression. 2015-04-08 16:44:45 +03:00
Evgeny Gerashchenko
d7928b7251 Added test cases with labeled diff. 2015-04-08 16:43:34 +03:00
Evgeny Gerashchenko
4c5bfaeb8b Checking for different receiver in implicit calls. They are considered not recursive. 2015-04-08 16:37:41 +03:00
Evgeny Gerashchenko
01b8718ac7 Minor. More proper short-circuit check. 2015-04-08 15:33:49 +03:00
Evgeny Gerashchenko
eeeb741d42 Added test for obsolete bug and removed workaround in code. 2015-04-08 15:14:16 +03:00
Evgeny Gerashchenko
015da2f8ca More proper code to check if lambda is inlined. Parameter of inline function can be annotated with "noInline". 2015-04-08 15:14:15 +03:00
Evgeny Gerashchenko
d24d750d34 Added workaround for bug in IDEA test framework. Without it, tests didn't make much sense. 2015-04-08 15:14:14 +03:00
Evgeny Gerashchenko
33e34c759d KT-2190 Highlight usages invoked on "throw" or "return" should highlight all exit-points of function
#KT-2190 fixed
2015-04-08 15:14:13 +03:00
Evgeny Gerashchenko
86f91ade1a Minor. Fixed syntax error in test data. 2015-04-08 15:14:11 +03:00
Evgeny Gerashchenko
6041d566d9 Line markers for recursive calls. 2015-04-08 15:14:10 +03:00
Evgeny Gerashchenko
06c05193a6 Extracted method. 2015-04-08 14:38:04 +03:00
Evgeny Gerashchenko
85e9f2207e Minor. Moved test data to subdirectory. 2015-04-08 14:38:04 +03:00
Evgeny Gerashchenko
a2bc9cd7de Added optimization for isReferenceTo. It quickly says false for
references from non-source code to anywhere except same file.
2015-04-08 14:38:04 +03:00
Michael Nedzelsky
28f320498c remove AbstractNavigateToLibraryTest 2015-04-08 01:15:24 +03:00
Michael Nedzelsky
c09acf89e5 NavigateToLibrarySourceTestGenerated: add tests for projects with kotlin/jvm and kotlin/js modules 2015-04-08 01:15:21 +03:00
Michael Nedzelsky
054d905374 add NavigateToStdlibSourceTest 2015-04-08 01:15:18 +03:00
Michael Nedzelsky
7b17ae3b8b add testUtils 2015-04-08 01:15:15 +03:00
Michael Nedzelsky
c0e6fa62a0 NavigateToLibrarySourceTest -> NavigateToLibrarySourceTestGenerated 2015-04-08 01:15:13 +03:00
Michael Nedzelsky
039b9a8e16 JetCotoImplementationTest -> KotlinGotoImplementationTestGenerated 2015-04-08 01:15:09 +03:00
Alexander Udalov
4956b24810 Merge two DescriptorRenderer parameters about parameter name rendering
Also disable parameter name rendering completely in
AbstractJvmRuntimeDescriptorLoaderTest because they can't be obtained anyway in
reflection
2015-04-07 20:25:08 +03:00
Alexander Udalov
47e7235e64 Add different tests on class loaders in reflection 2015-04-07 20:25:07 +03:00
Alexander Udalov
87ef4ff7c5 Fix KClassImpl#toString to render Kotlin FQ name, not JVM one 2015-04-07 20:25:06 +03:00
Alexander Udalov
137ee53e85 Reflection test: only skip Java annotation constructors
The order of Kotlin annotation parameters is retained
2015-04-07 20:25:05 +03:00
Alexander Udalov
9c1e7f93d2 Reflection: refactor property construction and fix memory leak
Properties obtained by KClass.properties were having strong references to
descriptors (captured by closures, which are strongly retained by
DescriptorBasedProperty). Support initial value in lazy soft properties
2015-04-07 20:22:52 +03:00
Alexander Udalov
715641fb0d Call getMethod/getDeclaredMethod depending on visibility 2015-04-07 20:20:40 +03:00
Alexander Udalov
0202217135 Fix JVM signatures involving multi-dimensional array types
Apparently ASM's Type#getElementType returns the type of the array even if it's
multi-dimensional, so the loop was incorrect
2015-04-07 20:06:23 +03:00
Alexander Udalov
7e86d87133 Move built-in companion intrinsics to core to reuse in reflection 2015-04-07 20:06:23 +03:00
Denis Zharkov
ce51327509 Refine descriptor renderer test
Now it checks:
- Whether resolveToDescriptor on secondary constructors works well
- If there is explicit primary constructor declaration
  resolveToDescriptor should return it
- Renderer itself works well with constructors
2015-04-07 19:31:31 +03:00
Denis Zharkov
468233b624 Change default visiting behaviour of constructors to proper one
visitJetElement -> visitDeclaration
2015-04-07 19:31:31 +03:00
Denis Zharkov
f85e92a247 j2k: Adjust annotation converter to last changes
Only parameter named `value` can be marked vararg
2015-04-07 19:31:30 +03:00
Denis Zharkov
37d7327482 Implement visitPrimaryConstructor in LazyDeclarationResolver
It's need to prevent exception when trying to analyze each declaration
node within class

 #KT-7279 Fixed
 #KT-7315 Fixed
2015-04-07 19:31:30 +03:00
Denis Zharkov
1324667bc9 Prohibit use of positioned value arguments for java annotation 2015-04-07 19:31:30 +03:00
Denis Zharkov
a29c0ff9a3 Use default value if annotation vararg argument is empty 2015-04-07 19:31:30 +03:00
Denis Zharkov
9b1443954f Refine loading annotation parameters from java
- Parameter named `value` is always first
- Array parameter represented as vararg iff its name is `value` and all
  other parameters have default values

 #KT-2576 Fixed
 #KT-6641 Fixed
 #KT-6220 Fixed
 #KT-6652 Fixed
2015-04-07 19:31:29 +03:00
Andrey Breslav
84ed0e7255 Create annotation-arguments.md
(cherry picked from commit 202ea7c)
2015-04-07 19:31:29 +03:00
Mikhail Glukhikh
27b1f1ddad Test and implementation for KT-6819. Now when entry condition data flow information is used for subsequent conditions. #KT-6819 Fixed 2015-04-07 19:03:34 +03:00
Mikhail Glukhikh
cd206fc97b Test for KT-3711. Passes already in M11 or even earlier 2015-04-07 19:03:31 +03:00
Mikhail Glukhikh
221501c0d9 Tests for KT-2865. Passes already in M11 or even earlier 2015-04-07 19:03:29 +03:00
Mikhail Glukhikh
39e01f4df2 Tests for KT-3899. Passes already in M11 or even earlier 2015-04-07 19:03:27 +03:00
Mikhail Glukhikh
f49c79f4f0 Tests for KT-3224 and KT-3244. Both pass already in M11 or even earlier 2015-04-07 19:03:24 +03:00
Natalia Ukhorskaya
8f07960fd4 Debugger: do not use DelegatedPropertyRenderer for fields with name = delegate 2015-04-07 18:53:10 +03:00
Natalia Ukhorskaya
649654999f Debugger: add an option for computing delegated properties values in Variables View 2015-04-07 18:53:08 +03:00
Natalia Ukhorskaya
111f375fa6 Eval4j: disable object collection during evaluation 2015-04-07 18:10:23 +03:00
Michael Bogdanov
7abbf1ec12 Rename invokeWithout assertion to genInvokeInstruction 2015-04-07 17:28:02 +03:00
Michael Bogdanov
8b4886e3e0 Remove invokeWithAssertion function 2015-04-07 17:28:02 +03:00
Michael Bogdanov
3e953dbe24 Remove commented code 2015-04-07 17:28:01 +03:00
Michael Bogdanov
841b199d49 Optimize comparison with zero and null 2015-04-07 17:28:01 +03:00
Michael Bogdanov
ccfc613c31 Get rid of some genLazy 2015-04-07 17:28:01 +03:00
Michael Bogdanov
f551e90d7c Use callableMethod return type as function call result type 2015-04-07 17:27:25 +03:00
Michael Bogdanov
86e12f1f42 IntrinsicCallable clean 2015-04-07 16:05:43 +03:00
Michael Bogdanov
31c4aaac4d Rename thisType and receiverType to dispatch and extension ones 2015-04-07 16:05:43 +03:00
Michael Bogdanov
a201cb3258 IntrinsicCallable clean 2015-04-07 16:05:43 +03:00
Michael Bogdanov
c72bae5081 Clean intr 2015-04-07 16:05:43 +03:00
Michael Bogdanov
de11ecb9b4 Fix for KT-7288: VerifyError on accessing array element in 'is' block
#KT-7288 Fixed
2015-04-07 16:05:42 +03:00
Michael Bogdanov
a44def05cc Rollback hack for rangeTo safe call support 2015-04-07 16:05:42 +03:00
Michael Bogdanov
c7fe8e0b66 Branched value refactoring, And/Or support 2015-04-07 16:05:42 +03:00
Michael Bogdanov
c63ac3e30a Test for KT-7222 Redundant boxing on toString call
#KT-7222 Fixed
2015-04-07 16:05:42 +03:00
Michael Bogdanov
0efe8890b8 Added new string tests 2015-04-07 16:05:42 +03:00
Michael Bogdanov
a19c1ed476 ArrayIterator refactoring 2015-04-07 16:05:42 +03:00
Michael Bogdanov
69ddb6bfca Intrinsic.toCallable clean 2015-04-07 16:05:41 +03:00
Michael Bogdanov
d55c5fe0e4 Array get convertion 2015-04-07 16:05:41 +03:00
Michael Bogdanov
c8a4fa586c ArrayGet.java to kt 2015-04-07 16:05:41 +03:00
Michael Bogdanov
a1f365d17c Clean 2015-04-07 16:05:41 +03:00
Michael Bogdanov
47c838e62b Move some callable method impl to trait 2015-04-07 16:05:41 +03:00
Michael Bogdanov
05aa80e7f1 Callable methods to properties 2015-04-07 16:05:41 +03:00
Michael Bogdanov
45d5a86468 Clean Intrinsics 2015-04-07 16:05:40 +03:00
Michael Bogdanov
32d4845606 ExCallable to Callable renaming 2015-04-07 16:05:40 +03:00
Michael Bogdanov
6213d68553 Ex -> kt 2015-04-07 16:05:40 +03:00
Michael Bogdanov
8e0003c1a5 Callable Convertion 2015-04-07 16:05:40 +03:00
Michael Bogdanov
1d31b93c33 Callable*.java->Callable.kt 2015-04-07 16:05:40 +03:00
Michael Bogdanov
390c03d03f Concat conversion 2015-04-07 16:05:40 +03:00
Michael Bogdanov
81be7cd071 Concat.java->Concat.kt 2015-04-07 16:05:39 +03:00
Michael Bogdanov
6e13cef3c5 IdentEquals 2015-04-07 16:05:39 +03:00
Michael Bogdanov
8e4204408b Not conversion and hack for substitute param generation 2015-04-07 16:05:39 +03:00
Michael Bogdanov
b2fe44997a Remove intrinsics from CollectionElement 2015-04-07 16:05:39 +03:00
Michael Bogdanov
44582f76e3 Not restriction 2015-04-07 16:05:39 +03:00
Michael Bogdanov
0c8ee872f9 Increment convertion 2015-04-07 16:05:38 +03:00
Michael Bogdanov
8ec0cd18b7 CompareTo fix 2015-04-07 16:05:38 +03:00
Michael Bogdanov
8552dd60ae patch moveto stack 2015-04-07 16:05:38 +03:00
Michael Bogdanov
6e9d5ebe78 RenageTo convertion & before call 2015-04-07 16:05:38 +03:00
Michael Bogdanov
83f8dae9ac RangeTo.java->RangeTo.kt 2015-04-07 16:05:38 +03:00
Michael Bogdanov
b99ff5c7ae Intrinsic conversion 2015-04-07 16:05:37 +03:00
Michael Bogdanov
a5612ec4c0 intrinsics java->kt file renaming 2015-04-07 16:05:37 +03:00
Michael Bogdanov
c1ab7f06f7 Get rid of getAsmMethod 2015-04-07 16:05:37 +03:00
Michael Bogdanov
61a49f13e1 ExtendedCallable and some optimazation in CallableMethod 2015-04-07 16:05:37 +03:00
Michael Bogdanov
ce004a9181 Number/Object compare to branched one 2015-04-07 16:05:37 +03:00
Nikolay Krasko
2946c1d6a8 KT-7271 Accessing an extension property of Char.Companion leads to ClassNotFoundException in runtime
#KT-7271 Fixed
2015-04-07 15:59:05 +03:00
Nikolay Krasko
a77aae8789 KT-7245 HTML Markup in toolwindow caption
#KT-7245 Fixed
2015-04-07 15:59:04 +03:00
Ilya Gorbunov
fbb567c11a Iterator<T> can be converted to a sequence constrained to be one-time iterable. 2015-04-07 15:35:01 +03:00
Ilya Gorbunov
f2d865e836 Provide constrainOnce extension method for the Sequence.
Sequence created from the generator function without an initial value can be iterated only once.
The same is for BufferedReader.lines sequence.
2015-04-07 15:34:59 +03:00
Ilya Gorbunov
698ffa2807 A sequence constructed with initialValue can be iterated multiple times. 2015-04-07 15:31:00 +03:00
Stanislav Erokhin
3de0dff575 Migrate testdata to new lambda syntax 2015-04-07 13:08:53 +03:00
Stanislav Erokhin
b703f59e04 Migrate kotlin sources, maven projects and stdlib to new lambda syntax 2015-04-07 13:08:53 +03:00
Stanislav Erokhin
e0988de707 Minor: increase timeout 2015-04-07 13:08:52 +03:00
Stanislav Erokhin
4ef086ea57 Minor. Removed obsolete comment 2015-04-07 13:08:51 +03:00
Stanislav Erokhin
b152211096 Added init keyword to testdata 2015-04-07 13:08:51 +03:00
Stanislav Erokhin
6ab83c9b8c Added init keyword to builtins, maven projects and stdlib 2015-04-07 13:08:50 +03:00
Ilya Gorbunov
7cac6e3c5e Provide String.commonPrefixWith and String.commonSuffixWith methods.
Char.isHighSurrogate and Char.isLowSurrogate now available in js-stdlib too.
2015-04-07 03:15:03 +03:00
Ilya Gorbunov
70cc7fbf1f Remove never intentionally used String.hashCode extension. 2015-04-07 03:14:49 +03:00
Ilya Gorbunov
91decc9f33 Add String.contains with Char argument. Fixes #KT-7239. 2015-04-07 03:14:36 +03:00
Ilya Gorbunov
cb85d335ba Correct deprecated message for trim()
Correct documentation description.
2015-04-07 03:14:22 +03:00
Valentin Kipyatkov
8f01130e8e Minor code corrections after review 2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
2efa851115 Used correct function for fetching elements in range instead of strange one from daemon.impl 2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
0918d5ce79 Minor 2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
bf0798ca86 Added test 2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
bcbe10ad2a Removed unused method 2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
506f84fb8a KT-5959 Imports should be inserted on paste from java with conversion to Kotlin
#KT-5959 Fixed
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
754567af07 Important fix: PsiFile.getParent() is PsiDirectory! 2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
d0637ccaf4 Conversion from Java on paste: post processing of code really works 2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
2227452e7a KT-5203 Do not offer to convert from java on paste if conversion is trivial
#KT-5203 Fixed
2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
0ed7d228f6 Got rid of conversionScope parameter for JavaToKotlinConverter 2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
751f952536 Code improvements 2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
4b32db5c5e KT-5289 J2K: Should show progress when conversion takes time
#KT-5289 Fixed
2015-04-07 00:00:28 +03:00
Zalim Bashorov
b3ef334a0e Update to IDEA 14.1 EAP (141.498.1) 2015-04-06 22:20:44 +03:00
Mikhail Glukhikh
88441814b9 Test for KT-5502 (works after KT-4450 / KT-5907 fix) 2015-04-06 18:32:19 +03:00
Mikhail Glukhikh
d92ccad35d Implementation and tests for KT-5840 and newly created KT-7204. Now a safe call provides not-null receiver state *inside* argument list. It works also for ?. chains. #KT-5840 Fixed.
On the other hand, argument states do not propagate to successor statements for a safe call. #KT-7204 Fixed. A few additional comments.
2015-04-06 18:29:52 +03:00
Zalim Bashorov
79739b7090 Fix build. 2015-04-06 18:20:00 +03:00
Mikhail Glukhikh
1055c34474 Fix of when / break / continue problem 2015-04-06 17:57:48 +03:00
Natalia Ukhorskaya
20470e5c42 Merge pull request #635 from rusmonster/bugfix/fix-build-after-cleaning
Build fails after project cleaning
#KT-7277 Fixed
2015-04-06 16:35:18 +03:00
Mikhail Glukhikh
cdc2d0f542 Tests for when / break / continue fixed 2015-04-06 16:08:17 +03:00
Valentin Kipyatkov
412ab8f8b8 Split module idea into idea, idea-core and idea-completion 2015-04-06 14:28:40 +03:00
Dmitry Jemerov
203c8ea125 compilation fix 2015-04-06 13:03:56 +02:00
Dmitry Kalita
7c911e1f0a When you build the project for the first time after cleaning, you lose paths to internal_impl jars of support libraries such as
build/intermediates/exploded-aar/com.android.support/support-v4/21.0.2/libs/internal_impl-21.0.2.jar

They are absent in javaCompile.getClasspath() when javaCompile task starts.

This patch fixes it.
#KT-7277 Fixed
2015-04-05 13:11:41 +03:00
Dmitry Jemerov
5a0c98ca81 fix compilation now that 'break' inside 'when' is not allowed 2015-04-05 00:33:14 +03:00
Dmitry Jemerov
252c4118eb report 'break' and 'continue' inside 'when' as errors (even if 'when' is nested in a loop) 2015-04-05 00:33:14 +03:00
Valentin Kipyatkov
8ab12e217d KT-7267 Arguments are replaced by tab when old call was qualified
#KT-7267 Fixed
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
2c1a0a0c4b Smart completion: expected type instantiation made higher priority than static members 2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
e2979614ad KT-7259 Space inserted before parenthesis in completion of call
#KT-7259 Fixed
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
93d9e78047 Minor 2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
29149add09 KT-7247 PsiErrorElementImpl cannot be cast to org.jetbrains.kotlin.psi.JetElement
#KT-7247 Fixed
2015-04-04 22:15:45 +03:00
Yan Zhulanow
df12331173 Ignore fragment tag (it requires a different implementation) 2015-04-03 17:38:20 +03:00
Yan Zhulanow
b4cfacbac7 Name synthetic files after layout names 2015-04-03 17:37:24 +03:00
Yan Zhulanow
e6fa6e9a5d Escape layout names which are Kotlin keywords 2015-04-03 17:37:23 +03:00
Yan Zhulanow
3aa6edca7b Escape soft keywords as well 2015-04-03 17:37:23 +03:00
Yan Zhulanow
fae114f606 Cast findViewById() result to Views safely 2015-04-03 17:37:23 +03:00
Yan Zhulanow
1f16328070 Add imports for XML widget tags, support.v4 fake package files 2015-04-03 17:37:22 +03:00
Yan Zhulanow
d0e4f86790 Escape widget ids which are Kotlin keywords 2015-04-03 17:37:22 +03:00
Yan Zhulanow
2af538e854 Ignore some XML tags 2015-04-03 17:37:21 +03:00
Yan Zhulanow
938248bd29 Search for all properties in layout files corresponding to the given JetProperty 2015-04-03 17:37:21 +03:00
Yan Zhulanow
96074bc948 Fix Android byte code generation inside complex expressions 2015-04-03 17:37:21 +03:00
Yan Zhulanow
de06a0cbc2 Clear layout cache on layout XML file add/remove 2015-04-03 17:37:20 +03:00
Yan Zhulanow
b930f04ff4 Fix null-related warnings in AndroidRenameProcessor 2015-04-03 17:37:20 +03:00
Yan Zhulanow
638ec2ae92 Fix deprecated Kotlin constructs and remove unused code in Android plugins 2015-04-03 17:37:20 +03:00
Yan Zhulanow
dd083c64cc Simplify Module resolving in AndroidRenameProcessor 2015-04-03 17:37:19 +03:00
Yan Zhulanow
cbf68e8c6f Generate synthetic packages even for layouts without @+id/ attributes declared 2015-04-03 17:37:19 +03:00
Yan Zhulanow
0a96c2c148 Lookup XML attribute using the property (for a particular layout) 2015-04-03 17:37:19 +03:00
Yan Zhulanow
a4dc6870dc Fix Android layout widget redeclarations 2015-04-03 17:37:18 +03:00
Yan Zhulanow
c40598b3e9 Do not cast findViewById to View 2015-04-03 17:37:18 +03:00
Yan Zhulanow
2061e390b4 Support special Android layout XML tags: fragment, include, merge 2015-04-03 17:37:18 +03:00
Valentin Kipyatkov
37af12c4bf Code improvements after review 2015-04-03 17:16:22 +03:00
Valentin Kipyatkov
5dbd23088f Removed WritableScope.addClassifierAlias too 2015-04-03 17:16:22 +03:00
Valentin Kipyatkov
54ea6113d7 Replaced addTypeParameterDescriptor with addClassifierDescriptor - it does the same 2015-04-03 17:16:22 +03:00
Valentin Kipyatkov
ffc22e8b16 Removed unused methods 2015-04-03 17:16:21 +03:00
Valentin Kipyatkov
02b2fb000e Removed unused WriteThroughScope 2015-04-03 17:16:21 +03:00
Valentin Kipyatkov
0162980ff7 Refactored code in QualifiedExpressionResolver so that WritableScope.import* methods are not used anymore 2015-04-03 17:16:21 +03:00
Valentin Kipyatkov
21083b48ce Minor refactoring in imports resolve 2015-04-03 17:16:21 +03:00
Ilya Gorbunov
12bf8ca94f Replace deprecated split usage in kdoc. 2015-04-03 12:13:23 +03:00
Ilya Gorbunov
51321c8b36 Remove deprecated isNullOrEmpty declaration, fixed usage. 2015-04-03 12:13:11 +03:00
Michael Nedzelsky
61726fdcb7 JS: merge KotlinJavascriptSerializer into KotlinJavascriptSerializationUtil 2015-04-03 05:36:21 +03:00
Michael Nedzelsky
1c7e1ddf26 JS: remove LibrarySourcesConfigWithCaching, introduce LibrarySourceConfig.Builder 2015-04-03 05:36:18 +03:00
Michael Nedzelsky
6d8fc1e035 JS: load metadata optimization in KotlinJavascriptMetadataUtils 2015-04-03 05:36:15 +03:00
Michael Nedzelsky
563ab47502 JS: add jps build test for Kotlin/Javascript two-module project 2015-04-03 05:36:13 +03:00
Michael Nedzelsky
06aef3164c JS: use metadata in jps build process 2015-04-03 05:36:10 +03:00
Michael Nedzelsky
9a02db3e8b JpsJsModuleUtils.java -> JpsJsModuleUtils.kt 2015-04-03 05:36:07 +03:00
Michael Nedzelsky
e779c8a2ae JpsJsModuleUtils: convert to kotlin 2015-04-03 05:36:05 +03:00
Michael Nedzelsky
5a73bd19c5 JS: move processing metaInfo to TranslationResult 2015-04-03 05:36:02 +03:00
Michael Nedzelsky
dbe59190ed JS: add writeMetadataToString, serializeToString 2015-04-03 05:35:59 +03:00
Michael Nedzelsky
0951d69bdc JS: add metaInfo attribute to Config 2015-04-03 05:35:56 +03:00
Michael Nedzelsky
54df359134 JS: add default package name to DescriptorUtils.getPackageNames 2015-04-03 05:35:53 +03:00
Alexander Udalov
4474005183 Fix codegen tests and overloads diagnostic test 2015-04-03 01:38:31 +03:00
Alexander Udalov
6279421094 Minor, add test on Java enum with specialized entry 2015-04-02 21:57:53 +03:00
Alexander Udalov
3c1ead726b Minor, rename jdkFromIdeaHome -> mockJdk 2015-04-02 21:57:52 +03:00
Alexander Udalov
5b2ffd50d3 Use mock JDK instead of full in IDEA plugin tests 2015-04-02 21:57:51 +03:00
Alexander Udalov
72aa3d1465 Use mock JDK in compiler tests where full JDK is not needed
- move some of boxWithStdlib tests under fullJdk/ directory, where they will be
  compiled against the full JDK
- introduce FULL_JDK in-text directive for the reflection test as only 4 tests
  out of 654 needed the full JDK
2015-04-02 21:57:48 +03:00
Alexander Udalov
150e0a4ef2 Print runtime and reflection jar sizes for TeamCity statistics 2015-04-02 21:57:02 +03:00
Dmitry Jemerov
7b507276ed frontend diagnostics for kotlin.jvm.overloads
#KT-7203 Fixed
2015-04-02 20:30:36 +02:00
Dmitry Jemerov
39828bfd32 Implement kotlin.jvm.overloads annotation for generating all overloads of a method that has default parameter values.
#KT-2095 Fixed

fix backend-side issues with kotlin.jvm.overloads: support the annotation on constructors, generate nullablity annotations on parameters, generate generic signatures, add various tests
2015-04-02 20:30:26 +02:00
Dmitry Jemerov
e15b984232 Implement kotlin.jvm.overloads annotation for generating all overloads of a method that has default parameter values.
#KT-2095 Fixed
2015-04-02 20:30:01 +02:00
Dmitry Jemerov
c1c9d3b090 extract code for generating parameterless constructor into a separate class and rewrite it in Kotlin 2015-04-02 20:30:00 +02:00
Valentin Kipyatkov
d78573059e Fixed import insertion on paste broken sometime ago 2015-04-02 21:10:54 +03:00
Ilya Ryzhenkov
1fc1c025e9 Fix EA-67177: exception when analysing unfinished assignment expression without RHS. 2015-04-02 18:59:57 +03:00
Pavel V. Talanov
cb7617b3ca Refactor CompilerConfiguration: keys -> Content roots
Represent classpath roots and java source roots as separate entities
2015-04-02 16:13:06 +03:00
Valentin Kipyatkov
4e283fd62f Added a test 2015-04-02 10:17:01 +03:00
Valentin Kipyatkov
1df39ab82b Fixed code after rebase to SmartCastUtils requiring containingDeclaration 2015-04-02 10:17:01 +03:00
Valentin Kipyatkov
784b4a8aeb Minor code changes after code review 2015-04-02 10:17:00 +03:00
Valentin Kipyatkov
b45b462bdf Not imported extension functions are always listed in code completion 2015-04-02 10:17:00 +03:00
Valentin Kipyatkov
c54541b269 Functions returning Nothing are indexed even when alias import is used 2015-04-02 10:16:59 +03:00
Valentin Kipyatkov
1789907740 No hardcoded nothing callables needed anymore 2015-04-02 10:16:59 +03:00
Valentin Kipyatkov
6a2cc66eb1 Got rid of isProbablyNothing in stubs + fixed exception on some files on indexing stubs 2015-04-02 10:10:31 +03:00
Valentin Kipyatkov
0243280668 Extension callables index is built correctly when using alias imports 2015-04-02 10:09:26 +03:00
Valentin Kipyatkov
bff2b2f378 Fixed tests for stubs 2015-04-02 10:09:25 +03:00
Valentin Kipyatkov
5ba5618718 Extension callables index and its use in completion 2015-04-02 10:09:25 +03:00
Valentin Kipyatkov
546af84435 Renames 2015-04-02 10:09:25 +03:00
Valentin Kipyatkov
f92bc39323 Minor code improvements 2015-04-02 10:09:25 +03:00
Valentin Kipyatkov
4b383f35b4 Use of Sequence instead of Stream 2015-04-02 10:09:25 +03:00
Alexander Udalov
0b252505d9 Minor, add clarifying comment & inline useless property 2015-04-02 03:22:58 +03:00
Alexander Udalov
57be11a7e6 Minor, move common logic to ReflectJavaModifierListOwner 2015-04-02 03:22:22 +03:00
Alexander Udalov
4cea9ecca4 Minor, add reflection test on inherited Java property 2015-04-02 03:22:12 +03:00
Alexander Udalov
7fda4ef438 Don't show local/anonymous classes in libraries in Project view 2015-04-02 03:22:04 +03:00
Evgeny Gerashchenko
0d4d719156 Minor. Reverted optimized imports in generated test. 2015-04-02 02:28:49 +03:00
Valentin Kipyatkov
fea57ecd2c Fixed incorrect PARTIAL resolve inside code fragments 2015-04-01 23:21:24 +03:00
Valentin Kipyatkov
c99f3fd106 Refactoring code to be more Kotlin 2015-04-01 23:21:24 +03:00
Valentin Kipyatkov
3ff13ccf5d Converting ElementResolver to Kotlin (step 2) 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov
2637bf608a Converting ElementResolver to Kotlin (step 1) 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov
f7a147f236 PsiReference.resolve() uses partial body resolve 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov
6dc943a739 JetReference.resolveToDescriptors() requires BindingContext 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov
04a6ebf0d6 Dropped JetReference.resolveMap() 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov
67de85aed1 More usages of partial body resolve 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov
4d2a34cc4e "Surround with" uses partial body resolve 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov
ff6853f300 Added BodyResolveMode parameter to JetElement.analyze() 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov
a8bb0162f8 Minor code improvements 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov
cd18b16407 Partial body resolve: fixed for ! and parenthesis in conditions 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov
698d839eee Added a test 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov
f3799a0ce7 Partial body resolve correctly handles elvis operator 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov
176ba937ba Partial body resolve filter works more precisely for if-statements 2015-04-01 23:21:21 +03:00
Valentin Kipyatkov
7a414336c1 Do not run partial body resolve if full body resolve already cached 2015-04-01 23:21:21 +03:00
Ilya Gorbunov
6aad2b2d65 Add dependency of kotlin-js-tests to kotlin-js-tests-junit. 2015-04-01 23:10:15 +03:00
Ilya Gorbunov
cac058d5a3 Fix endsWith in JS always ignored character case, regardless of the ignoreCase parameter value.
startsWith, endsWith again use native implementation when possible.
2015-04-01 23:10:14 +03:00
Ilya Gorbunov
315badd5d1 Restore native js functions: startsWith, endsWith, contains.
startsWith and endsWith implementation taken from MDN.
2015-04-01 23:05:52 +03:00
Ilya Gorbunov
0717705f15 Add requireNotNull with lazy message. 2015-04-01 22:28:47 +03:00
Ilya Ryzhenkov
2f02024c24 checkLValue for array indexing expression should resolve set method #KT-7218 Fixed 2015-04-01 21:02:05 +03:00
Pavel V. Talanov
a986d913c3 Remove traces of class object constraints feature from parser, frontend, tests and psi 2015-04-01 20:09:34 +03:00
Pavel V. Talanov
5fe8bb4a92 Drop ClassifierDescriptor#getClassObjectType()
Introduce utility for ClassDescriptor to use where necessary
2015-04-01 20:09:32 +03:00
Ilya Gorbunov
b930f71b79 Fix split method usage in JS: split replaced with splitWithRegex or splitBy. 2015-04-01 18:17:08 +03:00
Ilya Gorbunov
95c2a4fb29 Fix split method usage: split temporary replaced with splitBy. 2015-04-01 18:17:06 +03:00
Natalia Ukhorskaya
907f402d30 Code fragments: getResolveScope should return scope for context element 2015-04-01 18:01:24 +03:00
Valentin Kipyatkov
36fb14a3fc KT-6923 Completion shouldn't show private symbols from compiled code
#KT-6923 Fixed
2015-04-01 17:46:10 +03:00
Valentin Kipyatkov
3b110f8ef8 KT-7194 No completion for member extension function inside itself
#KT-7194 Fixed
2015-04-01 17:46:10 +03:00
Valentin Kipyatkov
7e9314bd40 More accurate import conflict detection 2015-04-01 17:10:50 +03:00
Valentin Kipyatkov
e22f28c061 Fixed a fail in import insertion 2015-04-01 17:10:50 +03:00
Alexander Udalov
d6ceadf769 Revert erroneous change to .idea/compiler.xml 2015-04-01 16:44:44 +03:00
Dmitry Jemerov
6d56618d17 complete KDoc tag names after @, not only at line start
#KT-7139 Fixed

code review
2015-04-01 15:14:20 +02:00
Ilya Gorbunov
f87dcff723 Fixed #KT-6476. last(predicate) and lastOrNull(predicate) use reverse iteration when possible. 2015-04-01 15:51:08 +03:00
Ilya Gorbunov
d81895df77 Rename and deprecate ad-hoc IsNullOrEmpty. 2015-04-01 15:40:20 +03:00
Ilya Gorbunov
850d79e61a Remove negative variants of isEmpty and isBlank (may be included later). 2015-04-01 15:40:18 +03:00
Ilya Gorbunov
ac4b207413 Add isEmpty, isBlank methods and their nullable and negating couterparts. 2015-04-01 15:40:17 +03:00
Stanislav Erokhin
4efb0dbf9a Fixed CAPTURED_IN_CLOSURE marker for primary constructor argument
#KT-7131 Fixed
2015-04-01 15:28:09 +03:00
Alexey Sedunov
9247f4f096 Quick-Fixes: Fix type checking scope for type mismatch in call argument 2015-04-01 13:41:27 +03:00
Alexey Sedunov
eb594a2897 Extract Function: Approximate non-resolvable types with nearest resolvable supertype when possible
#KT-7120 Fixed
2015-04-01 13:41:26 +03:00
Alexey Sedunov
a90d020859 Extraction Engine: Fix extraction of labeled and non-local returns 2015-04-01 13:41:24 +03:00
Alexey Sedunov
3bea49eedd Change Signature: Fix processing of enum constructors
#KT-7170 Fixed
2015-04-01 13:41:23 +03:00
Alexey Sedunov
d65b55e147 Change Signature: Fix processing of lambda arguments 2015-04-01 13:41:22 +03:00
Svetlana Isakova
61d0bcdf76 KT-7068 None of the following functions can be called with two functions with extention function parameter
#KT-7068 Fixed
2015-04-01 11:57:15 +03:00
Nikolay Krasko
ca98b19aba Wrong package light file with package class 2015-04-01 02:02:07 +03:00
Nikolay Krasko
055be2850f Fix accept() in light methods elements to avoid treating them as ClsElements 2015-04-01 02:02:01 +03:00
Nikolay Krasko
9d151d2ce8 Add ability to configure set of tools with in file 2015-04-01 02:01:59 +03:00
Nikolay Krasko
4e04d9b887 Add more toString() methods and additional wrapping for Kotlin elements 2015-04-01 02:01:55 +03:00
Nikolay Krasko
ad23e9159c Refactoring: remove unnecessary subclassing PsiClass in marker interface 2015-04-01 02:01:53 +03:00
Nikolay Krasko
a109223a07 Minor: fix compile errors in java test data 2015-04-01 02:01:51 +03:00
Denis Zharkov
a4018d9eae Run "Add 'init' keyword in whole project" quickfix 2015-03-31 20:20:23 +03:00
Denis Zharkov
99f1ab333e Report illegal modifiers and annotations on primary constructor
#KT-7057 Fixed
 #KT-6772 Fixed
2015-03-31 20:20:22 +03:00
Denis Zharkov
717f850470 Setup spacing rules for primary ctor's parts 2015-03-31 20:20:22 +03:00
Denis Zharkov
8e69c06e5a Adjust stub-builder, decompiler and renderer to new PSI structure
of primary ctor
2015-03-31 20:20:22 +03:00
Denis Zharkov
741c9febe2 Modify various usages of old PSI structure of primary ctor 2015-03-31 20:20:22 +03:00
Denis Zharkov
cafa018066 Parsing: Drop redundant parameter as it always has the same value 2015-03-31 20:20:22 +03:00
Denis Zharkov
af2bcfb524 Parse primary constructor into separate PSI element 2015-03-31 20:20:22 +03:00
Evgeny Gerashchenko
59f939d9ef Do check isCheapEnoughToSearch for companion objects, but just ignore ZERO_OCCURENCES outcome. 2015-03-31 20:08:05 +03:00
Evgeny Gerashchenko
83f2a08708 Added test with moving file used in Java to other package. 2015-03-31 18:14:00 +03:00
Evgeny Gerashchenko
a4d2d6506c Removing import of removed package facade. 2015-03-31 18:13:21 +03:00
Evgeny Gerashchenko
f789933683 Fixed updating Java references on moved Kotlin top-level callables. 2015-03-31 18:13:20 +03:00
Evgeny Gerashchenko
5b05c60858 Minor. Code cleanup. 2015-03-31 18:13:20 +03:00
Mikhail Glukhikh
620b7954ac Tests for already working KT-3993 and KT-5427. These test cases pass at least since M11 2015-03-31 17:15:46 +03:00
Mikhail Glukhikh
9c1551bca9 Implementation of smart casts for public / protected immutable properties that are not open and used in the same module.
DataFlowValueFactory and its environment refactoring: containing declaration is added into factory functions
as an argument and used to determine identifier stability. A few minor fixes. #KT-5907 Fixed. #KT-4450 Fixed. #KT-4409 Fixed.

New tests for KT-4409, KT-4450, KT-5907 (public and protected value properties used from the same module or not,
open properties, variable properties, delegated properties, properties with non-default getter).
Public val test and KT-362 test changed accordingly.
2015-03-31 16:19:03 +03:00
Valentin Kipyatkov
0b27d9181a Minor code corrections after review 2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
d5326031c4 J2k: for through range with != comparison is also recognized 2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
11b4e66fd0 Better tests 2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
c66b20b204 KT-6795 J2K: When converting to type with projections, omit redundant use-site projections
#KT-6795 Fixed
2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
7e50f72d5b J2K: no call to super constructor in the header of class when there is no primary constructor 2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
c57f2b10d6 J2K: use of emptyList, emptySet and emptyMap 2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
1465418c2b KT-7151 Convert 'System.out.println()' to just 'println()'
#KT-7151 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
39f94d7d45 KT-6044 J2K: Convert numeric float literals to 0.2f instead of 0.2.toFloat() + more fixes related to literals and type transformations
#KT-6044 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
5454f7053f KT-6349 J2K: Static members of enums should be converted to class object members
#KT-6349 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
f19eb20803 KT-5287 J2K: Convert class with private constructor and static functions to "object" instead of class with "class object"
#KT-5287 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
6dbb13c32d KT-6798 J2K: Needless use of run {} function after converting for-loop
#KT-6798 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
46193f3ef7 KT-5692 Java to Kotlin conversion: convert int range loops in reverse order + a few more improvements
#KT-5692 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
16295b875b Removed methods not need anymore 2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
fb4075cc2f J2K: inlining intermediate variable after removing type cast 2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
e31648a4b6 KT-6476 Kotlin J2K converter fails with for-loops with continues
#KT-6476 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
2d4055e921 J2K: generating of elvis operators instead of if's 2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
0932cb4606 J2K: auto-replacing of if's with safe access 2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
555ae1ebd3 J2K: no redundant type casts
#KT-6794 Fixed
2015-03-31 16:10:21 +03:00
Valentin Kipyatkov
7d92559d13 J2K: generating "!is" instead of !(.. is ..) 2015-03-31 16:10:21 +03:00
Valentin Kipyatkov
108a1f872c J2K: use of new syntax for class intialization blocks 2015-03-31 16:10:21 +03:00
Stanislav Erokhin
4bfdcae972 Fixed ideaSDK download logic. 2015-03-31 15:43:01 +03:00
Ilya Gorbunov
536a977f5c indexOfAny, lastIndexOfAny return an index value only (similar to indexOf, lastIndexOf).
findAnyOf, findLastAnyOf introduced to cover the case when an index and a matched string value is required.
2015-03-31 02:25:19 +03:00
Ilya Gorbunov
bb8df6be4b Restore startsWith and endsWith overloads taking single char to keep binary compatibility with markdown parser. 2015-03-31 02:25:04 +03:00
Ilya Gorbunov
b3165ac771 Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path. 2015-03-31 02:24:50 +03:00
Ilya Gorbunov
b10d869cd7 indexOf*, split, startsWith, endsWith: JS implementation 2015-03-31 02:24:35 +03:00
Ilya Gorbunov
d724ce3f7e Add code generation for asList methods in js.libraries. 2015-03-31 02:24:20 +03:00
Ilya Gorbunov
abdac27b61 Modify split(String) usages within stdlib. 2015-03-31 02:24:06 +03:00
Ilya Gorbunov
6f7a4d8429 Add methods for String: indexOfAny, lastIndexOfAny, indexOf, lastIndexOf, rangesDelimitedBy, splitToSequence, split, lineSequence, lines.
Add methods for Char: toUpperCase, toLowerCase.
Add an optional boolean parameter ignoreCase to the methods Char.equals, String.equals, String.startsWith, String.endsWith, String.contains.
2015-03-31 02:23:52 +03:00
Alexey Sedunov
e9e8be5b4e Create from Usage: Generate secondary constructors by delegator to super-calls 2015-03-30 21:10:29 +03:00
Alexey Sedunov
e8b4c43011 Create from Usage: Generate secondary constructors by delegation calls 2015-03-30 21:10:28 +03:00
Alexey Sedunov
9c0bcee9a3 Create from Usage: Generate secondary constructors by call expressions 2015-03-30 21:10:27 +03:00
Alexey Sedunov
15dddf362e Create from Usage: Secondary constructor support 2015-03-30 21:10:25 +03:00
Alexey Sedunov
11675322ee Find Usages: Fix exception in the search of class with default parameters in primary constructor 2015-03-30 21:10:24 +03:00
Alexander Udalov
0a93cfc9c0 build.xml: drop 'generate.assertions' option
It was error-prone, not very useful (only a couple seconds saved on a 3min
build), and in fact did not work since 5194310d, because <skip> element was
failing inside the default javac
2015-03-30 20:20:46 +03:00
Alexander Udalov
52292fc360 Fix build, add dependencies idea-analysis, idea -> deserialization 2015-03-30 20:15:12 +03:00
Alexander Udalov
7742fb52e6 Minor, move builtins-serializer sources to correct package 2015-03-30 19:44:21 +03:00
Alexander Udalov
d2ef040bcb Fix occasional reflection test failure
The cache in moduleByClassLoader.kt contains weak references to instances of
RuntimeModuleData. However, prior to this change no one else had any _strong_
reference to the corresponding RuntimeModuleData: KClassImpl depends on the
ModuleDescriptor almost directly. Therefore the weak references were sometimes
garbage collected and a new module was constructed for a new reflection object,
which resulted in broken equality between two reflection objects.

No test added because it was rather hard to come up with (and, more
importantly, to support) a test case.
2015-03-30 19:44:19 +03:00
Alexander Udalov
d59e1ad7ac Minor, add toString() to WeakClassLoaderBox for debug 2015-03-30 19:44:18 +03:00
Alexander Udalov
32c3bb8c7f Extract module 'deserialization' out of 'serialization'
'deserialization' stays in core because it's needed both in compiler and
reflection, but 'serialization' is used only in the compiler
2015-03-30 19:44:17 +03:00
Alexander Udalov
d09e0e73fa Rename NameSerializationUtil, move serialization-related code there 2015-03-30 17:22:07 +03:00
Alexander Udalov
085bc2197b Merge module 'serialization.jvm' into 'descriptor.loader.java'
It was very small and there proved to be no point in separation of loading Java
classes and deserializing Kotlin classes
2015-03-30 17:22:06 +03:00
Alexander Udalov
b57e15f3a4 Move utilities from NameSerializationUtil to meaningful places 2015-03-30 17:22:06 +03:00
Alexander Udalov
485dce987c Fix byte array memory leak from MemoryBasedClassLoader
40 Mb of bytes of preloaded compiler classes during the compilation become 16
Mb after this change

This is a slightly reworked version of 58b033d (reverted in 3f05419). The
problem in that commit was that URLClassLoader did not work in the fashion
MemoryBasedClassLoader was designed to work (child first, parent last). So some
resource was found in an incorrect jar which was causing the compiler to break
2015-03-30 17:12:10 +03:00
Alexander Udalov
45da9555de Fix minor bug in MemoryBasedClassLoader#getResources()
Own resources and those from the parent class loader were not combined
2015-03-30 17:12:10 +03:00
Pavel V. Talanov
d109facc6f Convert JetCoreEnvironment: migrate code in libraries 2015-03-30 15:13:05 +03:00
Pavel V. Talanov
b73bd697e6 Rename JetCoreEnvironment -> KotlinCoreEnvironemnt 2015-03-30 15:11:58 +03:00
Pavel V. Talanov
5cb431c5c4 Convert JetCoreEnvironment: migrate other code 2015-03-30 15:11:57 +03:00
Pavel V. Talanov
2dcf935b99 Convert JetCoreEnvironment: clean up code 2015-03-30 15:11:57 +03:00
Pavel V. Talanov
0209acceb1 Convert JetCoreEnvironment: autoconvert 2015-03-30 15:11:56 +03:00
Pavel V. Talanov
49a0da7750 Convert JetCoreEnvironment: rename file 2015-03-30 15:11:56 +03:00
Natalia Ukhorskaya
785f7e749f InlineCodegen: find virtual file using findVirtualFileWithHeader 2015-03-30 14:03:24 +03:00
Mikhail Glukhikh
ef6698bd52 Test fixed 2015-03-30 10:55:24 +03:00
Mikhail Glukhikh
5d7e388276 Fix of KT-7130 2015-03-30 10:55:21 +03:00
Dmitry Jemerov
1e536af87e correctly calculate the number of mask arguments required for a method with default arguments
#KT-6816 Fixed
2015-03-27 18:51:07 +01:00
Denis Zharkov
418034add3 Prohibit instance access before super call
- Before this change members just left unresolved as they were absent in the
  specific scope named scopeForSecondaryConstructorHeaderResolution that
  created just to prohibit such accesses.
- Now they are resolved the same way as other members, but diagnostic is
  repored by in-place injected CallChecker
- Drop obsolete type of class scope

 #KT-6995 Fixed
2015-03-27 20:15:00 +03:00
Denis Zharkov
b939530a5c Minor, Rename isEmpty -> isImplicit 2015-03-27 16:09:42 +03:00
Denis Zharkov
18e40d034e Change contract of getDelegationCall to @NotNull
Its existence guaranteed by parser
2015-03-27 16:09:42 +03:00
Denis Zharkov
8c048c3e43 Refine recovery for constructors 2015-03-27 16:09:41 +03:00
Denis Zharkov
b1de2066c7 Add quickfixes inserting explicit delegation calls
#KT-6963 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
d0c72c2c3d Mark value arguments in case of empty delegation call
It's useful for quickfixes for these diagnostics
2015-03-27 16:09:41 +03:00
Denis Zharkov
1a2167e062 Minor, always report diagnostics on callee expression
As these kinds of diagnostic always have non-empty callee expression
2015-03-27 16:09:41 +03:00
Denis Zharkov
555f9e7c06 Minor, move isEmpty, isCallToThis to JetConstructorDelegationCall 2015-03-27 16:09:41 +03:00
Denis Zharkov
023e1a13a9 Do not try to detect cycles if delegation call resolution is unsuccessful 2015-03-27 16:09:41 +03:00
Denis Zharkov
9da88bbd0f Check if element is valid before checking it's writable
Otherwise it may lead to exception
2015-03-27 16:09:41 +03:00
Denis Zharkov
7aa2642a2b Unify reporting resolution errors for empty delegation calls
- Always report "There is no applicable constructor for call without arguments in superclass"
  under `constructor` keyword by replacing default TracingStrategy
- Remove positioning strategy used for reporting non-applicable
  for empty delegation calls

 #KT-6971 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
683bc4709f Add test case: 'platformStatic' on constructors 2015-03-27 16:09:41 +03:00
Denis Zharkov
ce3bf423ad Prohibit 'native' annotation on constructors
Currently doesn't work for primary ones

 #KT-7000 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
29b03e8175 Report illegal modifiers on secondary constructors 2015-03-27 16:09:41 +03:00
Denis Zharkov
66023e6f31 Prohibit platformName on secondary constructor
#KT-6999 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
8aa4e9bd94 Report error for inappropriate modifiers usages 2015-03-27 16:09:40 +03:00
Denis Zharkov
01e5ee718f Allow secondary constructors without body
#KT-6967 Fixed
2015-03-27 16:09:40 +03:00
Alexander Udalov
3f0541924f Revert "Fix byte array memory leak from MemoryBasedClassLoader"
This reverts commit 58b033d9fb.
2015-03-27 15:28:52 +03:00
Alexey Sedunov
dcfefb0847 Extract Function: Do not extract extension function reference as parameter 2015-03-26 23:11:51 +03:00
Alexey Sedunov
4ec1b9971f Parser: Do not produce JetQualifiedExpression without receiver
#KT-7122 Fixed
2015-03-26 23:11:50 +03:00
Stanislav Erokhin
cbcd2c3cce Fixed formatter for function expression 2015-03-26 22:08:46 +03:00
Stanislav Erokhin
daa437b535 Fix JetTreeVisitor for file case 2015-03-26 22:08:46 +03:00
Stanislav Erokhin
faf7922884 Migrate AddInitKeywordFix & ClassObjectToDefaultObjectFix to JetWholeProjectModalAction 2015-03-26 22:08:46 +03:00
Stanislav Erokhin
f40b503454 Create DeprecatedLambdaSyntaxFix for whole project 2015-03-26 22:08:45 +03:00
Stanislav Erokhin
3fd8c5e980 Minor. Divide method moveInsideParenthesesAndReplaceWith 2015-03-26 22:08:45 +03:00
Alexander Udalov
58b033d9fb Fix byte array memory leak from MemoryBasedClassLoader
40 Mb of bytes of preloaded compiler classes during the compilation become 16
Mb after this change
2015-03-26 21:42:05 +03:00
Alexander Udalov
30916e37ce Move bootstrap runtime copying to 'prepare-dist' to fix dist-quick 2015-03-26 21:38:05 +03:00
Alexander Udalov
fd48b4dd04 Minor, drop unneeded code in findClassInJava
JavaClassFinderImpl already checks that it never finds light classes and
ReflectJavaClassFinder can't ever find them
2015-03-26 21:34:53 +03:00
Pavel V. Talanov
f3191a39a5 Do not store instances of Application in strong static references
Introduce ExtensionProvider which takes care of caching application using weak reference
Fixes a memory leak for scenarios with application being substituted (Jps build does that when compiling multiple modules)
2015-03-26 21:09:11 +03:00
Dmitry Jemerov
827d9d48c1 Correctly apply SAM conversions in superclass constructor calls
#KT-5452 Fixed
2015-03-26 19:03:42 +01:00
Evgeny Gerashchenko
da9fe7d9a9 Updated URL pattern for IDEA EAP page 2015-03-26 18:28:08 +03:00
Yan Zhulanow
1338e0cd0a Replicate IDEA plugin versions only on TeamCity build 2015-03-26 16:12:10 +03:00
Michael Nedzelsky
7b15f9c7c9 JS: add message to assert in JsLibraryStdDetectionUtil 2015-03-26 15:50:27 +03:00
Michael Nedzelsky
2f7ebf677f JS: allow js-file in library-files for cli compiler 2015-03-26 00:22:19 +03:00
Pavel V. Talanov
b2d0b2ebc9 Fix erroneous squash: isOnTeamcity check actually does something 2015-03-25 21:39:31 +03:00
Pavel V. Talanov
929d4644b5 Output compilation time as teamcity statistics in jps plugin 2015-03-25 20:01:23 +03:00
Dmitry Jemerov
bb1410b20a generate more correct bytecode for casting Unit to other types 2015-03-25 17:51:04 +01:00
Pavel V. Talanov
9d618ca767 Replace OBJECT$ usages in code and test data 2015-03-25 18:28:01 +03:00
Pavel V. Talanov
ed218c473a Get rid of 'class object' usages in code and builtins
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00
Natalia Ukhorskaya
67f84c0f76 Update to IDEA 14.1 (141.177.4) 2015-03-25 17:44:35 +03:00
Natalia Ukhorskaya
a92022edcd Minor: replace deprecated function calls 2015-03-25 17:44:05 +03:00
Dmitry Jemerov
a33162ba46 add build-docs.xml to ant.xml 2015-03-25 15:32:43 +01:00
Dmitry Jemerov
a19fadf454 add Module.md to docs build script 2015-03-25 15:32:42 +01:00
Dmitry Jemerov
389498eb91 Merge pull request #621 from JetBrains/rr/yole/kt4142
Regression tests for some more obsolete issues in the JVM backend
2015-03-25 13:28:38 +01:00
max-kammerer
c35dbb2746 Merge pull request #617 from JetBrains/rr/yole/number-toint
when generating coercion, take into account the original type of the exp...
2015-03-25 15:19:05 +03:00
Ilya Gorbunov
a34e15e157 Rename methods: trimLeft/Right -> trimStart/End, padLeft/Right -> padStart/End 2015-03-25 03:26:31 +03:00
Ilya Gorbunov
25cfd36e7c drop, take: combine implementations for Collections, Lists and Iterables.
slice: predict length of resulting list.
2015-03-25 03:26:18 +03:00
Ilya Gorbunov
4a7918b0a1 Add takeLast method for String, lists and arrays.
Check the parameter n in drop, take and takeLast methods.
2015-03-25 03:26:06 +03:00
Ilya Gorbunov
05b5afcb94 Add removePrefix, removeSuffix, removeEnclosing methods.
Deprecate trimLeading/trimTrailing/trim(String) methods in favor of new ones.
2015-03-25 03:25:53 +03:00
Ilya Gorbunov
0484d3bf2f Imperative trim implementation to prevent double lambda expansion in inline function. 2015-03-25 03:25:40 +03:00
Ilya Gorbunov
5b2a5c78ca Fix js-stdlib compilation and tests. 2015-03-25 03:25:27 +03:00
Ilya Gorbunov
4c58f4ec20 Add removeRange method.
Breaking change in replaceRange(IntRange, String) method: the end index of the range now is included in the part being replaced.
2015-03-25 03:25:14 +03:00
Ilya Gorbunov
ba15e5b295 Trimming and padding methods.
Kinda breaking change: Char.isWhitespace treats non-breaking spaces as whitespace too to match the Unicode definition of whitespace.
2015-03-25 03:25:01 +03:00
Ilya Gorbunov
0580039ded Provide additional string conversion methods to match missing java.lang.String constructors.
Fixes KT-5019
2015-03-25 03:24:48 +03:00
Dmitry Jemerov
0467bba7a6 regression test for KT-5953 2015-03-24 21:05:23 +01:00
Dmitry Jemerov
f6093274ab regression test for KT-5395 2015-03-24 20:59:56 +01:00
Dmitry Jemerov
9d229ad271 regression test for KT-4259 2015-03-24 20:49:53 +01:00
Dmitry Jemerov
4f0cf2f918 regression test for obsolete issue KT-4142 2015-03-24 19:14:18 +01:00
Dmitry Jemerov
843298883f shuffle some code around to avoid JVM crash in tests 2015-03-24 19:08:41 +01:00
Dmitry Jemerov
20fbb814e4 remove abstraction which is no longer needed 2015-03-24 20:21:23 +03:00
Dmitry Jemerov
d2634eb7eb remove obsolete module script generator from JPS 2015-03-24 20:21:22 +03:00
Dmitry Jemerov
2767e789fb when generating coercion, take into account the original type of the expression 2015-03-24 18:01:56 +01:00
Mikhail Glukhikh
2bc124fa3d IO second review: empty File.subPath() allowed, OutputStream.bufferedWriter() added,
normalize(), startsWith(), endsWith() rewritten, LinesStream --> LinesSequence,
File.replaceBytes() / replaceText() rolled back to writeBytes() / writeText(),
some exception messages formulated more clearly, refactorings, comments,
relativeTo() slightly optimized, additional tests
2015-03-24 19:52:19 +03:00
Mikhail Glukhikh
88733d34eb Additional fix of String.getRootName() for network names, relevant test fixes 2015-03-24 19:40:24 +03:00
Mikhail Glukhikh
5b636eef7b Kotlin I/O review/M11 fixes: Stream --> Sequence, recurse() returned back,
additional helpers like File.bufferedReader() and String.byteInputStream(),
copyRecursively / deleteRecursively were rewritten using FileTreeWalk,
FilePathComponents introduced as a replacement of FileIterator,
classes / methods / properties permissions fixed, Linux specific things,
resolveSibling rewritten using FilePathComponents
2015-03-24 19:40:21 +03:00
Denis Mekhanikov
f560677b15 Kotlin I/O new features: relativeTo, copyTo, copyRecursively, deleteRecursively, file tree walkers,
file component iterators, file roots, startsWith, endsWith, subPath, normalize, replaceBytes, replaceTest,
additional tests and comments
2015-03-24 19:40:19 +03:00
Michael Nedzelsky
dae42f7c76 fix EA-66819 - IOE: VirtualDirectoryImpl.contentsToByteArray
Changes: do not try to read content for virtual file in case it is really a directory
2015-03-24 18:58:42 +03:00
Dmitry Jemerov
5370073c05 parameters in KDoc take precedence over other identifiers 2015-03-24 16:05:40 +01:00
Yan Zhulanow
900c67de4e Replicate idea-version from the main plugin.xml to the android-idea-plugin plugin.xml 2015-03-24 16:43:45 +03:00
Alexey Sedunov
3e429c4b00 Change Signature: Fix behavior of "Receiver" checkbox 2015-03-24 16:41:10 +03:00
Alexey Sedunov
461ae25239 Find Usages: Properly select primary element for Find Usages Dialog. Avoid delegating handler when there is only one primary element
#KT-7048 Fixed
2015-03-24 16:41:09 +03:00
Alexey Sedunov
a57be6dcab Change Signature: Do not report conflict when parameter name clashes with suggested name of the receiver 2015-03-24 16:41:08 +03:00
Alexey Sedunov
0eda6c88b9 Quick-Fixes: Fix signature configuration for extension functions
#KT-7019 Fixed
2015-03-24 16:41:07 +03:00
Alexey Sedunov
93f00db871 Extraction Engine: Consider declarations when comparing descriptors
#KT-6960 Fixed
2015-03-24 16:41:05 +03:00
Alexey Sedunov
502b67ecc0 Extract Function: Support multi-file tests 2015-03-24 16:41:04 +03:00
Alexey Sedunov
16a4dbd692 Quick-Fixes: Do not add 'abstract' modifier to anonymous objects
#KT-6656 Fixed
2015-03-24 16:41:03 +03:00
Alexey Sedunov
1ed2c82008 Quick-Fixes: Approximate non-denotable type with nearest denotable supertype
#KT-5915 Fixed
2015-03-24 16:41:01 +03:00
Alexey Sedunov
a2162810ff Quick-Fixes: Drop unnecessary parentheses when simplifying cast expressions
#KT-6501 Fixed
2015-03-24 16:40:59 +03:00
Alexey Sedunov
71a5e09a0b Quick-Fixes: Support USELESS_CAST diagnostic in "Remove cast" quick-fix
#KT-6422 Fixed
2015-03-24 16:40:58 +03:00
Alexey Sedunov
f5107be315 Quick-Fixes: Support "Change function return type" quick-fix for non-local returns
#KT-6910 Fixed
2015-03-24 16:40:57 +03:00
Michael Nedzelsky
842eaa86a4 merge serialization.js module into js.serializer 2015-03-24 15:13:45 +03:00
Dmitry Jemerov
e550dba033 Merge remote-tracking branch 'origin/master' 2015-03-23 19:00:33 +01:00
Dmitry Jemerov
06ac8b89b8 Merge branch 'rr/yole/module-md-rewrite' 2015-03-23 19:00:17 +01:00
Dmitry Jemerov
bd1a116c9e add documentation for recently added packages 2015-03-23 18:52:27 +01:00
Alexander Udalov
0fe0235525 Improve built-in initialization error message 2015-03-23 17:15:06 +03:00
Dmitry Jemerov
408f7da0c5 correct indentation after pressing Enter in KDoc tag
#KT-7044 Fixed
2015-03-23 15:06:59 +01:00
Alexey Tsvetkov
03f0c6ede7 JS: added test for callable reference as stdlib inline function argument 2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
1557111277 JS: fix issues with js() usage in inline functions 2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
5ff5cea17a JS: report error when js() produces empty AST 2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
eb4f6b8a1e JS: generate shorter tag for inline functions 2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
8be3628074 JS: removed comma expression decomposition from InlineMetadata
There are used to be two inline tags (corresponding to start, end of inline function).
An expression like "startTag, function, endTag" was parsed into comma expression, then decomposed.
Now, it's just one tag at start, and parser can read function, then stop.
Thus, there is no need to decompose comma expressions.
2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
c7e8f52faf JS: use one tag for inlining 2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
e83b253b3e JS: renamed JsParser->JsAstMapper 2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
b5797eb15b JS: added tests for recursion cycle in inline functions 2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
24f2121f9b JS: report error from backend, when inline function is called recursively 2015-03-23 16:43:48 +03:00
Alexander Udalov
7e69a5ac9a Don't create KProperty instance for synthetic field
#KT-5759 Fixed
2015-03-23 16:30:26 +03:00
Alexander Udalov
a5a60b6917 Move code from file named util.kt to meaningful place 2015-03-23 16:30:25 +03:00
Alexander Udalov
9a041136f2 Make ClassId's relative class name FqName instead of FqNameUnsafe
It was FqNameUnsafe in times when there were classes without identifier names,
specifically class objects with names like '<class-object-for-...>'
2015-03-23 16:30:25 +03:00
Alexander Udalov
31554b9fa3 Introduce ClassId.getShortClassName() for convenience 2015-03-23 16:30:24 +03:00
Alexander Udalov
9cf0720925 Fix KClass.simpleName for local classes 2015-03-23 16:30:24 +03:00
Alexander Udalov
aaef2d42cd Do not report "no reflection" inspection in JS modules
#KT-7087 Fixed
2015-03-23 15:54:34 +03:00
Alexander Udalov
3335752462 Do not report "no reflection" inspection where reflection is not used
#KT-7059 Fixed
2015-03-23 15:54:33 +03:00
Dmitry Jemerov
00697bf764 use new structure for module.md 2015-03-23 13:10:16 +01:00
Zalim Bashorov
d569ea5974 JS frontend: added diagnostic about secondary constructors not supported yet. 2015-03-23 13:52:56 +03:00
Alexander Udalov
9c88f9e744 Delete buildGrammarLexer.xml from .idea/ant.xml 2015-03-23 13:01:12 +03:00
Alexander Udalov
06537c5b14 Clarify 'class_fq_name` field in jvm_descriptors.proto
Regenerate protobuf files with protoc 2.5.0
2015-03-23 12:21:38 +03:00
Alexander Udalov
5d0af36432 Minor, pull equals/hashCode/toString up to DescriptorBasedProperty 2015-03-23 12:21:24 +03:00
Alexander Udalov
e60c299def Fix warnings in module 'reflection.jvm', clarify some code 2015-03-23 12:21:17 +03:00
Alexander Udalov
4e7d4f9340 Fix ReplInterpreterTestGenerated locally 2015-03-23 12:21:07 +03:00
Alexander Udalov
73f06baa90 Drop temporary bootstrapping hack 2015-03-23 12:20:45 +03:00
Alexey Sedunov
e0a394ec62 Change Signature: Replace isConstructor flag with enum. Fix signature preview 2015-03-21 03:29:04 +03:00
Alexey Sedunov
d19e6337a3 Find Usages: Support of secondary constructors and delegation calls 2015-03-21 03:29:03 +03:00
Alexey Sedunov
312a1db273 Call Hierarchy: Support secondary constructors 2015-03-21 03:29:01 +03:00
Alexey Sedunov
fe553edfb4 References Search: Add extension which looks for constructor usages in delegation calls 2015-03-21 03:29:00 +03:00
Alexey Sedunov
b45965b290 Safe Delete: Support secondary constructors 2015-03-21 03:28:58 +03:00
Alexey Sedunov
cefd8b43a0 Safe Delete: Add test for primary constructor with usages in delegation calls 2015-03-21 03:28:57 +03:00
Alexey Sedunov
83e23aafe5 Fix retrieval of class constructor 2015-03-21 03:28:56 +03:00
Alexey Sedunov
5c7debbf88 Change Signature: Support refactoring of primary/secondary constructor by delegation call reference 2015-03-21 03:28:54 +03:00
Alexey Sedunov
173a28a25e Change Signature: Add tests for secondary constructors and delegation calls 2015-03-21 03:28:53 +03:00
Michael Nedzelsky
d01cc8ac55 fix navigation is Kotlin/Java with Kotlin/Javascript modules 2015-03-21 03:19:46 +03:00
Ilya Gorbunov
0eabb6c8d4 Fix js test results interpretation. 2015-03-20 23:13:07 +03:00
Zalim Bashorov
1b530887cd Minor: fix testdata 2015-03-20 21:23:31 +03:00
Zalim Bashorov
aaa7f6d5e4 JS frontend: added diagnostic about non-toplevel classifiers are unsupported yet. 2015-03-20 21:23:31 +03:00
Zalim Bashorov
1bf7610751 Minor in JS frontend: fix compiler warnings. 2015-03-20 21:23:31 +03:00
Zalim Bashorov
68619be023 Minor in JS frontend: extract native annotation checkers to separate file. 2015-03-20 21:23:31 +03:00
Zalim Bashorov
8673f95dc5 AnnotationChecker -> DeclarationChecker 2015-03-20 21:23:30 +03:00
Evgeny Gerashchenko
1d703c39ef Enabled "Invert if condition" intention. It was erroneously disabled one year ago. 2015-03-20 19:34:19 +03:00
Evgeny Gerashchenko
c652cc16dc Classified usages as type parameters correctly.
#KT-7047 fixed
2015-03-20 19:34:18 +03:00
Evgeny Gerashchenko
51fb4910a1 Classified usages in up casts correctly.
#KT-7047 fixed
2015-03-20 19:34:18 +03:00
Evgeny Gerashchenko
e752dd0a80 Classified usages in "is" of when entry correctly.
#KT-7047 fixed
2015-03-20 19:34:17 +03:00
Evgeny Gerashchenko
f7883fb1df Added quick fix for "Unused receiver parameter". 2015-03-20 19:34:16 +03:00
Evgeny Gerashchenko
1946360a80 Introduced "Unused receiver parameter" inspection. 2015-03-20 19:34:16 +03:00
Evgeny Gerashchenko
edd51908ec KT-7021 Don't mark companion object as unused if some stuff from it is used
#KT-7021 fixed
2015-03-20 19:34:15 +03:00
Evgeny Gerashchenko
efccde2c0b Finding implicit usages of companion object in containing class. 2015-03-20 19:34:15 +03:00
Dmitry Jemerov
64937f0ccf Merge pull request #607 from JetBrains/delete-line-suffix
fix source links in generated API docs
2015-03-20 17:23:41 +01:00
Dmitry Jemerov
de7fb22100 fix path mapping for source links 2015-03-20 17:00:58 +01:00
Dmitry Jemerov
75fe342969 fix source links in generated API docs
#KT-7062 Fixed
2015-03-20 16:41:59 +01:00
Dmitry Jemerov
b37af0b9e7 Merge pull request #603 from JetBrains/rr/yole/delete-old-website
delete old Kotlin website and old API generation target
2015-03-20 15:28:47 +01:00
Nikolay Krasko
d7b150752c Cover only one idea branch in plugin compatible check 2015-03-20 17:19:22 +03:00
Andrey Breslav
a389d694d8 Merge pull request #605 from JetBrains/rr/yole/delete-confluence-grammar-generator
delete old grammar generator
2015-03-20 15:16:33 +03:00
Nikolay Krasko
12406ec11f Update to idea 141.175.3 2015-03-20 14:11:31 +03:00
Nikolay Krasko
2e657d0d34 Use lazy initialization for built-ins in tests 2015-03-20 14:11:30 +03:00
Nikolay Krasko
126f38d79c Initialize builtins with ResolveSession to avoid counting bodies in LazyTopDownAnalyzer 2015-03-20 14:11:29 +03:00
Dmitry Jemerov
bed63c8321 delete old grammar generator 2015-03-20 12:08:05 +01:00
Andrey Breslav
2c04f900ef Merge pull request #604 from JetBrains/rr/yole/kt7049
add some missing elements to Kotlin grammar
2015-03-20 14:05:24 +03:00
Dmitry Jemerov
888b655cd6 add some missing elements to Kotlin grammar
#KT-7049 Fixed
2015-03-20 11:54:16 +01:00
Dmitry Jemerov
a6e5c0a76e Merge pull request #602 from JetBrains/rr/yole/build-docs
build script to generate standard library documentation with Dokka
2015-03-20 10:05:29 +01:00
Natalia Ukhorskaya
8bcc638bec Do not analyze all files in package in JetPositionManager 2015-03-20 09:41:32 +03:00
Dmitry Jemerov
15c253e54f remove obsolete modules from pom.xml 2015-03-19 19:59:47 +01:00
Dmitry Jemerov
57bb7236cc delete old Kotlin website and old API generation target 2015-03-19 16:37:02 +01:00
Dmitry Jemerov
17fddbac18 change target path 2015-03-19 15:43:06 +01:00
Dmitry Jemerov
ce39a27869 build script to generate standard library documentation with Dokka 2015-03-19 15:28:35 +01:00
Dmitry Jemerov
a24f910b5a Merge pull request #601 from JetBrains/rr/yole/suppress-internal
Suppress documentation for the kotlin.internal package
2015-03-19 11:21:54 +01:00
Dmitry Jemerov
50c4a88661 suppress documentation for HashPMap 2015-03-19 10:41:58 +01:00
Dmitry Jemerov
e9ffd589fc @suppress for APIs in kotlin.reflect.jvm.internal 2015-03-19 10:33:31 +01:00
Dmitry Jemerov
cffb80c86a Suppress documentation for the kotlin.internal package 2015-03-19 09:58:38 +01:00
Andrey Breslav
c7ab333fa8 JPS test data fixed for JS 2015-03-18 21:19:15 +03:00
Denis Zharkov
eefea26d54 Recovery for initializer if no LBRACE
- If no LBRACE after 'init' keyword parse initializer without body
- Made getBody() nullable, appropriate checks added
2015-03-18 19:59:25 +03:00
Denis Zharkov
f4ed05cd90 Update specs formatting 2015-03-18 19:59:25 +03:00
Denis Zharkov
6f60bfad84 Fix "Make supertype open" quickfix in case of using secondary ctor
#KT-7002 Fixed
2015-03-18 19:59:25 +03:00
Denis Zharkov
3e0c6fc6a2 Add quickfix "Add 'init' keyword in whole project" 2015-03-18 19:59:25 +03:00
Denis Zharkov
df23ff3473 Improve AddInitKeyword quickfix
- Extract quickfix method
- Delete redundant semicolon
- Do not replace initializer PSI element
2015-03-18 19:59:25 +03:00
Denis Zharkov
13f933693f Setup spacing rules for anonymous initializers 2015-03-18 19:59:25 +03:00
Denis Zharkov
bd5dbb665e Fix header scope for secondary constructors
Add companion object's scope and nested classes

 #KT-6996 fixed
2015-03-18 19:59:24 +03:00
Michael Nedzelsky
977b743f3d JS: always generate metadata while compiling from idea 2015-03-18 19:43:02 +03:00
Michael Bogdanov
ed62e4972f Temporary disable smap generation 2015-03-18 19:00:24 +03:00
Michael Bogdanov
6e55ea6480 Skip smap generation if there is no source information
#KT-7022 Fixed
2015-03-18 18:49:18 +03:00
Yan Zhulanow
c945a53eec Move AndroidPsiTreeChangePreprocessor to android-idea-plugin module 2015-03-18 17:51:58 +03:00
Stanislav Erokhin
0b76dbb492 Create DeprecatedLambdaSyntaxFix 2015-03-18 17:10:12 +03:00
Pavel V. Talanov
a5a6ecd1ec Fix NPE from RenameOnSecondaryConstructorHandler 2015-03-18 16:34:03 +03:00
Stanislav Erokhin
43e24f6b0d Fixed test data for new lambda syntax 2015-03-18 16:06:44 +03:00
Stanislav Erokhin
371908a280 Temporary added DEPRECATED_LAMBDA_SYNTAX to tests.
It will be fixed soon.
2015-03-18 16:06:44 +03:00
Stanislav Erokhin
47e8b1e77c Create warning for old lambda syntax. 2015-03-18 16:06:44 +03:00
Stanislav Erokhin
c24c3daf54 Allowed shorthand parameter list with type reference in lambda. 2015-03-18 16:06:44 +03:00
Stanislav Erokhin
7a8341d0f1 Added parser test for function with initializer. 2015-03-18 16:06:44 +03:00
Stanislav Erokhin
446816e3db Created automatic labeling of function expression. 2015-03-18 16:06:44 +03:00
Stanislav Erokhin
4eac3f3f0e Remove useless casts after fixing subtyping for star projections 2015-03-18 16:06:44 +03:00
Alexander Udalov
8788bc7cc6 Fix classpath for ant tests 2015-03-18 16:06:44 +03:00
Nikolay Krasko
e80e033a1c Fixes after review: better code in splitting bundled runtime version 2015-03-18 15:38:19 +03:00
Natalia Ukhorskaya
77139f20b9 Inline ${protobuf.version} into kotlin-reflect pom.xml (it couldn't be resolved from gradle) 2015-03-18 15:36:19 +03:00
Evgeny Gerashchenko
2fcee37b58 Temporarily disabled "Unused symbol" for companion objects. 2015-03-18 15:20:45 +03:00
Evgeny Gerashchenko
2aeccc7011 Expanded incremental compilation tests with cache version change. 2015-03-18 15:20:45 +03:00
Alexander Udalov
2f001ca696 Pack built-ins metadata to kotlin-runtime Maven artifact
This fixes reflection usage against Maven's kotlin-reflect
2015-03-18 14:38:26 +03:00
Pavel V. Talanov
bb2f08635c default -> companion: Minor: fix comment 2015-03-18 14:35:54 +03:00
Pavel V. Talanov
41b65205b0 default -> companion: fix message for quick fix 2015-03-18 14:35:53 +03:00
Yan Zhulanow
e69a1d6aba Zip KotlinAndroidExtensions artifact 2015-03-18 13:09:49 +03:00
Natalia Ukhorskaya
5cea6cfb45 Extra variables: check range before create 2015-03-18 11:03:36 +03:00
Alexey Sedunov
429a50ab87 Safe Delete: Support secondary constructors and delegation calls 2015-03-18 10:56:37 +03:00
Denis Zharkov
e05cbf5e9f Support secondary constructors and delegation calls in Change Signature.
Initial support of Find Usages
2015-03-18 10:56:36 +03:00
Denis Zharkov
488754de7d Move declarationsSearch package from idea to idea-analysis
It will be used in later commits by idea-analysis code
2015-03-18 10:56:35 +03:00
Denis Zharkov
0debd1ce6f Make IDE parts using light methods work with JetFunction 2015-03-18 10:56:34 +03:00
Alexey Sedunov
7d278f2f42 Use class name as secondary constructor name 2015-03-18 10:56:33 +03:00
Denis Zharkov
c0c1273388 Prohibit rename refactoring on secondary ctor
Make custom handler that runs when caret is on secondary ctor
but do nothing because constructors don't have name.

It's neccessary because otherwise default handler will be ran
with proposition to rename class.

Also note, that we do not run this handler when
caret is on constructor's body or argument's list to allow renaming
inner declarations.
2015-03-18 10:56:32 +03:00
Denis Zharkov
25de64c6ab Support class rename in place of secondary ctor call 2015-03-18 10:56:31 +03:00
Denis Zharkov
4b564fcc51 Do not show "Convert to extension" intention for secondary constructors
#KT-6969 Fixed
2015-03-18 10:56:30 +03:00
Denis Zharkov
d1308ebf84 Don't report unused symbol if secondary constructor used
#KT-6997 Fixed
2015-03-18 10:56:29 +03:00
Denis Zharkov
c6290efbe2 Fix origin of secondary constructors 2015-03-18 10:56:28 +03:00
Dmitry Jemerov
615258877a Merge pull request #595 from JetBrains/rr/yole/render-markdown
render Markdown and support link navigation in KDoc comments
2015-03-18 08:39:35 +01:00
Michael Nedzelsky
e3bd99d510 JS: fix clash between sources and metadata in one library 2015-03-18 09:39:34 +03:00
Michael Nedzelsky
577921d4f7 add JsHeaderLibraryDetectionUtils.isJsHeaderLibraryWithSources 2015-03-18 09:39:31 +03:00
Michael Nedzelsky
6f0ee2ed94 JetSourceNavigationHelper: support for Kotlin/Javascript navigation to sources 2015-03-18 09:39:29 +03:00
Michael Nedzelsky
19950fcc60 DecompiledNavigationUtils: support navigation for Kotlin/Javascript 2015-03-18 09:39:27 +03:00
Michael Nedzelsky
803e95364c add KotlinJavascriptMetaFileDecompiler and support for .meta files 2015-03-18 09:39:25 +03:00
Michael Nedzelsky
5b6849225c DecompiledTextFactory: add buildDecompiledTextFromJSMetadata 2015-03-18 09:39:22 +03:00
Michael Nedzelsky
6b94962f77 add JsMetaFileUtils 2015-03-18 09:39:20 +03:00
Michael Nedzelsky
daaa99989b IdeaModuleInfos: add LIBRARY_PREFIX constant 2015-03-18 09:39:18 +03:00
Michael Nedzelsky
7a00c3cddd KotlinClsStubBuilder class: final -> open 2015-03-18 09:39:15 +03:00
Michael Nedzelsky
4538324b96 add serialization.js compiler output to kotlin-plugin artifact 2015-03-18 09:39:13 +03:00
Michael Nedzelsky
21ef6d5771 temporary solution for all classes completion for Kotlin/Javascript libraries 2015-03-18 09:39:11 +03:00
Michael Nedzelsky
094bd1da4b JsAnalyzerFacade: support for metadata 2015-03-18 09:39:09 +03:00
Michael Nedzelsky
b0b90ff6a9 add KotlinJavascriptSerializerTest 2015-03-18 09:39:06 +03:00
Michael Nedzelsky
33cdf8c969 JS backend: add cli test for creating metadata and ant test for library with metadata 2015-03-18 09:39:04 +03:00
Michael Nedzelsky
0050c9888d fix KotlinJpsBuildTest 2015-03-18 09:39:02 +03:00
Michael Nedzelsky
1a4a7f6715 build.xml: remove module name from js-stdlib manifest file 2015-03-18 09:39:00 +03:00
Michael Nedzelsky
a1ee616769 build.xml: create and archive meta information for js-stdlib 2015-03-18 09:38:58 +03:00
Michael Nedzelsky
7ebfd37c33 JS backend: support for reading metadata 2015-03-18 09:38:55 +03:00
Michael Nedzelsky
3bf14518e8 JS backend: add -meta-info command line option for cli compiler 2015-03-18 09:38:53 +03:00
Michael Nedzelsky
711501af56 add new module js.serializer 2015-03-18 09:38:51 +03:00
Michael Nedzelsky
af4afaba4a DescriptorUtils: add getPackagesFqNames 2015-03-18 09:38:49 +03:00
Michael Nedzelsky
e0c0012a20 add serialization.js module 2015-03-18 09:38:47 +03:00
Michael Nedzelsky
9be62de964 add FlexibleTypeCapabilitiesDeserializer.Dynamic object 2015-03-18 09:38:45 +03:00
Michael Nedzelsky
a7ba93c1d1 add flexibleTypeCapabilitiesDeserializer field to BuiltinsPackageFragment 2015-03-18 09:38:42 +03:00
Michael Nedzelsky
77e9ab8ad7 JS: FunctionReader: remove unnecessary check for libraries 2015-03-18 09:38:40 +03:00
Michael Nedzelsky
69417903e2 kotlin_lib_ecma5.js: add metadata function 2015-03-18 09:38:38 +03:00
Michael Nedzelsky
a6c21fbe85 JS backend: LibraryUtils: add support for load and write metadata 2015-03-18 09:38:36 +03:00
Michael Nedzelsky
c927b69103 DescriptorSerializer: add skip argument to packageProto method 2015-03-18 09:38:33 +03:00
Michael Nedzelsky
930ecb9cf9 move BuiltInsSerializerExtension from builtins-serializer to serialization module 2015-03-18 09:38:25 +03:00
Michael Bogdanov
d765d899a7 Fix NPE with origin calculation 2015-03-18 09:22:56 +03:00
Zalim Bashorov
0ddec2d9b5 Minor in JS backend: throw IllegalStateException instead of UnsupportedOperationException inside CallCase 2015-03-18 08:55:56 +03:00
Zalim Bashorov
8421a15521 JS backend: report diagnostic when try to get referenece on builtin members instead of crash with Exception. 2015-03-18 08:55:56 +03:00
Zalim Bashorov
975c4ffab5 JS backend: report diagnostic for class literal(Foo::class) instead of crash with Exception. 2015-03-18 08:55:56 +03:00
Zalim Bashorov
8d6cbb671a JS backend: report diagonstic message for unsupported element instead of throw exception.
#KT-6507 Fixed
2015-03-18 08:55:56 +03:00
Alexander Udalov
593613609f Document JVM-specific reflection API 2015-03-17 23:39:15 +03:00
Alexander Udalov
59d3731b93 Document generated K*Functions 2015-03-17 23:39:14 +03:00
Alexander Udalov
e34b3c5298 Document interfaces in package kotlin.reflect 2015-03-17 23:39:14 +03:00
Alexander Udalov
fcdd5a872c Rename dispatchReceiver -> instance, T -> E 2015-03-17 23:39:14 +03:00
Alexander Udalov
a4f9fe1eaa Filter out invisible fakes in KClass.properties
A user will rarely need those at the moment, and there's currently no other way
to let him filter out them by himself
2015-03-17 23:39:13 +03:00
Alexander Udalov
d3abd54b06 Add 'val KClass.declaredProperties', make getProperties a property 2015-03-17 23:39:13 +03:00
Alexander Udalov
4a61f2751c Finish off KObject
The ABI version was increased to 22 in 94937a3
2015-03-17 23:39:13 +03:00
Denis Zharkov
36665fe3b8 Change logic of constructor delegation call resolution
- If class has type arguments (A<T1,..>) then
  resolve it's delegation call to `this` as for expression A<T1, ..>()
  like type arguments are explicitly specified.

- Same logic works for `super` delegation calls.

- It could be just enough to substitute all candidates before resolve
  but diagnostic messages looks more correct when substitution is
  performed within CandidateResolver.performResolutionForCandidateCall
  because it works the same way as when resolving A<T1, ..>().

 #KT-6992 Fixed
 #KT-6993 Fixed
 #KT-6994 Fixed
2015-03-17 23:18:35 +03:00
Denis Zharkov
e37cf6b6a1 Minor, change method contract to @NotNull 2015-03-17 23:18:35 +03:00
Denis Zharkov
52ba8333dc Refactor delegation call resolution
- Move resolution logic from BodyResolver to CallResolver
- Call resolveConstructorDelegationCall explicitly without resolveFunctionCall
- Drop dead condition and unused method
2015-03-17 23:18:35 +03:00
Denis Zharkov
9cecd69a9e Drop unneeded condition that leads to error
This check is obsolete but leads to problems.

It appears when resolving recursive calls (see sameTypeParameterUse.kt):

`foo<R>(x: R, y: R)` within call `foo<R>(x, "")` after substitution
has R as type of it's second argument, and when checking value arguments,
x is not checked because supposed to be dependent on type parameter of candidate
(that is effectively false), so there are two successful candidates
in resolution results and wrong OVERLOAD_RESOLUTION_AMBIGUITY error.
2015-03-17 23:18:34 +03:00
Denis Zharkov
682f8a3110 Use original constructor descriptor when searching cycles 2015-03-17 23:18:34 +03:00
Denis Zharkov
6c46606f2b Fix constructors redeclaration message
#KT-6966 Fixed
2015-03-17 23:18:34 +03:00
Denis Zharkov
22425de5cb Setup spacing rules for secondary constructors
#KT-6968 Fixed
2015-03-17 23:18:34 +03:00
Denis Zharkov
9e5192e0e3 Prohibit val/vars/modifiers on secondary constructor parameter
#KT-6962 Fixed
2015-03-17 23:18:33 +03:00
Dmitry Jemerov
853fce4b71 render Markdown and support link navigation in KDoc comments 2015-03-17 19:55:49 +01:00
Nikolay Krasko
99fb75c943 Consider bundled library version to be plugin version without identifier parts 2015-03-17 20:44:18 +03:00
Zalim Bashorov
8054f18287 Minor in JS backend: add @Nullable to JsNameRef#getQualifier and JsNameRef#getSymbol. 2015-03-17 19:00:51 +03:00
Zalim Bashorov
d6c70cc143 JS backend: added @Nullable to JsNameRef#getName and added assertion to get more information for reproduce #EA-66032 2015-03-17 19:00:50 +03:00
Zalim Bashorov
7d3094a0f1 JS backend: use FqNameUnsafe when generate delegateName to avoid problems with special names.
#EA-64029 Fixed
2015-03-17 19:00:50 +03:00
Pavel V. Talanov
dfa8fbcb0d default -> companion: Replace missed default in error message 2015-03-17 18:26:59 +03:00
Yan Zhulanow
e56d67f4b8 Android synthetic properties are now properties with flexible type 2015-03-17 17:37:14 +03:00
Yan Zhulanow
01c79c6d00 Make Android bytecode shape tests more readable 2015-03-17 17:35:24 +03:00
Yan Zhulanow
15f8ba811b Return moduleInfo UserDataProperty if it was explicitly set 2015-03-17 17:35:24 +03:00
Yan Zhulanow
b04d14f79d Move plugin-related String constants to the object 2015-03-17 17:35:23 +03:00
Pavel V. Talanov
a50b218c6a default -> companion: Replace some missed usages of "isDefault" 2015-03-17 17:10:53 +03:00
Evgeny Gerashchenko
3ec6ffc906 KT-7007 Go to declaration doesn't work inside enum class
#KT-7007 fixed
2015-03-17 16:10:51 +03:00
Pavel V. Talanov
94937a39be Increase ABI and stub versions 2015-03-17 15:52:41 +03:00
Pavel V. Talanov
06916d98c6 default -> companion: replace all mentions of default and default object 2015-03-17 15:47:39 +03:00
Pavel V. Talanov
a0783757e8 Delete libraries/sandbox folder with old experimental stuff 2015-03-17 15:46:52 +03:00
Pavel V. Talanov
498bb89358 Delete docs folder with old confluence documentation and talks presentations 2015-03-17 15:46:52 +03:00
Pavel V. Talanov
2a6facaef6 default -> companion: default object -> class object in project code, builtins and libs code 2015-03-17 15:46:48 +03:00
Alexander Udalov
444b461ba7 Run preloader in new-kotlinc, fix reflect->runtime class-path reference 2015-03-17 15:46:47 +03:00
Dmitry Jemerov
9ea0c999fc quick doc: use check instead of assertion when getting descriptor for declaration (EA-62592) 2015-03-17 12:48:58 +01:00
Zalim Bashorov
5e782dd547 Switch to the new(right) API for register extension points and extensions. 2015-03-17 14:11:00 +03:00
Michael Bogdanov
11ce50f0d6 Tests for obsolete KT-6434: android compile error: local variable type mismatch
#KT-6434 Obsolete
2015-03-17 11:39:28 +03:00
Alexander Udalov
4b4f6a713a Implement "reflection not found" inspection and quick fix 2015-03-16 20:54:10 +03:00
Alexander Udalov
094fa2f92b Report error on using reflection without kotlin-reflect.jar in classpath
Should be a warning because strictly speaking, the codegen doesn't need it
during the compilation. It's an error at the moment only to let all clients of
Kotlin reflection know that they must include kotlin-reflect.jar in the
classpath
2015-03-16 20:40:49 +03:00
Alexander Udalov
9d6f4e99a1 Move reflection interfaces to module 'builtins'
They are considered to be built-ins everywhere anyway
2015-03-16 20:29:39 +03:00
Nikolay Krasko
48ce8d5270 Add additional logging for context and element (EA-64785) 2015-03-16 20:16:26 +03:00
Nikolay Krasko
8c5109d819 Generate descriptor for trait constructor. Exception is thrown otherwise...
EA-38416, EA-65189, EA-60850
2015-03-16 20:16:25 +03:00
Yan Zhulanow
6fb5dacde4 Fix a "property not found" exception in Gradle 2.x 2015-03-16 18:56:42 +03:00
Yan Zhulanow
6d9d3f00a2 Fix kotlin-android-extensions artifact name in subplugin 2015-03-16 18:56:41 +03:00
Michael Bogdanov
7d743f56ce Rollback default object to class one 2015-03-16 18:52:05 +03:00
Michael Bogdanov
90651e4b28 Do nothing if there is no smap data on anonymous object transfromation during fun inline 2015-03-16 18:52:05 +03:00
Michael Bogdanov
0999cd99e3 Inline iterator test 2015-03-16 18:52:05 +03:00
Michael Bogdanov
596c5b8d41 Remove lineNumber assertion: it performed in getOrCreateSourceMapper 2015-03-16 18:52:04 +03:00
Michael Bogdanov
ac8e98572e Clean code 2015-03-16 18:52:04 +03:00
Michael Bogdanov
3a5b55fc61 Mute some tests 2015-03-16 18:52:04 +03:00
Michael Bogdanov
5c6b9b1bc6 New smap test 2015-03-16 18:52:04 +03:00
Michael Bogdanov
57cf4ac6c0 New test framework 2015-03-16 18:52:04 +03:00
Michael Bogdanov
7f788f86fe Return short name in test LightVirtualFile.getName() 2015-03-16 18:52:04 +03:00
Michael Bogdanov
50c9c93f37 Generate additional NOP in inline call to keep linenumbers 2015-03-16 18:52:03 +03:00
Michael Bogdanov
b58cdae0c5 Added extra stepping filter 2015-03-16 18:52:03 +03:00
Michael Bogdanov
126de2ce27 Fixed container class name detection 2015-03-16 18:52:02 +03:00
Michael Bogdanov
72a3d5538f Update "sourcePath" and "availableStrata" implementations in mock objects 2015-03-16 18:52:02 +03:00
Michael Bogdanov
bc2261ea3b Added message for assertion 2015-03-16 18:52:02 +03:00
Michael Bogdanov
ea2f9e91e9 Test fix - update and review required 2015-03-16 18:52:01 +03:00
Michael Bogdanov
554fd8b1c6 Skip line offset on out of range line numbers 2015-03-16 18:52:01 +03:00
Michael Bogdanov
d5f19eaee4 Fix InsStream 2015-03-16 18:52:01 +03:00
Michael Bogdanov
ad746b7fb4 Fix noDataException warning 2015-03-16 18:52:01 +03:00
Michael Bogdanov
acccfcf32e Support MultiRequestPositionManager 2015-03-16 18:52:01 +03:00
Michael Bogdanov
a4117360a2 Smap refactorings 2015-03-16 18:52:01 +03:00
Michael Bogdanov
52999afc4a FqName to ClassId 2015-03-16 18:52:00 +03:00
Michael Bogdanov
a7183f6e53 Source mapping generation on code compilation 2015-03-16 18:52:00 +03:00
Michael Bogdanov
99aa57b432 Visit debug info for compiled inline functions 2015-03-16 18:52:00 +03:00
Michael Bogdanov
41e4b1ce9b Set proper call element 2015-03-16 18:52:00 +03:00
Yan Zhulanow
b0125a3626 Fix compiler plugin cli tests with colons in .args on Windows 2015-03-16 17:32:17 +03:00
Natalia Ukhorskaya
7955504089 Android tests: remove filesWithStdlib because name of folder can be used for this 2015-03-16 14:45:50 +03:00
Natalia Ukhorskaya
51bc9d8fd8 Debugger: do not log ProcessCanceledException. Show error message fo WMDisconnectedException 2015-03-16 14:45:49 +03:00
Natalia Ukhorskaya
efb0061067 Android: change package of extension point after moving classes 2015-03-16 14:45:48 +03:00
Natalia Ukhorskaya
6d7cab0335 Debugger: log error with attachments 2015-03-16 14:45:48 +03:00
Natalia Ukhorskaya
50c535de85 Debugger: Alt + click on variable name in declaration should open a popup with it's value
#KT-6875 Fixed
2015-03-16 14:45:47 +03:00
Nikolay Krasko
9c51ea6583 Avoid getAccessors() call because of changes not available in build server 2015-03-16 14:26:35 +03:00
Evgeny Gerashchenko
5a262b976e Fixed overridden/implemented line markers in abstract classes. 2015-03-16 14:11:42 +03:00
Evgeny Gerashchenko
22a41e8012 Introduced category for default object usages. 2015-03-16 14:11:41 +03:00
Evgeny Gerashchenko
510974e07c Supported renaming default objects with default names. 2015-03-16 14:11:41 +03:00
Evgeny Gerashchenko
ccd1701f78 Supported renaming of default object. Named only objects are supported
yet.
2015-03-16 14:11:39 +03:00
Evgeny Gerashchenko
3a8ded5b58 Finding class by class id instead of fq name in rename tests. 2015-03-16 14:11:38 +03:00
Evgeny Gerashchenko
c875584d0c Supported default objects in unused symbol inspection. 2015-03-16 14:11:38 +03:00
Evgeny Gerashchenko
70a925317a Minor. Replaced usage of deprecated method. 2015-03-16 14:11:37 +03:00
Evgeny Gerashchenko
9bcf9dceef Supported default objects in class usages. 2015-03-16 14:11:37 +03:00
Evgeny Gerashchenko
8874ad2c96 Minor. Better code in method. 2015-03-16 14:11:36 +03:00
Valentin Kipyatkov
569e4a68ae Support for secondary constructors in j2k 2015-03-15 22:30:19 +01:00
Alexander Udalov
b44dbe6ca2 Revert incorrect change to .idea/compiler.xml 2015-03-14 15:25:30 +03:00
Alexey Sedunov
df568e6439 Change Signature: Do not show visibility box for local functions
#KT-5949
2015-03-13 23:17:00 +03:00
Alexey Sedunov
40799a0a43 PSI Unifier: Unify references which correspond to the same declaration
#KT-5996 Fixed
2015-03-13 23:16:59 +03:00
Alexey Sedunov
bff709da10 Convert to Expression Body Intention: Do not remove declaration type if it affects the type of body expression 2015-03-13 23:16:58 +03:00
Alexey Sedunov
9cb42944d1 Extraction Engine: Generate function/property accessor with expression body (whenever applicable)
#KT-6405 Fixed
2015-03-13 23:16:57 +03:00
Alexey Sedunov
9d8cfd04d9 Extraction Engine: Suggest function names based on the name of the result variable (if applicable)
#KT-6291 Fixed
2015-03-13 23:16:55 +03:00
Yan Zhulanow
8e5b960e3d Remove assert with broken separators on Windows in Gradle subplugin test 2015-03-13 20:31:22 +03:00
Pavel V. Talanov
c0a031eafe Support secondary constructors in decompiled text
Build cls stubs for secondary constructors
2015-03-13 20:17:32 +03:00
Pavel V. Talanov
026e35b6d0 DecompiledTextFactory: use separate descriptor renderer to render keys
Previously the same render that renders decompiled text was used by accident
2015-03-13 20:17:14 +03:00
Pavel V. Talanov
fd718ad366 JetConstructorDelegationCall should not be stubbed 2015-03-13 20:17:07 +03:00
Pavel V. Talanov
188ada2089 Minor: extract ClassDescriptor.secondaryConstructors extension property 2015-03-13 20:17:01 +03:00
Ilya Ryzhenkov
4fa5d9cb48 Fix double "deprecated" annotation in generated sources which confuses DX compiler. 2015-03-13 19:30:46 +03:00
Yan Zhulanow
df2d2dc21a Fix formatting in PluginCliParser 2015-03-13 15:46:44 +03:00
Yan Zhulanow
f564734be2 Override loadClass with two arguments in MemoryBasedClassLoader 2015-03-13 15:46:43 +03:00
Yan Zhulanow
7b39cf4998 Support cache cleanup in android-compiler-plugin 2015-03-13 15:46:43 +03:00
Yan Zhulanow
93ce3bc2ad Pass GenerationState to generateClassSyntheticParts as it's more useful 2015-03-13 15:46:42 +03:00
Yan Zhulanow
ab4d2788c2 Remove android-compiler-plugin from dependencies of android-jps-plugin 2015-03-13 15:46:42 +03:00
Yan Zhulanow
4cc5e9248a Support View in android-compiler-plugin 2015-03-13 15:46:42 +03:00
Yan Zhulanow
33a1aa342f Rename kotlin-android-compiler-plugin to kotlin-android-extensions 2015-03-13 15:46:41 +03:00
Yan Zhulanow
da8369066b Support Fragment in android-compiler-plugin 2015-03-13 15:46:41 +03:00
Yan Zhulanow
d4184bd51d Move AndroidExpressionCodegenExtension to the separate file 2015-03-13 15:46:40 +03:00
Yan Zhulanow
e836b88fc3 Fix deprecated Kotlin function calls 2015-03-13 15:46:40 +03:00
Yan Zhulanow
c56347058f Do not pass resource manager to AndroidXmlVisitor and AndroidXmlHandler 2015-03-13 15:46:40 +03:00
Yan Zhulanow
13fee64003 Add @NotNull annotations to Android XML value wrapper 2015-03-13 15:46:39 +03:00
Yan Zhulanow
6b368e445a Cache XML layout widgets using PsiTreeChangePreprocessor 2015-03-13 15:46:39 +03:00
Yan Zhulanow
3f53cf01d2 Remove obsolete module dependency from android-compiler-plugin 2015-03-13 15:46:39 +03:00
Yan Zhulanow
19d24c3c50 Rename AndroidExpressionCodegen to AndroidExpressionCodegenExtension 2015-03-13 15:46:38 +03:00
Yan Zhulanow
8760beeed1 Gradle subplugin test 2015-03-13 15:46:38 +03:00
Yan Zhulanow
9be33338ef Log Kotlin Gradle subplugin loading 2015-03-13 15:46:38 +03:00
Yan Zhulanow
2f83e600f5 Use Gradle properties to pass plugin-related arguments 2015-03-13 15:46:37 +03:00
Yan Zhulanow
eebed9a8b1 Add all layout directories to sources in Android Gradle subplugin 2015-03-13 15:46:37 +03:00
Yan Zhulanow
d5e4775bcd Show plugin usage on invalid arguments 2015-03-13 15:46:37 +03:00
Yan Zhulanow
7d31b56ef6 Android plugin cli arguments test 2015-03-13 15:46:37 +03:00
Yan Zhulanow
41d9477870 Load Android extensions only if plugin options are present 2015-03-13 15:46:36 +03:00
Alexander Udalov
ca005977b0 Restore KObject and deprecate it instead
To let old code work with the new runtime
2015-03-13 15:46:15 +03:00
Alexander Udalov
8af6ca5279 Delete kotlin.jvm.internal.KObject
It was supposed to be used in reflection but the benefits do not outweigh the
cost of KT-6951

 #KT-3223 Fixed
 #KT-6951 Fixed
2015-03-12 23:15:38 +03:00
Alexander Udalov
e5d5b49ce2 Fix exception from ::class literals on unresolved classes 2015-03-12 23:14:55 +03:00
Ilya Ryzhenkov
e448f40756 Rename Stream<T> to Sequence<T> and provide migration path via deprecated types and functions. 2015-03-12 22:56:43 +03:00
Zalim Bashorov
9684d217b3 Fix build. 2015-03-12 20:17:46 +03:00
Zalim Bashorov
44159d34da Minor in JS lib: replaced LocalStorageClass with Storage with more accurate definitions and added sessionStorage.
#KT-6983 Fixed
2015-03-12 19:16:37 +03:00
Dmitry Jemerov
32072d0a4f More standard library documentation. 2015-03-12 16:52:20 +01:00
Stanislav Erokhin
cb27797845 Regenerated tests. 2015-03-12 17:15:54 +03:00
Stanislav Erokhin
2627dc76c2 Compilation fix. 2015-03-12 17:11:54 +03:00
Stanislav Erokhin
8accdcc5cb Fix type inference for function expression parameters 2015-03-12 17:11:53 +03:00
Stanislav Erokhin
af4aff38e5 Minor: remove duplicate code 2015-03-12 17:11:53 +03:00
Stanislav Erokhin
f47f285868 Expected function type used for parameter types inference in function expression 2015-03-12 17:11:53 +03:00
Stanislav Erokhin
639003b8a8 Allowed function parameter without type declaration in the parser 2015-03-12 17:11:52 +03:00
Stanislav Erokhin
d9882a6d0b Move inference parameter type in FunctionDescriptorResolver 2015-03-12 17:11:52 +03:00
Stanislav Erokhin
0c74675e6e Changed element parameter for EXPECTED_PARAMETERS_NUMBER_MISMATCH diagnostic 2015-03-12 17:11:52 +03:00
Stanislav Erokhin
072a9f4977 Refactoring: extract FunctionResolver from DescriptorResolver 2015-03-12 17:11:51 +03:00
Stanislav Erokhin
8ed3314b2c Divided resolveFunctionDescriptor method in to several pieces 2015-03-12 17:11:51 +03:00
Stanislav Erokhin
07a691f4b7 Merge methods resolveFunctionDescriptor && resolveFunctionDescriptorWithAnnotationArguments 2015-03-12 17:11:50 +03:00
Stanislav Erokhin
dbcb4fb060 Minor: used util method 2015-03-12 17:11:50 +03:00
Stanislav Erokhin
4050e7a48b Rename ClosureExpressionsTypingVisitor to FunctionsTypingVisitor. 2015-03-12 17:11:50 +03:00
Stanislav Erokhin
711c5bb88f Rename ClosureExpressionsTypingVisitor.java -> .kt 2015-03-12 17:11:49 +03:00
Stanislav Erokhin
779c6deb34 Convert ClosureExpressionsTypingVisitor to kotlin 2015-03-12 17:11:49 +03:00
Stanislav Erokhin
ee4892c99f Moved method visitNamedFunction from BasicExpressionTypingVisitor to ClosureExpressionsTypingVisitor. 2015-03-12 17:11:48 +03:00
Stanislav Erokhin
bd525eac31 Moved method visitObjectLiteralExpression from ClosureExpressionsTypingVisitor to BasicExpressionTypingVisitor. 2015-03-12 17:11:48 +03:00
Stanislav Erokhin
6fb8af1dda Move util backend function isNamedFun && isNamedFunOrLambda to frontend 2015-03-12 17:11:47 +03:00
Stanislav Erokhin
fa9ca54e78 Fixed local return inside function expression. 2015-03-12 17:11:47 +03:00
Stanislav Erokhin
929f1bc9ba Fixed method hasTypeParameterListBeforeFunctionName in JetNamedFunction 2015-03-12 17:11:47 +03:00
Stanislav Erokhin
a89b48c577 Backend support for function expression 2015-03-12 17:11:46 +03:00
Stanislav Erokhin
44895a23cf Frontend support for function as expression 2015-03-12 17:11:46 +03:00
Stanislav Erokhin
6ccd8ab764 Move method visitNamedFunction from ExpressionTypingVisitorForStatements to BasicExpressionTypingVisitor.
This commit done only for clean history
2015-03-12 17:11:45 +03:00
Stanislav Erokhin
a235110d44 Fixed function expression recovery 2015-03-12 17:11:45 +03:00
Stanislav Erokhin
983e1bc932 Added function as expression support to parser 2015-03-12 17:11:44 +03:00
Stanislav Erokhin
560c32c0f1 Added diagnostic error when in function declaration name was omitted 2015-03-12 17:11:44 +03:00
Stanislav Erokhin
a8536fef9b Mute syntax error when function name was omitted 2015-03-12 17:11:44 +03:00
Stanislav Erokhin
a33450395c Resolve parenthesized element as expression 2015-03-12 17:11:43 +03:00
Stanislav Erokhin
3b92cab9e0 Changed containing declaration for PropertyDeclarationInnerScope 2015-03-12 17:11:43 +03:00
Stanislav Erokhin
49b77a1523 Reformat code 2015-03-12 17:11:43 +03:00
Andrey Breslav
d7297304b9 Create multi-declarations-in-parameters.md 2015-03-12 17:11:42 +03:00
Stanislav Erokhin
2c8cf05f7a Added backend tests with closure local function in local class 2015-03-12 17:11:42 +03:00
Michael Nedzelsky
7a5e54c691 jsHeaderLibraryDetectonUtil: refactoring after conversion 2015-03-12 16:35:36 +03:00
Michael Nedzelsky
a29172c1ca jsHeaderLibraryDetectonUtil: rename .java -> .kt 2015-03-12 16:35:33 +03:00
Michael Nedzelsky
4dc4e6a021 jsHeaderLibraryDetectonUtil.java: convert to kotlin 2015-03-12 16:35:30 +03:00
Michael Nedzelsky
cea65e0770 add NotNull annotation into BasicTest 2015-03-12 16:35:25 +03:00
Michael Nedzelsky
54bbe0711d JS backend: reuse analysisResult from K2JSCompiler in translator 2015-03-12 16:35:22 +03:00
Michael Nedzelsky
95768db9a1 fix NPE while creating new Kotlin/Javascript project 2015-03-12 15:58:14 +03:00
Andrey Breslav
2f39cb6243 Remove useless casts after fixing subtyping for star projections 2015-03-12 15:46:40 +03:00
Alexander Udalov
b8674beac0 Fix build-protobuf-java-lite macro in update_dependencies.xml
Apparently vmlauncher=false invokes antRun which is missing in the Ant support
plugin in IDEA, so invoking update from IDEA was failing
2015-03-12 14:33:07 +03:00
Nikolay Krasko
dcd29cb65d Revert "Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416)"
This reverts commit 6ba120bba8.
2015-03-12 14:18:22 +03:00
Nikolay Krasko
6ba120bba8 Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416) 2015-03-12 12:59:22 +03:00
Nikolay Krasko
38809761e2 Other base method 2015-03-12 12:35:11 +03:00
Michael Bogdanov
30832ed774 Properly report diagnostics on platformStatic annotations
#KT-6937 Fixed
2015-03-12 10:29:00 +03:00
Alexey Sedunov
84ad6c394e Create from Usage: Respect smart-casts when suggesting parameter type candidates
#KT-6781 Fixed
2015-03-11 23:34:00 +03:00
Alexey Sedunov
b033c17426 Caller Hierarchy: NPE fix
#EA-66031 Fixed
2015-03-11 23:33:59 +03:00
Alexey Sedunov
11a4cdf7ec Control-Flow Analysis: Fix NPE for array assignments without right-hand side
#EA-63602 Fixed
2015-03-11 23:33:58 +03:00
Alexey Sedunov
56031cb270 Control-Flow Analysis: Fix bug in finally-block repetition in the presence of non-local returns
#EA-65982 Fixed
2015-03-11 23:33:57 +03:00
Alexey Sedunov
f0b0fd07c5 Create From Usage: Add support of star projections/incorrect type arguments
#EA-62661 Fixed
2015-03-11 23:33:56 +03:00
Alexey Sedunov
ab5a691612 Create From Usage: Place generated declarations next to original element container if they have common parent
#KT-6687 Fixed
2015-03-11 23:33:55 +03:00
Alexey Sedunov
fe9b08f93d Create From Usage: Place local variable declaration right before its usage
#KT-6704 Fixed
2015-03-11 23:33:54 +03:00
Alexey Sedunov
8a0808b133 Create From Usage: Do not generate type for local variables, but add dummy initializer instead
#KT-6705 Fixed
2015-03-11 23:33:52 +03:00
Pavel V. Talanov
2987e72d29 Do not report redeclaration when outer class and default object's members clash
Previously we prohibited classes and properties with the same name (now it's unnecessary)
Add test for backends that they support qualified (by default object name) member references inside class body
2015-03-11 21:06:05 +03:00
Andrey Breslav
76832df933 Do not create temp files in the project directory 2015-03-11 20:14:56 +03:00
Andrey Breslav
7b9d0cfc4f Minor. Compilation fixed 2015-03-11 19:38:17 +03:00
Andrey Breslav
44e7df2809 Minor. Formatting and simplification 2015-03-11 19:38:17 +03:00
Andrey Breslav
704eea2eac TraceBasedErrorReporter converted to Kotlin and [data] added to AbiVersionErrorData 2015-03-11 19:38:16 +03:00
Andrey Breslav
3146b7e1b0 Rename .java file to .kt 2015-03-11 19:38:16 +03:00
Andrey Breslav
0562ab84c2 Minor. Warnings fixed 2015-03-11 19:38:15 +03:00
Andrey Breslav
36bbd2c0e3 ErrorReporter is now Java-independent 2015-03-11 19:38:15 +03:00
Andrey Breslav
266485add3 Serialization of star projections fixed 2015-03-11 19:38:14 +03:00
Andrey Breslav
61989ba245 KT-6815 Representing raw types when used as supertypes for Java classes
#KT-6815 Fixed
2015-03-11 18:27:37 +03:00
Andrey Breslav
7c62d8ed83 Minor. Unused declarations removed 2015-03-11 18:27:37 +03:00
Andrey Breslav
e0b7e4efca KT-6803 Subtyping breaks on star-projections for recursive generics
Star-projections have upper bounds of the form "parameter's bound where all parameter of the same class are substituted with their star-projections"

  #KT-6803 Fixed
2015-03-11 18:27:36 +03:00
Alexander Udalov
11b693c3be Add test on scripts with classpath 2015-03-11 18:08:14 +03:00
Isak Karlsson
efae5c05a1 Support classpath argument when running scripts using the -script flag
Signed-off-by: Isak Karlsson <isak-kar@dsv.su.se>
2015-03-11 18:08:14 +03:00
Denis Zharkov
f632a90741 Fix compiler settings for android-compiler-plugin
It's necessary to use bootstrap-compiler and runtime but new compiler in classpath when increasing ABI.

For example ABI was X, then we increase it to X':

- It compiles in Bootstrap (B) build with compiler that knows
  old ABI version, so compiled compiler (C1) will still have version X, but new
  runtime's version is X' (R1).

  So when we compile android-compiler-plugin each part has version X.

- Then project compiles by new compiler (C1)
  (that class-files have ABI version X, but it knows about X') in main build.
  Here compiled compiler (C2) will have X' version of class-files,
  either has runtime (R1) compiled on previous stage.

  On this step android-compiler-plugin will be compiled fine by C1 and with C2, R1.
2015-03-11 17:45:29 +03:00
Denis Zharkov
70c573864a Prohibit DelegationBy specifier when no primary constructor
Also add codegen test for case when there is primary
2015-03-11 17:45:29 +03:00
Denis Zharkov
582755e71a Don't generate empty constructor if there is secondary one with empty parameter list 2015-03-11 17:45:29 +03:00
Denis Zharkov
aab706a6a6 Revert test checking ENUM_ENTRY_ILLEGAL_TYPE 2015-03-11 17:45:28 +03:00
Denis Zharkov
5eb4dcd913 Report conflicting overloads for constructors
- It's worked almost fine but diagnostics were filtered out by
  positioning strategy.

- Also a couple of "put" calls to Multimap are replaced by "putValues"
  within OverloadResolver, that is more semantically correct.

- Note that constructors of top-level classes are handled when processing
  package, it helps to figure out if there are clashes with top-level
  functions that have the same name.

- But constructors of different classes are not reported as
  overloads because containing classes has the same name and will be
  reported as redeclaration.
2015-03-11 17:45:28 +03:00
Denis Zharkov
9d2d3c0c7b Take data flow info from delegation call 2015-03-11 17:45:28 +03:00
Denis Zharkov
aa5599f6ca Improve positioning strategy for delegation calls 2015-03-11 17:45:28 +03:00
Denis Zharkov
4022982760 Add synthetic argument to default constructors
It's need to add synthetic argument (of type that user can't use)
to constructors with default arguments to avoid clashing with
real user's constructor having the same set of parameters
and additional int's arguments.
2015-03-11 17:45:28 +03:00
Denis Zharkov
67f97fea42 Prohibit data classes with no primary constructor 2015-03-11 17:45:28 +03:00
Denis Zharkov
40d7816575 Regenerate protobuf classes
After secondary constructors serialization
2015-03-11 17:45:27 +03:00
Denis Zharkov
111a138a2a Serialize secondary constructors 2015-03-11 17:45:27 +03:00
Denis Zharkov
e65382e6ec Support secondary constructors in JVM backend
There is a lot of changes about closures calculating and generating.

1. As classes can have more than one constructor each of them should
have closure arguments.

2. Captured variables set is the same for all of them.

3. Within constructors bodies/delegating calls closure parameters
should be accessed through method arguments because fields may be
not initialized yet.
2015-03-11 17:45:27 +03:00
Denis Zharkov
6779e95767 Simplify closure analysis within constructors
Using of ConstructorContext instance almost has no sense,
but it complicates logic when there are several constructors.
2015-03-11 17:45:27 +03:00
Denis Zharkov
31be68de0a Get rid of superCall fields in class/closure codegen
Because their semantics looks wrong in case of secondary constructors.
Use resolved delegation call instead.
2015-03-11 17:45:27 +03:00
Denis Zharkov
4c26d037d9 Resolve property initializer if there is no primary constructor 2015-03-11 17:45:27 +03:00
Denis Zharkov
a872a51a19 Prohibit explicit super call for enum ctrs 2015-03-11 17:45:26 +03:00
Denis Zharkov
1703e16913 Add quickfix: remove 'init' modifier 2015-03-11 17:45:26 +03:00
Denis Zharkov
f07566d30d Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
2015-03-11 17:45:26 +03:00
Denis Zharkov
0dc155d8c9 Resolve annotations on secondary constructors 2015-03-11 17:45:26 +03:00
Denis Zharkov
9be45af267 Complete this/super before delegation call 2015-03-11 17:45:26 +03:00
Denis Zharkov
50c8c6f68b Basic completion within secondary constructors
body and delegation call
2015-03-11 17:45:26 +03:00
Denis Zharkov
7d963e8e07 Differ this/non-this instances for vars initialization in class
When deal with constructed object (not this) treat it like it's fully initialized.

Otherwise (this or access with no receiver) access instruction
should be handled as it was before.

 #KT-6788 Fixed
 #KT-4126 Fixed
2015-03-11 17:45:25 +03:00
Denis Zharkov
1004e016fd Minor, drop unused method 2015-03-11 17:45:25 +03:00
Denis Zharkov
f673f4ff47 Prohibit super delegation call if there is primary constructor 2015-03-11 17:45:25 +03:00
Denis Zharkov
835a0df13a Prohibit secondary constructors in traits 2015-03-11 17:45:25 +03:00
Denis Zharkov
978279bff3 Minor, drop unused method 2015-03-11 17:45:25 +03:00
Denis Zharkov
4a628a3d8f Prohibit supertype initialization without primary constructor 2015-03-11 17:45:25 +03:00
Denis Zharkov
28fbdb7c53 Prohibit constructors declarations for object 2015-03-11 17:45:24 +03:00
Denis Zharkov
3fef4ad742 Minor, drop unneeded accept 2015-03-11 17:45:24 +03:00
Denis Zharkov
525ddf9eb0 Prevent circular secondary constructors delegation 2015-03-11 17:45:24 +03:00
Denis Zharkov
5388bd7cdc Record resolved delegated constructor in trace 2015-03-11 17:45:24 +03:00
Denis Zharkov
7f20c4a237 Control flow changes for secondary constructors 2015-03-11 17:45:24 +03:00
Denis Zharkov
61ae694be4 Allow return statements in secondary constructors 2015-03-11 17:45:24 +03:00
Denis Zharkov
80e13d3f70 Allow class initializer without primary constructor 2015-03-11 17:45:23 +03:00
Denis Zharkov
87193aec2f Minor, drop unused variable 2015-03-11 17:45:23 +03:00
Denis Zharkov
3509cafcea Allow no super class initialization within header
if there is no primary constructor
2015-03-11 17:45:23 +03:00
Denis Zharkov
1555eec954 Secondary constructors delegation calls and body resolve 2015-03-11 17:45:23 +03:00
Denis Zharkov
b2cecf1dd0 Secondary constructors resolve 2015-03-11 17:45:23 +03:00
Denis Zharkov
8305d73682 Drop unused interface method
There was the only usage and it's redundant.
JetClass' implementation name is refined.
2015-03-11 17:45:22 +03:00
Denis Zharkov
3ba94d7352 Parsing: secondary constructors 2015-03-11 17:45:22 +03:00
Denis Zharkov
cb881d2628 Drop some ClassDescriptor.getConstructors() usages
supposing that there is only primary constructor
2015-03-11 17:45:22 +03:00
Denis Zharkov
bdd2756bd1 Rename ThisReference -> ConstructorDelegationReference 2015-03-11 17:45:22 +03:00
Denis Zharkov
a55e8911ea Drop parsing of enum initializers using `this'
#KT-6626 Fixed
2015-03-11 17:45:22 +03:00
Andrey Breslav
0dc1448d69 Secondary constructors specs 2015-03-11 17:45:21 +03:00
Dmitry Jemerov
d3b8464722 fix test: regenerate Primitives.kt 2015-03-11 15:18:38 +01:00
Alexander Udalov
dc4dfbeec1 Fix generic class literals, substitute type parameters with stars 2015-03-11 16:42:47 +03:00
Alexander Udalov
6468515d99 Report error when LHS of class literal is not a class 2015-03-11 16:42:45 +03:00
Alexander Udalov
b93b9bd565 Support KClass.simpleName and built-in class literals 2015-03-11 16:42:43 +03:00
Alexander Udalov
6e45c6f17c Support class literals (A::class) 2015-03-11 16:42:41 +03:00
Alexander Udalov
2b089e0f39 Configure kotlin-reflect.jar in IDE as part of KotlinJavaRuntime library 2015-03-11 16:42:39 +03:00
Alexander Udalov
b3cdd818f0 Support member extension properties, implement KClass.getExtensionProperties()
#KT-6570 Fixed
2015-03-11 16:42:38 +03:00
Alexander Udalov
da209e673c Implement KClass.getProperties()
#KT-6570 In Progress
2015-03-11 16:42:37 +03:00
Alexander Udalov
fdfd808d80 Remove KForeignMemberProperty and KClassOrigin, use KMemberPropertyImpl instead 2015-03-11 16:42:36 +03:00
Alexander Udalov
ff0044f66a Use descriptors for reflection on extension properties 2015-03-11 16:42:34 +03:00
Alexander Udalov
1a618deeab Use descriptors for reflection on top level properties
This also allows to obtain a Field object from the package part (see
mapping.kt)
2015-03-11 16:42:33 +03:00
Alexander Udalov
d1debf586c Support local classes in reflection 2015-03-11 16:42:32 +03:00
Alexander Udalov
64fdb18ad3 Use descriptors for reflection on class properties
- use ConcurrentHashMap as a cache of class loaders to module descriptors
- KClassImpl now has a lazy class descriptor and it manages property creation
  by looking (also lazily) for the property descriptor in the corresponding
  scope
- since deserialized descriptors have full information about where a JVM symbol
  is located and what signature it has, new tests will begin to pass where
  Kotlin model and Java reflection model differ, see classObjectVar.kt
2015-03-11 16:42:31 +03:00
Alexander Udalov
ba0ea1515b Minor, simplify/optimize KClassImpl creation 2015-03-11 16:42:30 +03:00
Alexander Udalov
ecde41d9ab Introduce ReflectProperties for lazy weak/soft property delegates
This class needs to be written in Java because no Kotlin classes can be used in
KClassImpl constructor (otherwise since each Kotlin class creates a KClassImpl
in its static initializer, this would result in infinite recursion)
2015-03-11 16:42:29 +03:00
Alexander Udalov
2b090e02a1 Build kotlin-reflect.jar in build.xml and for Maven
Reflection will be distributed in a separate jar and not in kotlin-runtime.jar
for two primary reasons:
- Reflection implementation at the moment takes almost 2Mb
- Separate libraries for separate features is a technique encouraged by Maven,
  and it's inconvenient to make it different in the compiler distribution
2015-03-11 16:42:28 +03:00
Alexander Udalov
2c8754a6af Build lite runtime of protobuf-java
Saves ~400kb (3.25mb -> 2.85mb) of runtime+reflect size
2015-03-11 16:42:27 +03:00
Alexander Udalov
af6e7cf140 Minor, remove ReflectJavaTypeProvider, throw unsupported instead
getTypeProvider() is in fact a bad abstraction because it's only used in SAM
construction, which does not happen at runtime
2015-03-11 16:42:26 +03:00
Alexander Udalov
e95d22dcfe Refactor ReflectJavaConstructor.getValueParameters()
See https://youtrack.jetbrains.com/issue/KT-6886 for more information
2015-03-11 16:42:25 +03:00
Alexander Udalov
1054f004aa Load annotations on constructors and parameters of Kotlin reflected classes 2015-03-11 16:42:24 +03:00
Alexander Udalov
4fb420f3f1 Fix deserialization of enum annotation arguments at runtime 2015-03-11 16:42:23 +03:00
Alexander Udalov
f36ef6f546 Provide equals, hashCode, toString for classes in reflection model 2015-03-11 16:42:21 +03:00
Alexander Udalov
a14b301f31 Resolve annotations on all reflected elements
Annotation in NestedEnumArgument test is made public, because we try to load
annotation argument values eagerly and fail, since you can't invoke methods
reflectively on an object of a non-effectively-public class
2015-03-11 16:42:19 +03:00
Alexander Udalov
c90f11b7e6 Support Java symbols in runtime descriptor loading 2015-03-11 16:42:18 +03:00
Alexander Udalov
73e4287aee Initial support of annotation loading at runtime
In order to locate an annotated entity, we need to implement almost the whole
Java element model (which will be used anyway for Java descriptor loading)
2015-03-11 16:42:17 +03:00
Alexander Udalov
356f54b5df Initial support of descriptor loading at runtime 2015-03-11 16:42:15 +03:00
Yan Zhulanow
be954f2c27 Fix WrongIdFormat exception on Android XML widgets with non-@+id/ format 2015-03-11 15:33:45 +03:00
Dmitry Jemerov
07381b765f rename Numbers.kt to Primitives.kt as it now contains Char which is not a number 2015-03-11 12:40:39 +01:00
Dmitry Jemerov
89398796c6 generate also the Char class 2015-03-11 12:40:31 +01:00
Dmitry Jemerov
26e452383e reenable test which was temporarily disabled 2015-03-10 20:28:48 +01:00
Pavel V. Talanov
a701cb2bd9 Add quick fix to replace all 'class object's in project 2015-03-10 18:21:33 +03:00
Pavel V. Talanov
81f9d34d1a Add quick fix for deprecated 'class object' syntax 2015-03-10 18:21:33 +03:00
Pavel V. Talanov
3cfcef9da4 Render warning on 'class object' as deprecated 2015-03-10 18:21:32 +03:00
Pavel V. Talanov
581e163031 Report warning on 'class object' 2015-03-10 18:21:32 +03:00
Pavel V. Talanov
8fef31ee5b Replace 'class object' with 'default object' in builtins 2015-03-10 18:07:56 +03:00
Pavel V. Talanov
9a844d2feb Minor: replace some missed mentions of 'class object' with 'default object' 2015-03-10 18:07:54 +03:00
Pavel V. Talanov
9ecf95532e Replace 'class object' with default object in project code 2015-03-10 18:07:46 +03:00
Alexander Udalov
dc7bb32a3b Refactor runtime library configuration in IDE 2015-03-10 16:15:20 +03:00
Alexander Udalov
dab18f7d4e Minor, fix typos: existed, deffer, shouldExists 2015-03-10 16:15:17 +03:00
Alexander Udalov
a01ffd70e7 Fix NoInternalVisibilityInStdLibTest in maven build
Create disposable in setUp(), destroy in tearDown()
2015-03-10 16:13:50 +03:00
Alexander Udalov
611700c998 Fix "mvn clean" in libraries/ project
JS examples were failing on "clean" because no phases were set for compilation
and thus they required kotlin-maven-plugin on every phase which is obviously
not built yet when we're running "clean"
2015-03-10 16:13:45 +03:00
Natalia Ukhorskaya
3eb2182ef0 Evaluate expression: find local variable using callText from extract function instead of function parameter names 2015-03-10 15:27:38 +03:00
Natalia Ukhorskaya
cdf081ddc3 Fix for exception: JetCodeFragment with context null
#KT-6876 Fixed
2015-03-10 15:27:37 +03:00
Natalia Ukhorskaya
f6162dc726 JetCodeFragment: increment modification count after inserting import 2015-03-10 15:27:37 +03:00
Natalia Ukhorskaya
c4f7bf6815 Add test for inserting imports in JetCodeFragment after completion 2015-03-10 15:27:36 +03:00
Zalim Bashorov
f49e4ca3e9 JS backend: fixed accessing to native enum entries. 2015-03-10 14:30:45 +03:00
Ilya Ryzhenkov
e00cdfc8e1 toSortedMap() without a comparator requires keys that are Comparable. 2015-03-10 11:21:41 +03:00
Ilya Ryzhenkov
bfeb21afb0 stdlib: stream() for Map #KT-6547 Fixed 2015-03-10 11:21:41 +03:00
Valery Kharitonov
8873be22d5 Implemented asList() method for arrays. #KT-1313 Fixed 2015-03-10 11:21:40 +03:00
Valery Kharitonov
c8094e7587 Implemented indexOfFirst/Last(predicate). #KT-6577 Fixed 2015-03-10 11:21:40 +03:00
Valery Kharitonov
38a4f86db2 Implemented asIterable method for arrays. #KT-1313 Fixed 2015-03-10 11:21:39 +03:00
Laszlo Hornyak
3954215b50 Add support for + and - operators in immutable maps #KT-6594 Fixed 2015-03-10 11:21:38 +03:00
Ilya Ryzhenkov
1a67e35739 Add more tests to cover stdlib 2015-03-10 11:21:38 +03:00
Alexander Udalov
6fe483f0cf build.xml: use absolute paths, extract some constants 2015-03-07 02:32:59 +03:00
Alexander Udalov
a8046020fb Rename kotlin.reflect.IllegalAccessException -> IllegalPropertyAccessException
The former name clashes with java.lang.IllegalAccessException and proved to be
inconvenient because it should always be qualified in the source.

Also use java.lang exception's message as kotlin.reflect exception's message
2015-03-07 02:32:15 +03:00
Alexander Udalov
ed022f892b Drop JavaTypeParameter#getIndex 2015-03-07 02:32:14 +03:00
Alexander Udalov
ca8831097f Resolve annotations on Java constructors
Also add tests on custom annotations on fields and methods
2015-03-07 02:32:14 +03:00
Alexander Udalov
17c21dcaa2 Test generator: allow to exclude certain test data directories 2015-03-07 02:32:14 +03:00
Alexander Udalov
0bd5264b5e Get rid of module reflection.stub.jvm
Generate K*Function as a supertype for a function reference instead of
K*FunctionImpl; this will allow one binary library to be used with or without
reflection
2015-03-07 02:31:26 +03:00
Alexander Udalov
9c5bcdc72a Prettify code in 'reflection.jvm'
Use stdlib instead of hand-written hacks, fix some warnings and unneeded !!
2015-03-07 02:31:00 +03:00
Alexander Udalov
eced3003ad Introduce kotlin-reflect Maven artifact 2015-03-07 02:31:00 +03:00
Alexander Udalov
4f649f5a33 Minor, drop KotlinBuiltIns.nonPhysicalClasses
See b9d47ffe7a
2015-03-07 02:31:00 +03:00
Alexander Udalov
71a3f35b7e Rename LocalClassFinder -> DirectoryBasedClassFinder
It was never related to local classes
2015-03-07 02:30:28 +03:00
Alexander Udalov
e136025ac5 Show "kotlin.Any" in decompiled text for local/anonymous types 2015-03-07 02:30:28 +03:00
Alexander Udalov
6287055475 J2K: convert array.length to array.size() 2015-03-07 02:29:13 +03:00
Valentin Kipyatkov
3e85b97e1a Completion after $ in string literal works correctly for classes and objects 2015-03-06 22:04:17 +03:00
Valentin Kipyatkov
de7b4dc681 Surround with braces when completing backing field in string template 2015-03-06 22:04:17 +03:00
Valentin Kipyatkov
620fb8683b KT-6191 Support completion for backing field
#KT-6191 Fixed
2015-03-06 22:04:17 +03:00
Valentin Kipyatkov
86272621de More diagnostic 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
efa83000a2 Use of substringBefore/After 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
2ef80d1b34 Completion after "this@" includes immediate this too
#KT-6836 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
ffff6226b0 KT-6608 Code completion does not work after $ in string literals
KT-5070 Add braces when complete function in string templates

 #KT-6608 Fixed
 #KT-5070 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
c44519fa4e More correct and simple finding of top-level callables 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
793be62a81 More clear naming 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
234555bb33 Fixed KT-6890 No autocomplete for receiver methods and properties in extension property
#KT-6890 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov
c5d21e1f45 Fixed KT-6673 Completion: no properties from outside class inside anonymous object
#KT-6673 Fixed
2015-03-06 22:04:15 +03:00
Valentin Kipyatkov
5e66727ff6 Checked that KT-6623 has been fixed 2015-03-06 22:04:15 +03:00
Valentin Kipyatkov
ffc55caadd Minor 2015-03-06 22:04:15 +03:00
Valentin Kipyatkov
114bfbb2ad Fixed bug with wrong completion in class declaration 2015-03-06 22:04:15 +03:00
Andrey Breslav
dcfa77c77d completeAnalysisNeeded() removed 2015-03-06 21:59:05 +03:00
Andrey Breslav
bbb59773aa filesToAnalyzeCompletely removed 2015-03-06 21:59:05 +03:00
Andrey Breslav
456bbb6b96 Logically missing method added 2015-03-06 21:59:05 +03:00
Andrey Breslav
1c8af2d2fe Rename. LocalClassDescriptorManager -> LocalClassDescriptorHolder 2015-03-06 21:59:04 +03:00
Andrey Breslav
253d76669d resolveMutableClassDescriptor() removed 2015-03-06 21:59:04 +03:00
Andrey Breslav
b567356702 Unused code removed from TopDownAnalysisContext 2015-03-06 21:59:04 +03:00
Andrey Breslav
32a3b58f14 ScriptDescriptorImpl and related non-lazy code removed 2015-03-06 21:59:04 +03:00
Andrey Breslav
7d1a826778 Rename. LazinessToken -> TypeLazinessToken 2015-03-06 21:59:04 +03:00
Andrey Breslav
30a84a2bd8 Uneeded usages of LazinessToken.isLazy() are removed 2015-03-06 21:59:03 +03:00
Andrey Breslav
d310b0c99d Got rid of the LAZY flag 2015-03-06 21:59:03 +03:00
Andrey Breslav
d466533ef2 Missing test added 2015-03-06 21:59:03 +03:00
Alexey Tsvetkov
d06b2f4d0a JS: do not inline safe calls
A temporary hack until js inliner learns how to decompose expressions
2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
843bc7956e JS: made JsPropertyInitializer fields not nullable 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
53dfd77d31 JS: added inline stdlib cases 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
38efec6886 JS: inline stdlib functions 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
47064ce03c JS: grouped all scope/name operations in JsParser 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
bb634c6365 JS: restore inline status for calls to functional arguments of inline function 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
889d39a43e JS: restore names that can be changed by minifier
For example, Kotlin object can be renamed in stdlib,
so when we inline stdlib function in context of other module
renamed Kotlin object reference does not exitst.
2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
d44da8e4d4 JS: parse function from js file 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
b280e891e9 JS: read compiled js modules 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
bfd82e2dd2 JS: save function descriptor for inline calls 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
083b506fe1 JS: test metadata generation 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
ded46843c2 JS: generate metadata for public inline functions 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
4efadb33fa JS: switched ClosureCompiler to whitespace level 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
25f6a4aa0a JS: added spread operator inline test case 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
ea0253770b JS: use generation for some tests 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
7a96ca1dfb JS: LibraryUtils refactoring 2015-03-06 21:36:18 +03:00
Michael Nedzelsky
6e3d751ee9 fix StaticContext: use module name from module descriptor 2015-03-06 21:36:18 +03:00
Nikolay Krasko
10e51db55b Merge pull request #592 from JetBrains/rr/yole/j2k-fix-join
J2K: fix incorrect join() in doc comment converter
2015-03-06 21:04:17 +03:00
Dmitry Jemerov
4caf77f571 J2K: fix incorrect join() in doc comment converter 2015-03-06 18:27:57 +01:00
Dmitry Jemerov
4181006e87 temporarily mute test to avoid bootstrapping issues (to be reenabled after a successful build in master) 2015-03-06 18:02:14 +01:00
Dmitry Jemerov
46dbf005df update testdata for the newly appeared Double.mod(Char) method 2015-03-06 18:02:13 +01:00
Dmitry Jemerov
1c426fada2 generate the code of Numbers.kt 2015-03-06 18:02:06 +01:00
Pavel V. Talanov
5540f09751 Report default object specific diagnostics on 'default' modifier 2015-03-06 19:37:02 +03:00
Pavel V. Talanov
012d25dbca Add test for soon to be deprecated 'class object' syntax 2015-03-06 19:37:00 +03:00
Pavel V. Talanov
b51368a5e5 Fix cls builder for new decompiler 2015-03-06 19:36:58 +03:00
Pavel V. Talanov
59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Dmitry Jemerov
28ed30bcb3 change KDoc parsing so that space after parameter/section name is not included in tag content; support @property tag in KDocFinder 2015-03-06 16:13:11 +01:00
Nikolay Krasko
69744c0550 Allow to install to idea 142 branch 2015-03-06 15:21:50 +03:00
Evgeny Gerashchenko
e267f0d4ef Safer check for optimized for loops. 2015-03-06 15:09:28 +03:00
Alexey Sedunov
5517c6c539 Extraction Engine: Report invisible types in the generated declaration header
#KT-6734 Fixed
2015-03-06 14:37:25 +03:00
Alexey Sedunov
5c871c92af Change Signature: Do not look for Java usages for declarations in JavaScript modules
#EA-65319 Fixed
2015-03-06 14:37:23 +03:00
Alexey Sedunov
2684ce20d4 Parser: Do not produce qualified expressions without receiver in package directives. Add assertion on JetQualifiedExpression
#KT-6907 Fixed
2015-03-06 14:37:22 +03:00
Alexey Sedunov
cab301e8e2 Introduce Property: Add tests for default values 2015-03-06 14:37:21 +03:00
Alexey Sedunov
1202e624ce Extraction Engine: Assume internal visibility for trait members 2015-03-06 14:37:20 +03:00
Alexey Sedunov
652253b485 Introduce Property: Forbid lazy properties/properties with initializers in traits 2015-03-06 14:37:18 +03:00
Alexey Sedunov
79b64c6f9f Introduce Property: Add test for name clash in the presence of anonymous initializer (was failing before ElementResolver fix) 2015-03-06 14:37:17 +03:00
Alexey Sedunov
a2a47d56fb Analyzer: Do no try to resolve anonymous initializer as declaration descriptor 2015-03-06 14:37:16 +03:00
Alexey Sedunov
4aac24956c Extraction Engine: Skip named argument references while analyzing extractable code
#KT-6896 Fixed
2015-03-06 14:37:16 +03:00
Evgeny Gerashchenko
c6352ec699 KT-6920 Reference this marked as deprecated if extension function is deprecated
#KT-6920 fixed
2015-03-06 13:43:03 +03:00
Evgeny Gerashchenko
06e3b5937f Fixed compilation. 2015-03-06 13:43:02 +03:00
Evgeny Gerashchenko
14b16ff87c KT-6916 Slow bytecode for downTo iteration like for (i in max downTo min)
#KT-6916 fixed
2015-03-06 13:43:02 +03:00
Nikolay Krasko
4d1c2ab0e3 Suppress action generally because of updated constant in action 2015-03-06 12:56:42 +03:00
Nikolay Krasko
e70098a2d4 Temporary copy beans with reflection while there's no library method in TeamCity JPS 2015-03-06 12:56:41 +03:00
Nikolay Krasko
7de794d381 Update to Idea 141.2.2 2015-03-06 12:56:40 +03:00
Nikolay Krasko
493911145e Gradle classes were moved 2015-03-06 12:56:39 +03:00
Pavel V. Talanov
97989d174e Update keyword completion test data
after introducing 'default' soft keyword
2015-03-06 12:43:29 +03:00
Pavel V. Talanov
84560ec550 Escape 'default' in enum entry names
Would not parse when default is a keyword
2015-03-06 12:41:56 +03:00
Pavel V. Talanov
913724f0e9 Allow default object to be denoted with 'default' modifier
Report 'default' modifier in illegal positions
2015-03-06 12:41:50 +03:00
Pavel V. Talanov
b73d7e19b7 Remove various getDefaultObject() methods 2015-03-06 12:41:46 +03:00
Pavel V. Talanov
101cc9c9ea Minor: rename ModifiersChecker#checkIllegalModifiers -> reportIllegalModifiers 2015-03-06 12:41:42 +03:00
Pavel V. Talanov
2b51e4f2d4 Add 'default' keyword
Parser: allow objects that are marked as default to have no name
2015-03-06 12:41:38 +03:00
Pavel V. Talanov
0ca2f3f336 Minor: prevent rare case when soft keyword was parsed as enum entry 2015-03-06 12:41:34 +03:00
Dmitry Jemerov
c029fa2ed0 add test for generating annotations on the setter of a delegated property; (KT-4169); properly generate backing field for delegated property with a setter 2015-03-05 19:04:18 +03:00
Dmitry Jemerov
b4eb3e0f43 add test for visibility of setter for delegated property (KT-5957) 2015-03-05 19:04:18 +03:00
Dmitry Jemerov
e9266481c5 allow delegated properties to have getters and setters without bodies 2015-03-05 19:04:17 +03:00
Evgeny Gerashchenko
8ba15937f9 KT-6820 Find usages doesn't find delegated properties when searching get/set/propertyDelegated functions
#KT-6820 fixed
2015-03-05 18:42:18 +03:00
Evgeny Gerashchenko
0a824edace KT-6821 Go to reference on "by" keyword in delegated property doesn't navigate to propertyDelegated
#KT-6821 fixed
2015-03-05 18:42:18 +03:00
Evgeny Gerashchenko
9a17bce179 Removed redundant getOriginal() 2015-03-05 18:42:17 +03:00
Evgeny Gerashchenko
af7eba64f7 Disallow PropertyMetadataImpl in conventions for delegated properties 2015-03-05 18:42:17 +03:00
Evgeny Gerashchenko
056daeaadb Don't mark parameters of get/set/propertyDelegated functions as unused.
#KT-5974 fixed
2015-03-05 18:42:16 +03:00
Dmitry Jemerov
dbe9a70fbd standard library deprecations, now with proper messages 2015-03-05 16:32:22 +01:00
Nikolay Krasko
d230cfc192 Update state for idea branches 2015-03-05 17:21:11 +03:00
Evgeny Gerashchenko
0bc8efa20d Reverted old behaviour of DescriptorToSourceUtils.descriptorToDeclaration() 2015-03-05 15:19:35 +03:00
Evgeny Gerashchenko
e7796fbb58 Not trying to find declaration in both builtins and decompiled code (as it worked before). 2015-03-05 15:19:34 +03:00
Evgeny Gerashchenko
2b522f2d5e Added comments. 2015-03-05 15:19:34 +03:00
Evgeny Gerashchenko
6ee4d92f36 Renamed object and its methods. 2015-03-05 15:19:33 +03:00
Evgeny Gerashchenko
6982757700 Optimized method. Moved logic about package view to JetReference. 2015-03-05 15:19:33 +03:00
Evgeny Gerashchenko
46940d272e Convert DescriptorToSourceUtils to Kotlin. Code cleanup. 2015-03-05 15:19:32 +03:00
Evgeny Gerashchenko
44d86da1cd Convert DescriptorToSourceUtils to Kotlin. Auto-convert. 2015-03-05 15:19:32 +03:00
Evgeny Gerashchenko
648336e759 Convert DescriptorToSourceUtils to Kotlin. Rename. 2015-03-05 15:19:31 +03:00
Evgeny Gerashchenko
9a9b2a8540 Not finding classes for package view. It is not relevant anymore: we see Java classes as classes, not packages. 2015-03-05 15:19:30 +03:00
Evgeny Gerashchenko
8ab94a18ae Inlined trivial method classDescriptorToDeclaration 2015-03-05 15:19:30 +03:00
Evgeny Gerashchenko
7b6f83815c Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages. 2015-03-05 15:19:29 +03:00
Evgeny Gerashchenko
a56b1da11f Minor. Removed unused function. 2015-03-05 15:19:29 +03:00
Dmitry Jemerov
48b0afd84d correctly generate safe casts from Unit type
#KT-4494 fixed
2015-03-05 11:59:23 +01:00
Dmitry Jemerov
2835459920 correctly generate 'in' expressions with IntRange on RHS and a type other than Int on LHS 2015-03-05 11:33:24 +01:00
Dmitry Jemerov
1188be9070 generate correct bytecode for constructors using infix call syntax
#KT-4589 Fixed
2015-03-05 11:26:27 +01:00
Pavel V. Talanov
ed4c265564 Drop ClassKind.CLASS_OBJECT
Default and non-default objects now have ClassKind.OBJECT
2015-03-05 13:06:33 +03:00
Pavel V. Talanov
f72f548a93 Add ClassDescriptor#isDefaultObject()
with dummy implementations for now
2015-03-05 13:06:12 +03:00
Pavel V. Talanov
63acb19413 Minor: treat default objects as ordinary objects in ExtractionData.inferParametersInfo() 2015-03-05 13:06:08 +03:00
Pavel V. Talanov
5e249e71f6 Do not exclude default object names when rendering descriptors in short names mode 2015-03-05 13:06:04 +03:00
Pavel V. Talanov
afe8773e41 Minor: rename OVERRIDE_CANNOT_BE_STATIC and improve message 2015-03-05 13:06:00 +03:00
Pavel V. Talanov
350864b22f Drop some of explicit ClassKind.CLASS_OBJECT and OBJECT usages 2015-03-05 13:05:56 +03:00
Pavel V. Talanov
fa590a5b83 Refactor: Extract isObject with a new semantic 2015-03-05 13:05:48 +03:00
Pavel V. Talanov
fc6f4208ec Rename: isObject -> isNonDefaultObject 2015-03-05 13:05:45 +03:00
Nikolay Krasko
d827038f7c Fix test 2015-03-05 12:01:42 +03:00
Nikolay Krasko
08502cd510 Refactoring: inline methods and hide intermediate class 2015-03-05 01:30:39 +03:00
Nikolay Krasko
518c35fae1 Intrinsic default objects implementation: old test data modification 2015-03-05 01:30:39 +03:00
Nikolay Krasko
30a50746b5 Intrinsic default objects implementation: tests 2015-03-05 01:30:38 +03:00
Nikolay Krasko
1f79e0905f Intrinsic default objects implementation 2015-03-05 01:30:37 +03:00
Nikolay Krasko
05de376fc3 Don't spam warning when file was removed 2015-03-05 01:30:37 +03:00
Nikolay Krasko
2bac22d617 Fix EA-65829 2015-03-05 01:30:36 +03:00
Nikolay Krasko
c75a7df926 Put reference to default object in default object extenstion call 2015-03-05 01:30:35 +03:00
Alexey Sedunov
5ae9bb600c Introduce Property: Place property before its usages 2015-03-04 23:06:07 +03:00
Alexey Sedunov
ada5ffee57 Refactoring: Move AbstractJetExtractionTest 2015-03-04 23:06:06 +03:00
Alexey Sedunov
6ae989e330 Introduce Property: Duplicate search & replace 2015-03-04 23:06:05 +03:00
Alexey Sedunov
b78ed32a07 Introduce Property: Implement separate in-place introducer for properties 2015-03-04 23:06:04 +03:00
Alexey Sedunov
5382504306 Extraction Engine: Support lazy properties and properties with initializer 2015-03-04 23:06:03 +03:00
Alexey Sedunov
03fada71d7 Introduce Property: Initial support (properties with getter) 2015-03-04 23:06:02 +03:00
Alexey Sedunov
48914e70ff Refactoring: Introduce ExtractionEngine class 2015-03-04 23:06:00 +03:00
Alexey Sedunov
b99c191bb2 Refactoring: Rename AbstractExtractFunctionAction ->AbstractIntroduceAction and move to 'introduce' package 2015-03-04 23:05:59 +03:00
Alexey Sedunov
0a6010ff9d Refactoring: Move selectElements() function to introduceUtil.kt 2015-03-04 23:05:58 +03:00
Alexey Sedunov
997c7f9d6c Refactoring: Extract 'extractionEngine' package 2015-03-04 23:05:57 +03:00
Alexey Sedunov
cd2c9f2194 Move package: extractFunction -> introduce 2015-03-04 23:05:56 +03:00
Alexey Sedunov
02bf8368c1 Refactoring: Inline KotlinChangePropertyActions.declareValueOrVariable() method 2015-03-04 23:05:55 +03:00
Alexey Sedunov
6a25cd663e UI: Show file name instead of text fragment in element selection popup 2015-03-04 23:05:54 +03:00
Alexander Udalov
8a42d50d65 Merge pull request #586 from JetBrains/rr/yole/kt3107
Regression tests for some obsolete issues in the JVM backend
2015-03-04 20:00:42 +03:00
Dmitry Jemerov
e60aafb18a regression test for KT-3421 2015-03-04 17:43:38 +01:00
Dmitry Jemerov
46e0fdc067 regression test for KT-3442 2015-03-04 17:41:27 +01:00
Dmitry Jemerov
7522eb4032 regression test for KT-3903 2015-03-04 17:32:40 +01:00
Dmitry Jemerov
18e54322b8 regression test for KT-4281 2015-03-04 17:27:55 +01:00
Dmitry Jemerov
a2e22c6d20 regression test for KT-3107 2015-03-04 17:24:58 +01:00
Dmitry Jemerov
155ce4221c Merge branch 'rr/yole/j2k-convert-javadoc' 2015-03-04 17:14:52 +01:00
Evgeny Gerashchenko
3aa5f5200b Incremental: fixed adding file to package and using it from Java 2015-03-04 18:59:21 +03:00
Evgeny Gerashchenko
02555478d7 Moved JsCallChecker.kt to valid package. Fixed compilation problem caused by the fact that package was present in multiple modules. 2015-03-04 18:59:20 +03:00
Dmitry Jemerov
9372339567 use a data class instead of a Pair<String, String> 2015-03-04 16:16:38 +01:00
Valentin Kipyatkov
4a29e968d0 Corrections on code review 2015-03-04 17:41:44 +03:00
Natalia Ukhorskaya
1928e5e9e5 Use android-plugin library for android-compiler plugin 2015-03-04 15:31:44 +03:00
Natalia Ukhorskaya
0391fbd764 Evaluate Expression: support anonymous objects evaluation 2015-03-04 12:42:59 +03:00
Pavel V. Talanov
f507af15c0 Rename in descriptors.proto: class_object_name -> default_object_name 2015-03-03 20:57:13 +03:00
Pavel V. Talanov
48fbce9582 Refactor: process mentions of class object
Rename usages that refer to "default object" concept now
Test data file names are left as is
2015-03-03 20:57:08 +03:00
Dmitry Jemerov
ac6a56761e J2K: convert javadoc comments to kdoc 2015-03-03 18:31:30 +01:00
Valentin Kipyatkov
27f5d71e4f Fixed bug in partial body resolve 2015-03-03 19:22:27 +03:00
Michael Bogdanov
db987eedee Fix android compiler plugin classpath 2015-03-03 17:05:17 +03:00
Pavel V. Talanov
ac34f2188b Prettify code in DeclarationResolver.kt 2015-03-03 14:54:42 +03:00
Pavel V. Talanov
9628d98f38 Convert to kotlin: DeclarationResolver.kt 2015-03-03 14:54:36 +03:00
Pavel V. Talanov
4a156c5c8c Rename file: DeclarationResolver.java -> DeclarationResolver.kt 2015-03-03 14:54:25 +03:00
Dmitry Jemerov
cbb8df954c Merge remote-tracking branch 'upstream/master' 2015-03-03 12:42:25 +01:00
Dmitry Jemerov
ff3cb27c8f EA-65705 - ISE: KDocReference.getTargetDescriptors 2015-03-03 12:31:40 +01:00
Valentin Kipyatkov
33bc234f45 More clear code 2015-03-03 13:41:32 +03:00
Valentin Kipyatkov
5b4afa140b Fixed bug in reference shortening related on on the fly import optimization 2015-03-03 13:41:32 +03:00
Valentin Kipyatkov
862d391da6 KT-6834 Optimize Imports: do not modify file if import list had not change
#KT-6834 Fixed
2015-03-03 13:41:32 +03:00
Valentin Kipyatkov
b0d82bef7d Tested KT-2718 Package names that match Kotlin keywords should be escaped properly 2015-03-03 13:41:32 +03:00
Dmitry Jemerov
2cc291efdb Standard library documentation continued. 2015-03-03 11:20:30 +01:00
Pavel V. Talanov
7cd68c70d2 Do not run unused symbol inspection on default objects for now
#KT-6872 Fixed
2015-03-03 13:04:33 +03:00
Pavel V. Talanov
4370b50841 Minor: change rendering of class objects' types in completion 2015-03-03 13:04:32 +03:00
Pavel V. Talanov
cbf9208c1d Minor: change rendering of class objects in source code renderers
Fixes one particular case in completion
2015-03-03 13:04:32 +03:00
Pavel V. Talanov
cebe556d03 Minor: simplify code 2015-03-03 13:04:31 +03:00
Pavel V. Talanov
cc90891b6c Minor: change rendering of class objects in some diagnostics 2015-03-03 13:04:31 +03:00
Pavel V. Talanov
989f07962b Write to trace in case class qualifier is a short reference to default object
This allows to fix some cases when there is a difference between explicit and short reference to default object
Fix shorten reference, optimize imports and import insert helper for default objects
ShortenReferences always transforms default object references to shorter form for now
Fix DescriptorUtils#getFqName() for default objects (affects test data mostly)
Fix DescriptorUtils#getImportableDescriptor()
2015-03-03 13:04:30 +03:00
Pavel V. Talanov
7f672f8078 Minor: remove redundant class objects from project code 2015-03-03 13:04:30 +03:00
Pavel V. Talanov
b012b9d8a3 Stdlib: Move classes out of class object in FunctionalList 2015-03-03 13:04:29 +03:00
Pavel V. Talanov
ffabe19229 Prohibit accessing nested classes/objects of class object using class literal
The fqname of class should be clear from code
Example: can't shorten A.Default.B.Default.C to A.B.C
Also fixes problem when nested class of enum class could be accessed via enum entry
2015-03-03 13:04:29 +03:00
Pavel V. Talanov
86bbb117ef Refactor: rework FilteredCollector in CallableDescriptorCollectors
Convert LibrarySourceHacks to Kotlin
2015-03-03 13:04:28 +03:00
Pavel V. Talanov
cceb5738c8 Can't omit default object name in imports and types
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
2015-03-03 13:04:28 +03:00
Pavel V. Talanov
640d2de5b9 Fix incorrect reference target for class literals in some cases 2015-03-03 13:04:27 +03:00
Pavel V. Talanov
88c5379424 Change importing rules for objects:
Allow importing classes from object, prohibit import-on-demand from objects
It's unclear what import-on-demand from object should mean so we prohibit it for now
2015-03-03 13:04:27 +03:00
Dmitry Jemerov
2e208c4294 revert incorrect deprecations 2015-03-02 22:16:52 +01:00
Dmitry Jemerov
f41a0a328f don't deprecate AbstractIterator for now 2015-03-02 18:19:56 +01:00
Dmitry Jemerov
afafdb31ee deprecate some legacy code in the standard library 2015-03-02 18:17:17 +01:00
Evgeny Gerashchenko
c63b9b9433 Merge pull request #576 from typeinference/file-template-for-object
File template for object
2015-03-02 20:31:40 +04:00
Dmitry Jemerov
595eacb099 remove incorrect JVM-specific note 2015-03-02 13:25:31 +01:00
Dmitry Jemerov
78cb983bd0 clarify docs 2015-03-02 13:02:00 +01:00
Dmitry Jemerov
417711f9e6 document InlineStrategy and InlineOptions 2015-03-02 12:52:52 +01:00
Dmitry Jemerov
f9fd0fd195 Merge branch 'rr/yole/kdocfinder-overridden' 2015-03-02 11:23:20 +01:00
Dmitry Jemerov
6e29829891 add test which reproduces the problem 2015-02-27 20:55:34 +01:00
Dmitry Jemerov
1684248e97 Fix retrieving documentation for overridden methods.
(The test doesn't actually reproduce the problem because it can't be done in a single-file setup, but it verifies that the basic functionality continues to work.)
2015-02-27 20:10:37 +01:00
Alexander Udalov
2c0830b017 Change synthetic accessor method names to "access$..."
As per discussion in https://youtrack.jetbrains.com/issue/KT-6870
2015-02-27 20:30:51 +03:00
Alexander Udalov
ac9e6cd9ca Regenerate tests 2015-02-27 19:56:37 +03:00
Andrey Breslav
4c84b19b33 KT-5488 Invalid ambiguity between plus and plusAssign
#KT-5488  Fixed
2015-02-27 19:32:58 +03:00
Andrey Breslav
9c2a9e0bdb Spec for operator conventions is copied from the docs 2015-02-27 19:32:56 +03:00
Stanislav Erokhin
5ad07d88a9 Update to IDEA 140.2683.2 2015-02-27 18:51:05 +03:00
Dmitry Jemerov
cec1b94664 provide documentation for generated built-in classes 2015-02-27 14:19:39 +01:00
Stanislav Erokhin
602689892e Wrong diagnostic when last expression in lambda contains assignment operation
#KT-6769 Fixed
2015-02-27 14:16:20 +03:00
Natalia Ukhorskaya
09435ad0e3 Gradle: fix warning about annotations path entry points to a non-existent location
#KT-6865 Fixed
2015-02-27 10:30:28 +03:00
Yan Zhulanow
171ea9416e Use comma to separate plugin paths in IDEA run configurations 2015-02-26 19:30:29 +03:00
Yan Zhulanow
cdb7a4002e Join Kotlin and KotlinAndroidExtensions plugins into one directory 2015-02-26 18:53:43 +03:00
Nikolay Krasko
f2b1585399 Add file name to debug context string to see if file is script 2015-02-26 16:39:50 +03:00
Yan Zhulanow
7bc81f68b4 Fix a bug in PluginURLClassLoader 2015-02-26 16:07:45 +03:00
Yan Zhulanow
2d6186b155 Report compiler exception on plugin load fail 2015-02-26 16:07:45 +03:00
Yan Zhulanow
20fc298113 Cache Android XML parse results using VfsModificationTracker 2015-02-26 16:07:44 +03:00
Yan Zhulanow
d7fdb8b513 Remove Android-related services from core "idea" plugin 2015-02-26 15:26:03 +03:00
Yan Zhulanow
0ecd1c04b0 Update copyright 2015-02-26 15:26:02 +03:00
Yan Zhulanow
f71e41d2db Fix Android xml converter tests 2015-02-26 15:26:02 +03:00
Yan Zhulanow
7423e30065 Removed Android dependencies from core modules 2015-02-26 15:26:02 +03:00
Yan Zhulanow
17bdcfe03f Gradle dependency from jps-plugin removed 2015-02-26 15:26:01 +03:00
Yan Zhulanow
756d0a06d9 Remove obsolete "frontend.android" paths 2015-02-26 15:26:01 +03:00
Yan Zhulanow
5614b29db7 Build KotlinAndroidExtensions artifact before launching IDEA 2015-02-26 15:26:01 +03:00
Yan Zhulanow
ccbbaba7cd Rename jet to kotlin in Android JPS plugin 2015-02-26 15:26:01 +03:00
Yan Zhulanow
d35f36da06 Rename jet to kotlin in Kotlin compiler infrastructure 2015-02-26 15:26:00 +03:00
Yan Zhulanow
db45ab4ad6 Call findViewById if invoked on anything but our Activity class 2015-02-26 15:26:00 +03:00
Yan Zhulanow
8ebd63ee96 Update Gradle plugin 2015-02-26 15:26:00 +03:00
Yan Zhulanow
f033604c7a Rename jet to kotlin in compiler api 2015-02-26 15:25:59 +03:00
Yan Zhulanow
328116cb1a Fix android-compiler-plugin build 2015-02-26 15:25:59 +03:00
Yan Zhulanow
1d9979b073 Rename jet to kotlin in android-idea-plugin 2015-02-26 15:25:59 +03:00
Yan Zhulanow
5eec7d3ac2 Rename jet to kotlin in android-compiler-plugin 2015-02-26 15:25:59 +03:00
Yan Zhulanow
b897803f5b Fix ProGuard rules for plugin-api 2015-02-26 15:25:58 +03:00
Yan Zhulanow
9aef9b2643 Rename jet to kotlin in plugin-api 2015-02-26 15:25:58 +03:00
Yan Zhulanow
b2f323908b Fix Android plugin rename tests 2015-02-26 15:25:58 +03:00
Yan Zhulanow
c756cfef86 Codebase update 2015-02-26 15:25:57 +03:00
Yan Zhulanow
346dbe3f7c Refactor Android plugin 2015-02-26 15:25:57 +03:00
Yan Zhulanow
4f9aba2cdc Support multi-module configuration in Android plugin 2015-02-26 15:25:57 +03:00
Yan Zhulanow
438d2ee5fa Cache resolved Views in Map 2015-02-26 15:25:56 +03:00
Yan Zhulanow
cb0d0543fd Fix IDEA tests in Android plugin 2015-02-26 15:25:56 +03:00
Yan Zhulanow
4180cf4d53 Read VirtualFile contents via contentsToByteArray() 2015-02-26 15:25:56 +03:00
Yan Zhulanow
fbed5426e2 Kotlin Gradle subplugin support 2015-02-26 15:25:55 +03:00
Yan Zhulanow
781c565ec9 Revert completion settings back on Android completion test finish 2015-02-26 15:25:55 +03:00
Yan Zhulanow
755c16d6d2 Do not shrink org.jetbrains.kotlin package classes 2015-02-26 15:25:55 +03:00
Yan Zhulanow
09809d2f7a Do not tell about Android compiler plugin in JPS in case of non-Android project 2015-02-26 15:25:55 +03:00
Yan Zhulanow
6ab2dc90f8 Fix cli help tests 2015-02-26 15:25:54 +03:00
Yan Zhulanow
4b18507bf5 CliOptions moved to the separate file 2015-02-26 15:25:54 +03:00
Yan Zhulanow
e891d48a7a Localize plugin string format usages 2015-02-26 15:25:54 +03:00
Yan Zhulanow
f64c116206 Ability to get plugin option string in plugin API 2015-02-26 15:25:53 +03:00
Yan Zhulanow
94995f5a20 Obsolete testData files removed 2015-02-26 15:25:53 +03:00
Yan Zhulanow
264178c4ea CrossParserTest was renamed to ParserResultEqualityTest 2015-02-26 15:25:53 +03:00
Yan Zhulanow
9f66777185 KotlinIsReferenceToExtension was renamed to SimpleNameReferenceExtension 2015-02-26 15:25:53 +03:00
Yan Zhulanow
359376f797 Android SDK version was updated in Android plugin tests 2015-02-26 15:25:52 +03:00
Yan Zhulanow
15f7f6e08e Android compiler tests moved to test package 2015-02-26 15:25:52 +03:00
Yan Zhulanow
23053a2be2 Ability to change codegen test path (for plugins) 2015-02-26 15:25:52 +03:00
Yan Zhulanow
7cd78a2d3a AndroidBytecodeShapeTest renamed 2015-02-26 15:25:51 +03:00
Yan Zhulanow
5590848843 Simplify Android facet resolving in IDEAndroidResourceManager 2015-02-26 15:25:51 +03:00
Yan Zhulanow
edac24df74 Android plugins are now test dependencies, not compile-time 2015-02-26 15:25:51 +03:00
Yan Zhulanow
638fb7526c Remove invalid android-tests library 2015-02-26 15:25:51 +03:00
Yan Zhulanow
27d4132c77 Removed obsolete frontend.android 2015-02-26 15:25:50 +03:00
Yan Zhulanow
7fc5114ffc Load compiler plugins via the custom ClassLoader 2015-02-26 15:25:50 +03:00
Yan Zhulanow
e5b16afff5 Support android-compiler-plugin in Gradle 2015-02-26 15:25:50 +03:00
Yan Zhulanow
ee62477ed4 Remove LightElement property resolving 2015-02-26 15:25:50 +03:00
Yan Zhulanow
a8e3e4d8de Android plugin test dependencies added 2015-02-26 15:25:49 +03:00
Yan Zhulanow
27e1e7ffdb Fix a typo 2015-02-26 15:25:49 +03:00
Yan Zhulanow
abd4e98a99 Fix a bug when no "layout" folders exist 2015-02-26 15:25:49 +03:00
Yan Zhulanow
4eddac30c6 Android compiler persistence tests fixed 2015-02-26 15:25:48 +03:00
Yan Zhulanow
488ef6f50e Register plugin extensions in tests 2015-02-26 15:25:48 +03:00
Yan Zhulanow
1b355004d5 Move Android-related tests to the separate testGroup 2015-02-26 15:25:48 +03:00
Yan Zhulanow
fa62d3bcec Move Android compiler plugin tests to android-compiler-plugin module 2015-02-26 15:25:48 +03:00
Yan Zhulanow
efff642635 Move Android IDEA plugin tests to android-idea-plugin module 2015-02-26 15:25:47 +03:00
Yan Zhulanow
b7f8496e5b Move Android JPS plugin tests to android-jps-plugin module 2015-02-26 15:25:47 +03:00
Yan Zhulanow
94af8302ec Allow to specify custom testData path in CodegenTest 2015-02-26 15:25:47 +03:00
Yan Zhulanow
2ff7ec4a64 Support test case execution in KotlinAndroidJpsPlugin 2015-02-26 15:25:46 +03:00
Yan Zhulanow
77880647ad Implement KotlinIsReferenceToExtension in Android IDEA plugin 2015-02-26 15:25:46 +03:00
Yan Zhulanow
aeeea6cda7 Plugin configuration files united 2015-02-26 15:25:46 +03:00
Yan Zhulanow
3f0118c88c KotlinIsReferenceToExtension extracted 2015-02-26 15:25:45 +03:00
Yan Zhulanow
83d3a4f575 Fix synthetic property rename processor 2015-02-26 15:25:45 +03:00
Yan Zhulanow
b7d410ba25 Remove navigation from R class fields (already handled by the main plugin) 2015-02-26 15:25:45 +03:00
Yan Zhulanow
5f912ce13d Delegate secondary elements to handler 2015-02-26 15:25:45 +03:00
Yan Zhulanow
a2032e60a7 Provide values using ServiceLoader instead of MANIFEST.MF 2015-02-26 15:25:44 +03:00
Yan Zhulanow
e0f1a56b28 Load compiler plugins via ServiceLoader 2015-02-26 15:25:44 +03:00
Yan Zhulanow
af9c5cc45d Providing plugin classpath through JPS extensions 2015-02-26 15:25:44 +03:00
Yan Zhulanow
c94844f6dc Rename artifact 2015-02-26 15:25:44 +03:00
Yan Zhulanow
660997e1b9 Loading compiler plugins implemented 2015-02-26 15:25:43 +03:00
Yan Zhulanow
72c611df22 Extensions registered before usage 2015-02-26 15:25:43 +03:00
Yan Zhulanow
a08411f925 Process normally when no plugins were found 2015-02-26 15:25:43 +03:00
Yan Zhulanow
7c496f638e Extract android-compiler-plugin from Ant into Android plugin 2015-02-26 15:25:42 +03:00
Yan Zhulanow
9f962e39ca Do not bundle Android subplugins to the main plugin 2015-02-26 15:25:42 +03:00
Yan Zhulanow
9b9d96df30 android-compiler-plugin Ant build task introduced 2015-02-26 15:25:42 +03:00
Andrey Breslav
562b563e7e Read action added in Android plugins 2015-02-26 15:25:42 +03:00
Andrey Breslav
e9e96657c3 Artifact for Android extensions plugin 2015-02-26 15:25:41 +03:00
Andrey Breslav
71d082c12c Missing public added 2015-02-26 15:25:41 +03:00
Andrey Breslav
8844ecdbc4 Find Usages extension extracted 2015-02-26 15:25:41 +03:00
Andrey Breslav
5811b13ce7 ExpressionCodegenExtension extracted 2015-02-26 15:25:40 +03:00
Andrey Breslav
e10d8a6fe0 ExternalDeclarationsProvider introduced 2015-02-26 15:25:40 +03:00
Andrey Breslav
1f10ab21ac android-ide-plugin module extracted 2015-02-26 15:25:40 +03:00
Andrey Breslav
1e70369cf8 Logic related to command-line options moved to android-compiler-plugin 2015-02-26 15:25:40 +03:00
Andrey Breslav
febfdde89e Compiler plugins can provide extra command line parameters in JPS 2015-02-26 15:25:39 +03:00
Andrey Breslav
d961e2f5b4 CommandLineProcessor infrastructure added 2015-02-26 15:25:39 +03:00
Andrey Breslav
565ce5a781 frontend.android renamed to android-compiler-plugin 2015-02-26 15:25:39 +03:00
Andrey Breslav
35028227a0 Plugin component registrar introduced
CompilerConfiguration moved to plugin-api
2015-02-26 15:25:38 +03:00
Andrey Breslav
dca186e94d plugin-api module introduced 2015-02-26 15:25:38 +03:00
Mikhail Mutcianko
95fd4006d9 fix android jps build test case
- add proper way of setting up android sdk for jps
- add missing android plugin runtime library
2015-02-26 15:25:38 +03:00
Mikhail Mutcianko
bf25dffb85 add android bytecode persistence test 2015-02-26 15:25:37 +03:00
Mikhail Mutcianko
2643866e31 add android find usages test 2015-02-26 15:25:37 +03:00
Mikhail Mutcianko
947e1b7f5b fix find usage handler not returning android property as secondary element 2015-02-26 15:25:37 +03:00
Mikhail Mutcianko
b2afc3b4b5 add reverse renaming to android rename tests 2015-02-26 15:25:37 +03:00
Mikhail Mutcianko
4145991bea add android rename tests 2015-02-26 15:25:36 +03:00
Mikhail Mutcianko
e922a91958 eliminate idToXml cache leftovers from android resource manger 2015-02-26 15:25:36 +03:00
Mikhail Mutcianko
934bbec06d fix kotlin property renamer npe
- fix npe when element usage has no reference(e.g. xml cross usage)
2015-02-26 15:25:36 +03:00
Mikhail Mutcianko
bc7fe3405e factor base android test case
- move common initialization code to base class
2015-02-26 15:25:35 +03:00
Mikhail Mutcianko
65ef880dd3 add all goto tests
- fix base test case failing when no res directory present
- get rid of JetProperty -> XmlAttr caching
2015-02-26 15:25:35 +03:00
Mikhail Mutcianko
04a905c35c fix android kotlin test framework
- fix android jars not indexed by java indexer
- fix goto test
2015-02-26 15:25:35 +03:00
Mikhail Mutcianko
1912b2b0ec add android jps builder test stub
wtf
2015-02-26 15:25:35 +03:00
Mikhail Mutcianko
7c4661aba5 add android goto declaration test stub 2015-02-26 15:25:34 +03:00
Mikhail Mutcianko
537933d145 regenerate android tests after rebase 2015-02-26 15:25:34 +03:00
Mikhail Mutcianko
baa442207b fix android resource path arguments after rebase 2015-02-26 15:25:34 +03:00
Mikhail Mutcianko
bc9e1ee2d2 fix android cross parser tests
- reorganize tests folder structure
- fix class attribute ignored in ide xml parser
2015-02-26 15:25:33 +03:00
Mikhail Mutcianko
84d326ed47 refactor android kotlin fixture test
- move more setup code to base class
2015-02-26 15:25:33 +03:00
Mikhail Mutcianko
95b5c94f8d delete obsolete android test 2015-02-26 15:25:33 +03:00
Mikhail Mutcianko
f507857930 fix R class field resolving
- resolve by class name and package defined in AndroidManifest.xml
2015-02-26 15:25:33 +03:00
Mikhail Mutcianko
adbe9afd4a add android completion tests
- add android plugin test classes as test library
- add base android test cases for kotlin, setting up android facet and sdk
2015-02-26 15:25:32 +03:00
Mikhail Mutcianko
08245ffe1c add android properties box tests 2015-02-26 15:25:31 +03:00
dedoz
f2ab424c41 add generated tests 2015-02-26 15:25:31 +03:00
Mikhail Mutcianko
a56fa7f192 optimize imports 2015-02-26 15:25:31 +03:00
Mikhail Mutcianko
19e6b79cae minor refactorings 2015-02-26 15:25:30 +03:00
Mikhail Mutcianko
23fbc60e50 update android synthetic properties completion test
- add missing android classes as text into fixture
2015-02-26 15:25:30 +03:00
Mikhail Mutcianko
ec0d1f5d06 fix android plugin libs dependencies 2015-02-26 15:25:30 +03:00
Mikhail Mutcianko
bafaf9e46c fix cli argument tests 2015-02-26 15:25:29 +03:00
Mikhail Mutcianko
ab8815bf74 fix android plugin dependencies not unpacked 2015-02-26 15:25:29 +03:00
dedoz
bada0ec7f8 add kotlin gradle plugin integration 2015-02-26 15:25:29 +03:00
dedoz
972e0f28d0 add android xml to properties completion test 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko
376886a9c3 add configuration key to pass android manifest file 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko
c6b8cbbb01 add android layout file searching to kotlin jps plugin 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko
f49e28387e delegate android resource and manifest reading in ide to android support plugin 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko
85e18a3d73 correct interpretation of android id usage mixed with id declarations 2015-02-26 15:25:27 +03:00
Mikhail Mutcianko
8e8b626994 implement find usages action for android synthetic properties 2015-02-26 15:25:27 +03:00
Mikhail Mutcianko
d310b2021c add android xml reference and rename handling to JetSimpleNameReference 2015-02-26 15:25:27 +03:00
Mikhail Mutcianko
9c9bad2f78 android goto declaration handler reference fix
- goto handler now utilizes full featured reference resolving instead of simple name based resolving
2015-02-26 15:25:26 +03:00
Mikhail Mutcianko
37c851cafc fix excess xml parsing when renaming resources
- rebuild resource name -> xml attribute mappings same time as rebuilding synthetic properties
- update mappings during rename
2015-02-26 15:25:26 +03:00
Mikhail Mutcianko
9f20c36959 add synthetic property renaming by renaming R light class field 2015-02-26 15:25:26 +03:00
Mikhail Mutcianko
885d963c3f add bound property renaming by renaming xml attribute value 2015-02-26 15:25:26 +03:00
Mikhail Mutcianko
621193681f refactor AndroidResourceManager
- move more common methods from xml processor implementations to resource manager
- optimize imports, reformat code
2015-02-26 15:25:25 +03:00
Mikhail Mutcianko
b5e267ed56 fix double renaming issue
- rebuild resource mapping cache on external layout file changes
- move duplicated code to AndroidResourceManager
2015-02-26 15:25:25 +03:00
Mikhail Mutcianko
1b50b226ae move android rename handler out of kotlin property renamer, extract resource manager class 2015-02-26 15:25:25 +03:00
Mikhail Mutcianko
395959bf21 reformat code, optimize imports 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko
2f97e7fadb revert cli converter to stream parsing 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko
996636aa62 add goto declaration support for synthetic android properties 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko
934a3b0436 rename android synthetic id property also renames respective xml resource 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko
d464d89e3d add android synthetic element detecting helpers 2015-02-26 15:25:23 +03:00
dedoz
9899e78329 replace sax with psi based android ui xml parsing in plugin 2015-02-26 15:25:23 +03:00
Mikhail Mutcianko
c24fccc659 fix xml resolving
- replace VirtualFileListener based approach with direct PsiFile reading
2015-02-26 15:25:23 +03:00
Mikhail Mutcianko
35b1cb4fc7 check if android metadata is present before inlining property 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko
79cbfcd750 fix compiler argument tests 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko
21408da521 insert missing copyrights, move ByteArrayClassLoader up 2015-02-26 15:25:22 +03:00
dedoz
8495e06285 add android xml bridge invocation test 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko
2801253a9c add byte code generation 2015-02-26 15:25:21 +03:00
Mikhail Mutcianko
7536170e1d add android manifest support 2015-02-26 15:25:21 +03:00
Mikhail Mutcianko
a4fb49c3dd fix R class not resolved in dummy file 2015-02-26 15:25:21 +03:00
Mikhail Mutcianko
ab0c922f53 refactor XmlHandler, optimize imports, remove unused files 2015-02-26 15:25:20 +03:00
Mikhail Mutcianko
6371197041 add missing module and build dependencies 2015-02-26 15:25:20 +03:00
Mikhail Mutcianko
3c9ec30c20 add writePackage to KotlinWriter 2015-02-26 15:25:20 +03:00
Mikhail Mutcianko
d107ad92a0 refactor converter initialization
- push lazyInit() down to IDE and Cli implementations
- no file listeners created in cli implementation anymore
- fix tests
2015-02-26 15:25:20 +03:00
Mikhail Mutcianko
d557fa8d5d event based file processing
- use VirtualFileListener to wait for ui xml file updates
- optimize imports
2015-02-26 15:25:19 +03:00
Mikhail Mutcianko
208735d92e suppress xml errors in converter
- simply ignore malformed layouts, xml editor in ide will highlight them anyway
2015-02-26 15:25:19 +03:00
Mikhail Mutcianko
eb7534f369 add converter output caching
- add two level caching: per xml conversion result and complete resulting JetFile,
  so that only modified xmls are actually converted, and if no change has been
  made to any of those, last successfully built psi file is returned
- merge AndroidUIXmlPathProvider and AndroidUIXmlParser
- update tests
2015-02-26 15:25:19 +03:00
Mikhail Mutcianko
f5b9b155cd fix ant build
- add frontend.android content to sources path
2015-02-26 15:25:18 +03:00
Mikhail Mutcianko
ec6f9c9fc5 add compiler key for providing android resources path 2015-02-26 15:25:18 +03:00
Mikhail Mutcianko
afee95a37c fix npe when layout xml search path does not exist 2015-02-26 15:25:18 +03:00
Mikhail Mutcianko
d5565db488 obey android project structure when searching for ui xmls
- search for android layout xmls in ProjectRoot/res/layout/ when using IDEPathProvider
2015-02-26 15:25:18 +03:00
Mikhail Mutcianko
2c44f5c4b7 missing files handling in converter
- silently continue if no files were found to convert
2015-02-26 15:25:17 +03:00
Mikhail Mutcianko
155d2fa979 ide analyzer integration stub
- add android ui xml path providers/stubs
- add generated file injection during analysis
2015-02-26 15:25:17 +03:00
Mikhail Mutcianko
aa01d6d7cf auto cast widget to its original type
- change property return type signatures from View to actual widget type
- simplify and update tests
2015-02-26 15:25:17 +03:00
Mikhail Mutcianko
31dc8194f1 add converted result compilation test 2015-02-26 15:25:16 +03:00
Mikhail Mutcianko
1e8769b5f7 android UI xml bridge initial
- add frontend.android module
- add xml ids to kotlin extension properties converter
- add converter basic functional test
2015-02-26 15:25:16 +03:00
Nikolay Krasko
c8c1ce521b Add kotlin runtime to idea-jps-common module dependency
#KT-6826 Fixed
2015-02-26 12:37:32 +03:00
Nikolay Krasko
98a2aa506e Minor: show conflicting elements 2015-02-26 12:37:29 +03:00
Alexander Udalov
6f0ccbfab8 Reuse class loader for kotlin-runtime.jar in codegen tests
Also delete questionable ClassPathInParentClassLoaderTest
2015-02-25 20:13:47 +03:00
Alexander Udalov
b99b1883bc Drop unused parameter in JavaToKotlinClassMap and subclasses 2015-02-25 20:13:46 +03:00
Alexander Udalov
fca7a8c4a2 Drop PrimitiveTypesUtil, store desc in JvmPrimitiveType 2015-02-25 20:13:46 +03:00
Alexander Udalov
27978a7e25 Clarify inapplicable platformName diagnostic message 2015-02-25 20:13:45 +03:00
Dmitry Jemerov
35e8e4d49a Support spellchecking in Kotlin string literals; remove unused and unnecessary support for custom suppressions of spelling errors 2015-02-25 18:00:59 +01:00
Natalia Ukhorskaya
e0e203d7db Debugger: classLoader can be null (ex. classes from android application). JDIEval will use CallerClassLoader for find classes
#KT-6825 Fixed
2015-02-25 16:42:17 +03:00
Natalia Ukhorskaya
957d1c19c5 JDIEval: allow classLoader to be null (load class from caller classloader) 2015-02-25 16:42:17 +03:00
Andrey Breslav
b0422990d9 KT-6527 Wrong diagnostics when compare dynamic to null
#KT-6527 Fixed
2015-02-25 14:59:22 +03:00
Andrey Breslav
a00a118f94 EA-63343 - assert: DescriptorUtils.getClassDescriptorForTypeConstructor
#KT-6835 Fixed
2015-02-25 14:59:22 +03:00
Andrey Breslav
d70d2ca146 Nullability of error types is not known
#KT-6829 Fixed
2015-02-25 14:59:21 +03:00
Nikolay Krasko
f3919db592 Find usages and reference to delegation origin 2015-02-24 21:52:52 +03:00
Nikolay Krasko
377209f0c3 Do not report CONFLICTING_JVM_DECLARATIONS on delegated origin element 2015-02-24 21:33:55 +03:00
Stanislav Erokhin
c6f8a1cfcc Add support local return from lambda with implicit unit type. 2015-02-24 14:14:49 +03:00
Stanislav Erokhin
57fd5cc84c Support local return in lambda without explicit return type 2015-02-24 14:14:49 +03:00
Stanislav Erokhin
def81d30dc Minor: simplify expression 2015-02-24 14:14:48 +03:00
Nikolay Krasko
8ea9d39e98 Do not generate long lines and simplify merge in generated tests 2015-02-24 13:15:09 +03:00
Alexander Udalov
768a67d1f1 Output version upon REPL start 2015-02-24 11:10:26 +03:00
Alexander Udalov
cf0842b135 Fix initialization order in REPL
#KT-6843 Fixed
2015-02-22 16:12:38 +03:00
Andrey Breslav
e47a156e36 KT-6810 Don't report warnings in dummy.kt
#KT-6810 Fixed
2015-02-21 13:51:13 +03:00
Alexey Sedunov
95675176df Change Signature: Add test for KT-5784 "Generate import on function refactoring when parameter changes type"
#KT-5784 Fixed
2015-02-20 19:08:22 +03:00
Alexey Sedunov
a21163b8c4 Change Signature: Add test for KT-4013 "'Change signature' does not add necessary imports"
#KT-4013 Fixed
2015-02-20 19:08:19 +03:00
Alexey Sedunov
8e2b0875c2 Intentions: Forbid conversion of vararg parameter to receiver 2015-02-20 19:08:17 +03:00
Alexey Sedunov
2af83c58c9 Create from usage: Use separate editor for templates which should be placed in Java files 2015-02-20 19:08:14 +03:00
Alexey Sedunov
6bdff82c3a Create from usage: Do not create functions/properties from import directives 2015-02-20 19:08:11 +03:00
Alexey Sedunov
41d51e0a13 Create from usage: Assume String return type for function whch is called inside of string template
#KT-6083 Fixed
2015-02-20 19:08:08 +03:00
Alexey Sedunov
0ae69e0d3e Create from usage: Do not generate function body if it's declared as a trait member
#KT-6078 Fixed
2015-02-20 17:28:41 +03:00
Alexey Sedunov
60d02dab0f Create from usage: Support generation of nested Java classes from usages in Kotlin code 2015-02-20 17:28:40 +03:00
Alexey Sedunov
5cd477279b Create from usage: Support static Java members 2015-02-20 17:28:39 +03:00
Alexey Sedunov
19fc9adffa Create from usage: Support generation of Java fields from usages in Kotlin code 2015-02-20 17:28:38 +03:00
Alexey Sedunov
34d8e1c08c Create from usage: Support generation of Java methods from usages in Kotlin code 2015-02-20 17:28:37 +03:00
Alexey Sedunov
97b0f50d35 Create from usage (function/property): Suggest separate actions for extensions and non-extension declarations
#KT-6023 Fixed
2015-02-20 17:28:36 +03:00
Alexey Sedunov
41a4dd4128 Create from usage: Rename package: createFunction -> createCallable 2015-02-20 17:28:34 +03:00
Alexey Sedunov
ecd9ee45c8 Move: Do not process 'super' references
#KT-6769 Fixed
2015-02-20 17:28:33 +03:00
Alexey Tsvetkov
ae970044e2 JS: extracted ThrowExceptionReporter 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
b01aa5e0a5 JS: simplified parser exceptions 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
802a512899 JS: removed AstConsumer from tests 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
fabcfc7b7f JS: added js() diagnostics tests 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
1e7de9d5d0 JS: removed cli test for js() errors 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
180272e4cb JS: underline js() errors for non-string-literal constants 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
1087ae4779 JS: use ConstantEvaluator at CallExpressionTranslator 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
4f992eeeb4 JS: report right end of js() error 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
05ef358177 JS: check js() call at frontend 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
f5eb39e1f1 JS: added TranslationResult 2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
aa5f237154 JS: use one BindingTrace for translation 2015-02-20 16:01:25 +03:00
Alexey Tsvetkov
baccfa914f JS: removed unused rhino error reporter method 2015-02-20 16:01:25 +03:00
Alexey Tsvetkov
b431bf6fc9 JS: made JsCodeErrorReporter class static 2015-02-20 16:01:25 +03:00
Alexey Tsvetkov
200e3afbe1 JS: moved PatternBuilder to JS frontend 2015-02-20 16:01:25 +03:00
Alexey Tsvetkov
f9648c6f21 Minor in JS: renamed file according to class name 2015-02-20 16:01:25 +03:00
Alexey Tsvetkov
33f6759966 Minor in JS: updated copyrights 2015-02-20 16:01:25 +03:00
Pavel V. Talanov
9cf3a11efc Add quick fixes for newly introduced diagnostics 2015-02-20 14:47:37 +03:00
Pavel V. Talanov
ca3096a948 Prohibit inner classes in objects
Using inner classes in objects makes little sense since objects have single static instance
2015-02-20 14:47:37 +03:00
Pavel V. Talanov
460c1e328f Improve error message for inner class in trait 2015-02-20 14:47:36 +03:00
Pavel V. Talanov
2053da91dd Fix EXPRESSION_TYPE target for QualifierReceiver
Affected completion from objects in some cases
2015-02-20 14:47:36 +03:00
Alexey Tsvetkov
8bc6ce0f0a Minor. Added object file template 2015-02-20 13:43:03 +03:00
Michael Bogdanov
37006ad566 Annotate additional files through bytecode toolwindow analysis 2015-02-20 10:16:22 +03:00
Michael Nedzelsky
ab29c59210 CompileTimeConstantUtils.isArrayCall: use full fqName instead of argument of Intrinsic annotation 2015-02-20 02:33:38 +03:00
Michael Nedzelsky
608b603f58 serialization of compile time constant: add support for expressions <const>: <type> 2015-02-20 02:33:35 +03:00
Michael Nedzelsky
5889112a94 add test for compile time constants without expicit type 2015-02-20 02:33:32 +03:00
Michael Nedzelsky
fac2e38054 Do not serizalize null as compile time constant 2015-02-20 02:33:30 +03:00
Michael Nedzelsky
ead3a1dc65 fix getting compile time initializer before computing deferred type 2015-02-20 02:33:27 +03:00
Dmitry Jemerov
a030585566 EA-64906 - NPE: KdocPackage$KDocReference$c.getParamDescriptors 2015-02-19 14:01:00 +01:00
Dmitry Jemerov
ce4b2db8f6 vendor and homepage 2015-02-19 15:35:46 +03:00
Dmitry Jemerov
8130b98862 correct vendor and homepage in plugin.xml 2015-02-19 15:35:46 +03:00
Valentin Kipyatkov
a0b96231d3 Fixed assertion in internal action 2015-02-19 14:44:38 +03:00
Svetlana Isakova
204e9a0c34 KT-6751 References to type arguments of a type argument not resolved when wrong number of them
#KT-6751 Fixed
2015-02-19 14:43:18 +03:00
Nikolay Krasko
f1774bd6fb Fixed test data according to fixed bug in IDEA JPS. 2015-02-19 14:36:23 +03:00
Valentin Kipyatkov
c9a05aac0f Minor changes after review 2015-02-19 14:11:16 +03:00
Valentin Kipyatkov
67027e2a2d Minor 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
660ac8d63c Fixed bug 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
a137503ee9 More sophisticated import setting supported: *-import when more than N names used (default set to 5) 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
c58536f1d9 Optimize imports: fixed bug with references in class declaration header 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
84027124db Made code more clear 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
5c904b6a94 Fixed keeping of folded state for imports on optimize 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
480ddcb20e Minor 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
d60145d3e8 Optimize imports: references via aliases are treated correctly 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
8c034d4ac7 New optimize imports algorithm supports *-imports code style 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
2e3ed6b66f Refactored AbstractOptimizeImportsTest to inherit from AbstractImportsTest 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
03f7c265d7 Initial implementation of new optimize imports algorithm 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
63182a53c6 Fixed getFileTopLevelScope implementation 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
0a363fc371 Import is placed in some specific order on adding 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
371e0baed1 Dropped methods not used anymore 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
7ad1933695 Dropped obsolete tests 2015-02-19 11:07:01 +03:00
Valentin Kipyatkov
20cf100714 Shorten references inserts imports for global functions and properties too 2015-02-19 11:07:01 +03:00
Michael Bogdanov
664e2781e8 Enable inline in bytecode toolwindow by default 2015-02-19 10:32:04 +03:00
Michael Bogdanov
758c147835 Analyze inlined declarations in bytecode toolwindow 2015-02-19 10:32:00 +03:00
Pavel V. Talanov
5c9554e703 Minor: remove redundant class object 2015-02-18 19:34:02 +03:00
Pavel V. Talanov
d6a942a574 Remove all deprecated OBJECT$ usages from project code 2015-02-18 19:33:56 +03:00
Evgeny Gerashchenko
48a6fb37f9 Worked around private method. There should be API available, anyway. 2015-02-18 18:53:37 +03:00
Alexey Sedunov
f1b3bb6ae7 Join Lines: Fix test data since IDEA now converts single-line comments to block ones when joining lines 2015-02-18 18:53:36 +03:00
Zalim Bashorov
2a593fc437 IDEA: fixed breakpoints in JavaScript debugger. 2015-02-18 18:53:34 +03:00
Nikolay Krasko
fd616a3c8d Update to IDEA 140.2493.5 2015-02-18 18:53:21 +03:00
Evgeny Gerashchenko
460a77275a Added tests with conversion between Java and Kotlin and moving class. 2015-02-18 18:51:59 +03:00
Nikolay Krasko
07d58b55eb Synchronize KotlinJavaPsiFacade with JavaPsiFacadeImpl 2015-02-18 18:51:58 +03:00
Evgeny Gerashchenko
f870388962 Fixed compilation error for IDEA 14.1+ (140 branch) 2015-02-18 18:51:58 +03:00
Alexander Udalov
042230fefc Using factory method instead of deprecated constructor. 2015-02-18 18:51:57 +03:00
Nikolay Krasko
45a3b47664 Fix compilation once again 2015-02-18 18:51:56 +03:00
Nikolay Krasko
440cc20ed9 Add expected action 2015-02-18 18:51:56 +03:00
Nikolay Krasko
20b7a55bf2 Add overrides in order to fix compilation errors 2015-02-18 18:51:55 +03:00
Nikolay Krasko
a49a206de3 Get containing file from original method 2015-02-18 18:51:54 +03:00
Nikolay Krasko
3ec591a6d6 Manually register extension points 2015-02-18 18:51:54 +03:00
Nikolay Krasko
5d3d446ea4 Now PsiElementFinderImpl is registered via extension but it hadn't been added to JavaCoreProjectEnvironment 2015-02-18 18:51:53 +03:00
Alexey Kudravtsev
28b7d71ab7 Registering extension points manually in JetCoreEnvironment. They are not registered by IDEA's core environment code anymore. 2015-02-18 18:51:52 +03:00
Natalia Ukhorskaya
43249e928c Fix tests with annotations: enum constants are now resolved as constants in JavaConstantExpressionEvaluator 2015-02-18 18:51:52 +03:00
Natalia Ukhorskaya
601a33f772 Fix stepping test's testData 2015-02-18 18:51:51 +03:00
Evgeny Gerashchenko
f9f75f1155 Fixed compilation error (IDEA API changed). 2015-02-18 18:51:50 +03:00
Evgeny Gerashchenko
f09fd923f3 Fixed test data according to fixed bug in IDEA JPS. 2015-02-18 18:51:50 +03:00
Evgeny Gerashchenko
501cb08154 Fixed compilation (IDEA API changed). 2015-02-18 18:51:49 +03:00
Evgeny Gerashchenko
1c1ead0471 Minor. Fixed case of test data file. 2015-02-18 14:26:20 +03:00
Evgeny Gerashchenko
a8179a497e KT-5146 "Remove explicit type arguments" should highlight type arguments as unused (not as warning)
#KT-5146 fixed
2015-02-18 13:37:36 +03:00
Evgeny Gerashchenko
b1840ebd99 Suppressing unused parameter annotation when function is entry point. 2015-02-18 13:37:36 +03:00
Evgeny Gerashchenko
943131b7b0 Added button to configure annotations for methods which shouldn't be marked as unused. 2015-02-18 13:37:35 +03:00
Evgeny Gerashchenko
4ddaa5cdda Filtering out non-existent directories from generated classpath. The check is so simple, because there may be, e.g. non-existent production output directory for just created module.
#KT-6703 fixed
2015-02-18 13:37:35 +03:00
Evgeny Gerashchenko
7e9ea23ce0 Minor. Clarified property name. 2015-02-18 13:37:34 +03:00
Evgeny Gerashchenko
d1a2fd9c66 KT-6586 accessing Kotlin class static class object variable's value from Java does not properly update between compiles
#KT-6586 fixed
2015-02-18 13:37:34 +03:00
Alexander Udalov
15a3496dbd Gradle plugin tests: change kotlin-stdlib dependency scope to compile
This way is advertised in the docs anyway. Otherwise J+K projects do not
compile, see 640adec for the explanation
2015-02-18 11:43:50 +03:00
Andrey Breslav
2dcae465f7 Work around the redirect problem on SourceForge 2015-02-17 19:28:11 +03:00
Andrey Breslav
ab93b530f1 Don't use annotations after nullability was forced upon a platform type
#KT-6762 Fixed
 #KT-6763 Fixed
2015-02-17 18:44:46 +03:00
Alexander Udalov
0217121814 Revert "Fixed compilation. Some class files generated by kotlinc may have no annotation (that should be fixed later)."
This reverts commit 4b6112d380.

This workaround is not needed anymore after the fix in e705ff2
2015-02-17 15:32:46 +03:00
Alexander Udalov
a960d2d785 Fix "No descriptor for enum entry" exception
EA-52557, EA-64887
2015-02-17 15:31:45 +03:00
Alexander Udalov
640adecde6 Fix KotlinJpsBuildTest, run J+K tests with runtime
Otherwise javac is not able to find class KotlinClass$Kind, which is used in
annotation argument and for some reason this leads to an exception (in javac)
which gets swallowed and unresolved reference is reported in Java code.

java:INFO:com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
kotlin.jvm.internal.KotlinClass$Kind not found
java:INFO:Errors occurred while compiling module 'm1'
2015-02-16 21:46:23 +03:00
Alexander Udalov
e705ff2517 Write KotlinSyntheticClass annotation on when-by-enum mapping classes 2015-02-16 21:46:22 +03:00
Alexander Udalov
6ce8d6bd2e Serialize descriptors for local/anonymous classes on JVM
Reflection needs this information to work for local classes and anonymous
objects
2015-02-16 21:46:21 +03:00
Alexander Udalov
98b554d995 Fix path to runtime when building kotlin-ant.jar
${kotlin-home}/lib/kotlin-runtime.jar is the newly built runtime, which is not
compiled yet when invoking a clean "ant dist"
2015-02-16 20:19:54 +03:00
Alexander Udalov
0d05fca838 Support serialization/deserialization of local classes
Most of these changes are aimed to support and correctly transform ClassId for
local classes, no actual bytes are written or read at the moment (see next
commits). See the comment on ClassId for clarification.

A hack in DescriptorSerializer which erased anonymous types to Any (which had
been breaking the consistency between descriptors resolved from sources and
from serialized information) is now gone
2015-02-16 20:19:54 +03:00
Alexander Udalov
add9bb34cb Refactor ReadKotlinClassHeaderAnnotationVisitor
Extract a hierarchy of four nested classes instead of anonymous
2015-02-16 20:19:53 +03:00
Alexander Udalov
5d8ae3ed6a Minor, refactor some constants in JvmAnnotationNames
Declare KotlinClass similarly to KotlinSyntheticClass, this will be used later
2015-02-16 20:19:52 +03:00
Alexander Udalov
fdfe3fd73b Minor, serialize/deserialize local visibility
Also support non-subsequent enum values in Flags
2015-02-16 20:19:51 +03:00
Alexander Udalov
cd9898fc43 Minor, rename and invert meaning of ClassId.isTopLevelClass
Also use a simpler constructor and simplify ClassDeserializer.ClassKey
2015-02-16 20:19:50 +03:00
Alexander Udalov
e812c4e67f Introduce KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL 2015-02-16 20:19:50 +03:00
Alexander Udalov
ce26ce0458 Drop "extra visibility" from binary format
Descriptors of Kotlin symbols should always have a visibility known to Kotlin
2015-02-16 20:19:49 +03:00
Alexander Udalov
1609bbcd10 Minor, add FQ name to avoid clash
Maven build compiles runtime.jvm and reflection.jvm together and
IllegalAccessException is ambiguous between java.lang and kotlin.reflect
2015-02-16 20:19:48 +03:00
Alexander Udalov
45fec9257a Minor, move replaceHashWithStar to JetTestUtils 2015-02-16 20:19:48 +03:00
Alexander Udalov
37da154ea2 Minor, move builtins serializer test data 2015-02-16 20:19:47 +03:00
Alexander Udalov
c3909ebbd7 Minor, update outdated comment 2015-02-16 20:19:46 +03:00
Alexander Udalov
245b16dccc Drop unneeded factory methods due to ABI version increase
Either ReflectionFactory or direct creation is now used instead
2015-02-16 20:19:14 +03:00
Alexander Udalov
17c930c84f Use abstract factory for reflection objects on JVM
Introduce an abstract factory class ReflectionFactory which is responsible for creating
reflection objects (KClass, KProperty, ...). The meaningful implementation is
located in "reflection.jvm" where KClassImpl/KPropertyImpl/... are accessible
and can be instantiated. The default implementation will be used in the lite
runtime with no reflection and will return nulls / throw exceptions there.

Put all functions, calls to which are generated by JVM back-end, in one place:
the class named Reflection which contains only static methods. Previously these
functions were scattered across different files in module "reflection.jvm".

The code using reflection may now be compiled against either runtime, but
reflection features will work if and only if reflection is accessible at
runtime
2015-02-16 20:19:13 +03:00
Alexander Udalov
1e50078f6f Delete dependency of 'serialization' on trove4j
Use HashMap of wrapped objects instead of THashMap with custom hashing strategy
2015-02-16 20:19:12 +03:00
nbilyk
121ada0cab JS lib: added missed arguments to Blob constructor.
#KT-6654 Fixed
2015-02-16 19:17:10 +03:00
nbilyk
6afe64dd14 JS lib: added canvas attributes parameter to HTMLCanvasElement::getContext 2015-02-16 19:17:10 +03:00
nbilyk
f4411773c3 JS lib: added missed fields naturalWidth and naturalHeight to HTMLImageElement. 2015-02-16 19:17:10 +03:00
Andrey Breslav
54483dbb95 KT-6118 Redundant type cast can be not redundant?
#KT-6118 Fixed
2015-02-16 18:50:10 +03:00
Andrey Breslav
47f772e75a Assert no lookup in meaningless scope created by commonSupertype() 2015-02-16 18:50:10 +03:00
Andrey Breslav
c61a29d4f5 KT-6774 Cannot find equals() when comparing with null
#KT-6774 Fixed
2015-02-16 18:50:09 +03:00
Andrey Breslav
99b049af20 Minor. Typo fixed 2015-02-16 18:50:09 +03:00
Pavel V. Talanov
df90f16492 Increase stub version 2015-02-16 15:38:49 +03:00
Pavel V. Talanov
32aff01969 Increase abi version 2015-02-16 15:38:48 +03:00
Pavel V. Talanov
1e772e3d1a KDoc: remove visitClassObject override 2015-02-16 15:38:48 +03:00
Pavel V. Talanov
9e48631ccb Minor: Remove redundant implementation getDefaultObjectDescriptor() in missingDependencies.kt 2015-02-16 15:38:47 +03:00
Pavel V. Talanov
1174010f33 JS backend: support named class objects
Temporary solution until named objects in classes are supported in js backend
2015-02-16 15:38:47 +03:00
Pavel V. Talanov
f0003449e5 Test named class object reference resolve 2015-02-16 15:38:46 +03:00
Pavel V. Talanov
96e54b4872 Test accessing class object from java 2015-02-16 15:38:45 +03:00
Pavel V. Talanov
ed5e2a21d1 Restore some of the tests for deprecated OBJECT$ field 2015-02-16 15:38:45 +03:00
Pavel V. Talanov
2d59791cf2 Improve LazyClassDescriptor#getDefaultObjectDescriptor()
To cover the case when default object's name is not unique (redeclaration)
(Calling getClassifier is wrong for this case)
2015-02-16 15:38:44 +03:00
Pavel V. Talanov
b6b83a4683 Minor: Add validation for ClassDescriptor#getDefaultObjectDescriptor() new contract 2015-02-16 15:38:44 +03:00
Pavel V. Talanov
766912c590 Generate additional deprecated "OBJECT$" field for class object
To avoid breaking some code for now
It should be removed later
2015-02-16 15:38:43 +03:00
Pavel V. Talanov
7d5c0dc8bf Refactor: ImplementationBodyCodegen#generateFieldForSingleton() 2015-02-16 15:38:43 +03:00
Pavel V. Talanov
f482768acf Introduce ClassDescriptor#getDefaultObjectDescriptor()
ClassDescriptor#getClassObjectDescriptor (with old semantics) is now a utility
Process usages and replace with calls to a new method where appropriate
2015-02-16 15:38:42 +03:00
Pavel V. Talanov
945072a129 Drop DeserializedResolverUtils and it's usages 2015-02-16 15:38:41 +03:00
Pavel V. Talanov
11ed783e1e Refactor: get rid of MemberFqNameProvider 2015-02-16 15:38:41 +03:00
Pavel V. Talanov
d52d1035d0 Fix newly introduced NPE in UnusedSymbolInspection
getName() and getNameIdentifier() are not in sync for class objects
2015-02-16 15:38:40 +03:00
Pavel V. Talanov
1adf15d01d Update test data for j2k converter tests 2015-02-16 15:38:40 +03:00
Pavel V. Talanov
d689c11848 Update test for class object completion 2015-02-16 15:38:39 +03:00
Pavel V. Talanov
2b0e823695 Improve test for deprecated class object 2015-02-16 15:38:38 +03:00
Pavel V. Talanov
514a551c04 Update diagnostics test for many class objects 2015-02-16 15:38:38 +03:00
Pavel V. Talanov
0ea69dea95 Update duplicate jvm signature test for class objects 2015-02-16 15:38:37 +03:00
Pavel V. Talanov
1972c2f177 Update test data for various tests
Due to slight semantic changes after class object refactor
2015-02-16 15:38:37 +03:00
Pavel V. Talanov
7b837e2631 Updata test data: txt files for diagnostics tests 2015-02-16 15:38:36 +03:00
Pavel V. Talanov
75f55dd99a Update test data that mentioned old <class-object-for-..> name 2015-02-16 15:38:35 +03:00
Pavel V. Talanov
35b88fb1a5 Update test data for write flags test 2015-02-16 15:38:34 +03:00
Pavel V. Talanov
a1f4c06a49 Update test data that mentioned old JvmAbi constants 2015-02-16 15:38:34 +03:00
Pavel V. Talanov
be5f00ad1c Update test data for various stub tests 2015-02-16 15:38:33 +03:00
Pavel V. Talanov
e4b206726d Minor: slightly improve positioning strategy for redeclaration on class object 2015-02-16 15:38:32 +03:00
Pavel V. Talanov
4132946be2 Minor: Override getTextOffset() in JetObjectDeclaration
Availability of some intentions depends on this
2015-02-16 15:38:32 +03:00
Pavel V. Talanov
d9d3f68a39 Drop JetClassObject element and its usages
as class objects are now represented by JetObjectDeclaration element
2015-02-16 15:38:31 +03:00
Pavel V. Talanov
be7f5d01bb Update JetObjectDeclaration after parser changes to parser 2015-02-16 15:38:31 +03:00
Pavel V. Talanov
f1942b1a74 Parser: do not produce CLASS_OBJECT element
"class object" is parsed into OBJECT_DECLARATION instead
2015-02-16 15:38:30 +03:00
Pavel V. Talanov
42d2b97c09 Remove all class object related constants and utils from JvmAbi 2015-02-16 15:38:30 +03:00
Pavel V. Talanov
894c3bceac Test: add jvm backend test for named class object 2015-02-16 15:38:29 +03:00
Pavel V. Talanov
72f94963ab Tests: add resolve test for named class object 2015-02-16 15:38:28 +03:00
Pavel V. Talanov
2e837c6586 Parser: allow names to be specified for class objects 2015-02-16 15:38:28 +03:00
Pavel V. Talanov
c29ba63a74 Minor: Simplify getClassObjectType() 2015-02-16 15:38:27 +03:00
Pavel V. Talanov
0343fd8fc7 Rework class objects
Class objects have name "Default" by default
Do not produce synthetic class objects
Class objects have new semantics:
    class "A" has class object "B" if literal "A" can be used as a value of type "B"
Class objects act like ordinary nested objects
    i.e. are accessible from class scope via getClassifier()
Jvm backend: class object fields and class have the name of class object ("Default")
	as opposed to special "OBJECT$" and "object"
Serialization: only the name of class object is needed to serialize data
2015-02-16 15:38:27 +03:00
Evgeny Gerashchenko
4b6112d380 Fixed compilation. Some class files generated by kotlinc may have no annotation (that should be fixed later). 2015-02-16 15:34:35 +03:00
Evgeny Gerashchenko
dd89311d22 Not reading class file three times incremental caches. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko
3c410aab5b Updated source roots of idea libraries. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko
7ed36f08e6 Moved cli-common before idea-full. cli-common exports dependency on cli-parser library of version different from packaged in idea-full. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko
9f159b1fea Extracted cli-parser to separate library. Removed full dependency jps-plugin -> idea-full. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko
1f10cbb0d5 Moved constant to idea module and removed redundant dependency. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko
1484ce4a46 Renamed and moved module ide-compiler-runner to idea-jps-common.
Motivation: it has only a bunch of constants and a trivial class needed in idea and jps modules.
2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko
bca8711182 Removed redundant dependencies. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko
6d9240c52f Minor. Simplified by subclassing from abstract class. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko
cdf29fb2f6 Removed old migration code for incremental compilation setting. 2015-02-13 21:51:49 +03:00
Evgeny Gerashchenko
3e1b869070 Moved parts of ide-compiler-runner to direct modules. 2015-02-13 21:51:49 +03:00
Nikolay Krasko
0f3971323f Go to Declaration does not work on usage of constant from class object in Java (KT-6172)
#KT-6172 Fixed
2015-02-13 20:28:51 +03:00
Nikolay Krasko
56c2870ac6 Refactoring: make parameters not-null 2015-02-13 20:28:50 +03:00
Nikolay Krasko
52f1c4048a More test for conflicting declarations with delegation 2015-02-13 20:28:50 +03:00
Zalim Bashorov
a851c406b4 Minor: specify maxmemory for new-kotlinc explicitly to avoid run VM with default values which sometimes leads to fail build. 2015-02-13 19:07:51 +03:00
Zalim Bashorov
905ce426c7 IDEA: don't try to create run configuration by JUnit and TestNG producers for Kotlin JS modules. 2015-02-13 19:03:01 +03:00
Evgeny Gerashchenko
4704941488 Worked around yet another case of exception from inspection when code has "native" annotation.
#KT-6764 fixed
2015-02-13 18:10:54 +03:00
Valentin Kipyatkov
d579e4906b Minor changes after code review 2015-02-12 19:47:25 +03:00
Valentin Kipyatkov
dd0664939c Commented out 3 tests to be fixed later 2015-02-12 19:47:11 +03:00
Valentin Kipyatkov
ce26437cd0 Corrected test data because it will be fixed by KT-6545 2015-02-12 18:18:07 +03:00
Valentin Kipyatkov
d2f11cdc05 Fixed test data which was incorrect (no nested classes inside inner class allowed!) 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov
3710d4105c Do not shorten too much 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov
78d927c3c3 Added TODO 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov
49e6b97752 Fixed important bug in reference shortening 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov
6acba00599 Working on new imports insertion on copy/paste 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov
4031357ae4 Dropped class object 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov
2e275e7624 Removed useless nested object 2015-02-12 18:18:04 +03:00
Valentin Kipyatkov
25f4987299 Minor code improvements 2015-02-12 18:18:04 +03:00
Valentin Kipyatkov
b4a8be4a7e No skipping of super and this expression on copy/paste needed (probably has been copied from java version before) 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov
1912f5b919 writeImportToFile removed from interface 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov
2d6ed5dd42 One more usage switched to use of new import insertion method 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov
2d4b1d9219 Switched to use of new import insertion API in a test (but had to use a hack!) 2015-02-12 18:18:02 +03:00
Valentin Kipyatkov
8a64f7ae84 Removed utility not needed anymore 2015-02-12 18:18:02 +03:00
Valentin Kipyatkov
b091eaa3cd Fixed KT-2483 "Add import" quick fix offers adding import to non-API class
#KT-2483 Fixed
2015-02-12 18:18:02 +03:00
Valentin Kipyatkov
546836d5dd Fixed bug with importing some of SAM-constructors and factory functions
#KT-3449 Fixed
2015-02-12 18:18:01 +03:00
Valentin Kipyatkov
2c5953dbe6 Dropped confusing method signature 2015-02-12 17:34:51 +03:00
Valentin Kipyatkov
e57799ca00 KT-3521 Import suggestions icons are always classes
#KT-3521 Fixed
2015-02-12 17:34:51 +03:00
Valentin Kipyatkov
8f7cf38e67 Switched to use of new method for import insertion 2015-02-12 17:34:51 +03:00
Valentin Kipyatkov
20c62a2835 *-imports inserted by default in non-test mode 2015-02-12 17:34:50 +03:00
Valentin Kipyatkov
4fff1f44bb Fixed bug in import insertion: it did not work with descriptors taken before modifications 2015-02-12 17:34:50 +03:00
Natalia Ukhorskaya
7a4b291c85 Debugger: implement compiling evaluator 2015-02-12 12:16:48 +03:00
Natalia Ukhorskaya
91e745704a Debugger: temporary copy some utils functions from idea 2015-02-12 12:16:47 +03:00
Natalia Ukhorskaya
3864f182da Debugger: return void value for empty code fragment 2015-02-12 12:16:46 +03:00
Natalia Ukhorskaya
187806d061 Debugger: remove usage of JDIEval during finding local variable in frame because it invokeMethod (loadClass) for find field type which invalidates frame 2015-02-12 12:16:46 +03:00
Natalia Ukhorskaya
3802957c15 Debugger: add tests for accessing outer class members from lambda inside inner class 2015-02-12 12:16:45 +03:00
Evgeny Gerashchenko
d3d30106a4 Corrected updating Java mappings for package facade classes. We report all source files for it, not only currently compiled. 2015-02-11 19:19:55 +03:00
Evgeny Gerashchenko
1a486bf969 Reverted wrong test data for tests where files are added to package. Let them fail. 2015-02-11 19:19:55 +03:00
Evgeny Gerashchenko
02faa02a35 Checking Java mappings after rebuild (failing now for partially compiled package facades) 2015-02-11 19:19:55 +03:00
Alexander Udalov
29c501e813 Remove useless InjectorForLazyResolveWithJavaUtil, move methods to LazyResolveTestUtil 2015-02-11 18:37:13 +03:00
Alexander Udalov
9f74d64d03 Avoid using FQNAME_TO_CLASS_DESCRIPTOR slice where module exists 2015-02-11 18:37:13 +03:00
Alexander Udalov
25775ee516 Drop TraceBasedJavaResolverCache, inline into LazyResolveBasedCache 2015-02-11 18:37:12 +03:00
Alexander Udalov
021315f049 Minor, make ModuleDescriptor public in injectors
It's much more convenient to call injector.getModule() than
injector.getResolveSession().getModuleDescriptor()
2015-02-11 18:37:12 +03:00
Alexander Udalov
5dcf9df6ab Drop InjectorForJavaDescriptorResolver and dependencies
Use InjectorForLazyResolveWithJava instead, it does essentially the same
2015-02-11 18:37:11 +03:00
Alexander Udalov
745ac7355b Simplify ResolveSessionUtils and LazyResolveBasedCache 2015-02-11 18:37:11 +03:00
Alexander Udalov
1e8d8d0a99 Cleanup FqNamesUtil.kt
Delete unused, move some utilities to fqNameUtil.kt in IDE, rewrite comments
2015-02-11 18:37:11 +03:00
Alexander Udalov
9b28e19551 Use CodegenContext to determine outer class & enclosing method 2015-02-11 18:10:49 +03:00
Alexander Udalov
c417d984c4 Minor, move tests under common directory 2015-02-11 18:10:46 +03:00
Alexander Udalov
32c371dd41 Minor, uncomment previously failing checks
#KT-5092 Fixed
2015-02-11 18:10:44 +03:00
Alexander Udalov
22e5efc7cd Remove useless parameter of FunctionCodegen.generateDefault
JvmMethodSignature can now be perfectly obtained by JetTypeMapper.mapSignature
2015-02-11 18:10:43 +03:00
Alexander Udalov
f4d4fc042b Remove useless parameter of FunctionCodegen.generateMethod
JvmMethodSignature can now be perfectly obtained by JetTypeMapper.mapSignature
2015-02-11 18:10:42 +03:00
Alexander Udalov
e7a744b315 Make JetTypeMapper aware of SAM constructor arguments
This obsoletes 'replaceName' workaround that was present in ClosureCodegen but
missing in other crucial call sites of mapSignature, e.g. generation of
EnclosingMethod info

 #KT-6691 Fixed
2015-02-11 18:10:41 +03:00
Alexander Udalov
ca2cfb9859 Refactor SAM constructor invocation in JVM codegen
Compute all necessary info in CodegenAnnotatingVisitor and save to trace to be
read by ExpressionCodegen later
2015-02-11 18:10:39 +03:00
Alexander Udalov
c84486f860 Refactor CodegenContext and subclasses
Drop unused methods, inline parameters, fix warnings, etc.
2015-02-11 18:10:38 +03:00
Alexander Udalov
6ee4c70f2f Minor, extract OuterClassInfo 2015-02-11 18:10:37 +03:00
Alexander Udalov
61a27da8d5 Move and simplify AsmUtil.writeOuterClassAndEnclosingMethod 2015-02-11 18:10:36 +03:00
Alexander Udalov
a280599969 Fix wrong checkcast for === on objects
#KT-6747 Fixed
2015-02-11 18:10:35 +03:00
Alexander Udalov
37ec103d6a Regenerate tests 2015-02-11 18:10:33 +03:00
Evgeny Gerashchenko
145bd077fc Merge pull request #570 from JetBrains/rr/yole/generate-more-stdlib
Replace some manually duplicated stdlib method implementations with generated code
2015-02-11 17:26:30 +04:00
Alexey Sedunov
3614a0a3de Quickfix Test (multifile): Check changes in extra files 2015-02-11 14:45:15 +03:00
Alexey Sedunov
e75bd1b41b Create from usage: Support extension members for Java classes 2015-02-11 14:45:14 +03:00
Alexey Sedunov
9f3ba50dc5 Extract function: Do not report conflicts for fake overrides/delegates of the same callable declaration 2015-02-11 14:45:12 +03:00
Alexey Sedunov
cef9996ba7 Intentions: Convert extension receiver to parameter and vice versa 2015-02-11 14:40:28 +03:00
Alexey Sedunov
7b6160b92f Change Signature: Make JetChangeSignatureData read-only and use JetDelegatingMethodDescriptor for refactoring configuration 2015-02-11 14:40:27 +03:00
Alexey Sedunov
fecfc93e63 Change Signature: Support conversion between extension and non-extension functions (UI) 2015-02-11 14:40:27 +03:00
Alexey Sedunov
96866a108f Change Signature: Support conversion between extension and non-extension functions 2015-02-11 14:40:26 +03:00
Alexey Sedunov
b31da56e09 Shorten References: Introduce shortening options 2015-02-11 14:40:25 +03:00
Alexey Sedunov
8928c0282a Minor: Generalize visitor type of JetElement.acceptChildren() 2015-02-11 14:40:24 +03:00
Alexey Sedunov
e68481557e Shorten References: Support 'this' simplification 2015-02-11 14:40:22 +03:00
Alexey Sedunov
3a7ae4303a Change Signature: Translate JetParameterUsage to Kotlin 2015-02-11 14:40:21 +03:00
Alexey Sedunov
a406068aa1 Change Signature: Rename JetParameterUsage.java to .kt to keep history 2015-02-11 14:40:20 +03:00
Dmitry Jemerov
2963aea6b9 doc review 2015-02-11 12:38:07 +01:00
Dmitry Jemerov
ff49310b7e remove redundant filter() 2015-02-11 12:28:23 +01:00
Dmitry Jemerov
fe704d6042 More standard library documentation updates. 2015-02-10 19:44:17 +01:00
Alexander Udalov
63959c2ebf Drop temporary workaround, problem is fixed now 2015-02-10 16:32:47 +03:00
Alexander Udalov
cd6d04b3ba Fix incompleteHierarchyInJava test on Windows
Normalize path delimiters to '/' via CliBaseTest
2015-02-10 16:31:58 +03:00
Dmitry Jemerov
4352023d60 generate more methods and properties in the standard library 2015-02-10 14:31:20 +01:00
Valentin Kipyatkov
b03b96f202 Fixed optimization in IterableTypesDetector which did not work from the beginning + make it work on FuzzyType 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov
b2275ae424 Better equals in FuzzyType + do not need to treat not used parameters as free 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov
3c573d555a Smart completion: heuristic parameter types for some methods like Collection.contains() 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov
3b6b9a45e2 Refactored code to avoid code duplication 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov
6d06436c34 KT-6376 Smart completion should work after "in" and "!in"
#KT-6376 Fixed
2015-02-10 16:13:50 +03:00
Valentin Kipyatkov
8f688ab7b7 Renamed 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov
eae244c308 Grouped test data for smart completion by folders 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov
fb7cd623ae Moves and renames 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov
a32029f1fc Smart completion for for loop range to use loop variable type if defined 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov
f057445f6e KT-5035 Smart completion should work after "in" keyword in for loop
#KT-5035 Fixed
2015-02-10 16:13:50 +03:00
Evgeny Gerashchenko
86debfecf2 Merge pull request #561 from artem-zinnatullin/readme-building-section-jdk
Added info about JDK 1.6 into "Building" section of ReadMe.md
2015-02-10 17:13:19 +04:00
Andrey Breslav
0b41136c7c Minor. Logic clarified 2015-02-10 06:55:49 +01:00
Andrey Breslav
fcb6055913 SenselessComparisonChecker used for @NotNull values from Java 2015-02-10 06:55:49 +01:00
Andrey Breslav
d31b9be5fb SenselessComparisonChecker extracted 2015-02-10 06:55:49 +01:00
Andrey Breslav
f36d6ce5b2 Reporting USELESS_ELVIS and UNNECESSARY_NOT_NULL_ASSERTION on Java's @NotNull values 2015-02-10 06:55:48 +01:00
Andrey Breslav
30f5c1b953 Reporting unnecessary safe calls on Java's @NotNull values 2015-02-10 06:55:48 +01:00
Andrey Breslav
1d4109aec1 Retaining annotations on Java array types 2015-02-10 06:55:48 +01:00
Andrey Breslav
fc3cd20456 Minor. Formatting fixed 2015-02-10 06:55:47 +01:00
Andrey Breslav
fcac449c70 Nullability-related warnings for receivers
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00
Andrey Breslav
5db6bb04e3 Basic Java nullability warnings implemented
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00
Andrey Breslav
29d24374d6 Type approximation factored out as an additional checker 2015-02-10 06:55:47 +01:00
Andrey Breslav
a35c6b1566 AdditionalTypeCheckers introduced to factor out approximation logic later 2015-02-10 06:55:46 +01:00
Andrey Breslav
82ace2b251 ResolutionContext used always for checkType() 2015-02-10 06:55:46 +01:00
Andrey Breslav
0e972acf8c == turned into a safe-call 2015-02-10 06:55:46 +01:00
Alexander Udalov
560b2346a6 Fix ScriptTest, use full JDK instead of mock
Mock JDK has an incomplete hierarchy (OutputStream -> Flushable) and this is
relevant in ScriptTest because it collects all compiler output messages
2015-02-10 00:34:18 +03:00
Dmitry Jemerov
7827bbf64b Standard library documentation updates. 2015-02-09 19:19:29 +01:00
Alexander Udalov
6763d61aae Minor, fix warning, don't create empty map 2015-02-09 21:14:03 +03:00
Alexander Udalov
a6ac56ae5a Sort source files in JetCoreEnvironment
Is supposed to help make error situations more deterministic
2015-02-09 21:14:03 +03:00
Alexander Udalov
339a38b69b Minor, use module.resolveTopLevelClass() utility 2015-02-09 21:14:03 +03:00
Alexander Udalov
192e69e90b Minor, add toString() to JavaElementFinder.FindClassesRequest 2015-02-09 21:14:03 +03:00
Alexander Udalov
4128655893 Report incomplete hierarchy error
This is the case when you reference a Java class in Kotlin whose superclass is
not resolved. Previously this fact was swallowed by LazyJavaClassDescriptor
leading to mysterious compilation errors

 #KT-5129 Fixed
2015-02-09 21:14:02 +03:00
Alexander Udalov
28d8c8906a Use module instead of trace in light class search
Fixes weird and infrequent compilation errors in KotlinLightClassForPackage.kt
2015-02-09 21:14:02 +03:00
Dmitry Jemerov
246cce0502 Merge pull request #569 from yole/kdoclinkparser-npe
fix NPE in KDocLinkParser
2015-02-09 18:38:15 +01:00
Dmitry Jemerov
084470e840 fix NPE in KDocLinkParser 2015-02-09 18:21:50 +01:00
Alexander Udalov
ebed59e26a Fix temporary workaround: bridge was not generated 2015-02-09 19:23:19 +03:00
Alexey Sedunov
baaabecaf9 Shorten references: Do not process shortened elements since they become invalid (and can't be analyzed) 2015-02-09 13:02:05 +03:00
Valentin Kipyatkov
c915d2b0cd Auto-import popup uses new algorithm for import insertion 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov
0967ccb1cd Filtering out nested elements for reference shortening 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov
033b626a08 Fixed test data 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov
78be48ace8 Minor refactoring 2015-02-09 13:02:03 +03:00
Valentin Kipyatkov
a3f546c6f9 Moved classes to other packages 2015-02-09 13:02:03 +03:00
Valentin Kipyatkov
09a99ae605 Moved import policy into ImportInsertHelper 2015-02-09 12:56:01 +03:00
Valentin Kipyatkov
952c64f947 Rewritten shortening references algorithm to work correctly with new smart import insertion 2015-02-09 12:56:01 +03:00
Valentin Kipyatkov
33ae316899 Minor 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
33f979768d More elegant shortening of user type 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
3bc2f89a1b Corrected test data after changes in import insertion + added when more test which fails with the current reference shortening algorithm 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
5d516a5f72 No need to shorten non-affected references in quickfixes 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
2fd51c30cf No redundant import optimization 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
f62391ca1d Minor code improvements 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
22d805aede Fixed a bug in import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov
ef8be9560a Import insertion helper is not confused by inaccessible classes + check visibility of imported declarations through PackageViewDescriptor instead of PackageFragmentDescriptor 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov
dfe71ef7ae Import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov
975b67ed29 Minor refactoring after conversion 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov
f6df6eaeea Converted to Kotlin (step 2) 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov
98be4566d2 Converted to Kotlin (step 1) 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov
ca2a46e42f Auto-import popup to work for ambiguous class name 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov
0686629e49 Code refactoring after conversion 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov
c8ecbcf088 Converted file to Kotlin (step 2) 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov
b9080d41d4 Converted file to Kotlin (step 1) 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov
02e63196f8 Performance optimization 2015-02-09 12:55:21 +03:00
Alexander Udalov
720942b05f Temporary workaround for compilation errors in KotlinLightClassForPackage 2015-02-09 12:41:59 +03:00
Nikolay Krasko
6f6a65cb8d Convert to LinkedHashSet 2015-02-06 23:53:17 +03:00
Nikolay Krasko
9173c59969 Fix deprecated warning 2015-02-06 23:53:16 +03:00
Nikolay Krasko
de22bfbde9 Refactoring: extract method createFakeClsFile 2015-02-06 23:53:16 +03:00
Nikolay Krasko
8dd910bd36 Convert to Kotlin KotlinLightClassForPackage: fixes for j2k converter 2015-02-06 23:53:15 +03:00
Nikolay Krasko
a4e2c3b6fa Convert to Kotlin KotlinLightClassForPackage: j2k converter 2015-02-06 23:53:14 +03:00
Nikolay Krasko
082ac7a05f Convert to Kotlin KotlinLightClassForPackage: file rename 2015-02-06 23:53:13 +03:00
Nikolay Krasko
c9c3a1c924 Get containing with deferred stub evaluation
Tested in org.jetbrains.kotlin.idea.quickfix.QuickFixMultiFileTestGenerated.CreateFromUsage.CreateVariable.Parameter#testPlatformType
Resolve of Java element triggers resolve for all classes in package in IDE. One of them is Kotlin light class for package. In case when
some declarations in that packages has references to Java class from current package, compiler goes to recursion.
2015-02-06 23:53:12 +03:00
Dmitry Jemerov
c366da95ac move KDocFinder to plugin because it's not used in compiler; wrap it in an object to avoid package facade conflicts; add test to findKDoc() and fix it so that it actually works 2015-02-06 18:13:35 +01:00
Dmitry Jemerov
fdfb843fdc add @sample known tag; handle @constructor tag in findKDoc() 2015-02-06 16:58:36 +01:00
Dmitry Jemerov
70cf3e9c60 KDoc link parsing rewrite.
Support qualified names immediately after tag (@see or @param). Detect whether a tag is followed by a reference immediately while lexing, remove TEXT_OR_LINK token type. Remove duplicate nested KDocLink nodes from the PSI structure.
2015-02-06 16:33:55 +01:00
Dmitry Jemerov
cc5edc332d inherit documentation for properties as well as functions 2015-02-06 16:32:41 +01:00
Evgeny Gerashchenko
478118c12a Extracted common function getRecompilationDecision. 2015-02-06 17:44:42 +03:00
Evgeny Gerashchenko
e5fd6bc067 Minor. Inlined trivial functions. 2015-02-06 17:44:42 +03:00
Evgeny Gerashchenko
432408e1a8 Checking source to output mapping after rebuild. 2015-02-06 17:44:41 +03:00
Evgeny Gerashchenko
c5593a5b80 Correctly processing disappeared protos, files with constants/inline function. 2015-02-06 17:44:41 +03:00
Evgeny Gerashchenko
5b89f88447 Minor. Simplified getObsoletePackageParts() and similar functions. 2015-02-06 17:44:40 +03:00
Evgeny Gerashchenko
89f3d21ba4 Clearing incremental cache for removed files without scanning output directory. 2015-02-06 17:44:40 +03:00
Evgeny Gerashchenko
602642715c Checking incremental cache dump after make. Comparing it with dump after rebuild. 2015-02-06 17:44:40 +03:00
Evgeny Gerashchenko
f071802e19 Simplified process of filtering out obsolete package parts and loading descriptors from incremental caches.
Now when file is deleted or dirty (compiled right now), its old package part is used. Current package of file doesn't matter.
2015-02-06 17:44:39 +03:00
Evgeny Gerashchenko
512ea72e69 Minor. Green code and formatting. 2015-02-06 15:56:33 +03:00
Evgeny Gerashchenko
84ca0a5b4e Minor. Green code. 2015-02-06 15:56:33 +03:00
Evgeny Gerashchenko
5663383fea Minor. Removed unused property. 2015-02-06 15:56:33 +03:00
Natalia Ukhorskaya
12cdcc6e05 Minor: fix warnings 2015-02-06 11:21:17 +03:00
Natalia Ukhorskaya
2f931f36c8 Implement extra variables for debugger 2015-02-06 11:21:17 +03:00
Natalia Ukhorskaya
3a03cb48df Debugger Tests: create context in onBreakpoint method 2015-02-06 11:21:16 +03:00
Alexey Sedunov
03e076aba3 Intentions: function <-> property conversion 2015-02-05 23:12:38 +03:00
Alexey Sedunov
15ebbdb349 Refactoring: Extract callable hierarchy logic from JetChangeSignature 2015-02-05 23:12:35 +03:00
asedunov
3ca51a516e Merge pull request #564 from JetBrains/rr/yole/kdoc-completion
completion in kdoc
2015-02-05 23:10:02 +03:00
Dmitry Jemerov
49cecc35fd completion in kdoc 2015-02-05 18:30:02 +01:00
Dmitry Jemerov
f450ff8ece quick test for unresolved reference inspection 2015-02-05 16:28:34 +01:00
Dmitry Jemerov
66887db42e highlight unresolved references in KDoc 2015-02-05 16:28:34 +01:00
Dmitry Jemerov
56d85c2033 don't parse links which aren't Kotlin identifiers and have an explicitly specified destination 2015-02-05 16:27:37 +01:00
Natalia Ukhorskaya
1ab51a08aa Optimize search of package part files for JetPositionManager 2015-02-05 16:42:23 +03:00
Natalia Ukhorskaya
360a496724 Gradle plugin: update to 1.1.0-rc1
#KT-6729 Fixed
2015-02-05 16:42:22 +03:00
Evgeny Gerashchenko
97a54e88af Merge pull request #563 from JetBrains/kdoc-render-package
as a workaround for KT-4502, wrap KDoc rendering functions in an object
2015-02-05 16:26:33 +04:00
Dmitry Jemerov
2bdb222516 as a workaround for KT-4502, wrap KDoc rendering functions in an object 2015-02-05 12:44:26 +01:00
Evgeny Gerashchenko
6eead1b1a1 Merge pull request #559 from JetBrains/rr/yole/template-context-comments
live template context type for comments in Kotlin; disable other context...
2015-02-05 12:32:45 +04:00
Artem Zinnatullin
6c1f7393b8 Added info about JDK 1.6 into "Building" section of ReadMe.md 2015-02-05 03:39:18 +03:00
Alexey Sedunov
11b60f6604 Light Classes: Delegate getUseScope() to original elements
#KT-6699 Fixed
2015-02-04 23:38:18 +03:00
Alexey Sedunov
25ef47a450 Change Signature: Do not render qualified names of parameter types by default
#KT-6725 Fixed
2015-02-04 23:38:17 +03:00
Alexey Sedunov
57763e10e0 Create from usage: make new member function/property private by default
#KT-6689 Fixed
2015-02-04 23:38:16 +03:00
Alexey Sedunov
eac735e91a Change parameter type: Make parameter type nullable (instead of Nothing?) if null is passed as an argument
#KT-6634 Fixed
2015-02-04 23:38:14 +03:00
Alexey Sedunov
1e9f95d896 Create from usage: Place caret in the declaration body/at the identifier
and select function body
 #KT-6613 Fixed
 #KT-6688 Fixed
2015-02-04 23:38:13 +03:00
Dmitry Jemerov
26dd9a8c6a test for live template context type; fix a couple of bugs in existing context types 2015-02-04 19:57:58 +01:00
Dmitry Jemerov
621276aafe live template context type for comments in Kotlin; disable other contexts inside doc comments
#KT-6735 fixed
2015-02-04 18:37:44 +01:00
Dmitry Jemerov
3253754395 code review 2015-02-04 17:26:48 +01:00
Dmitry Jemerov
c0e7d1faf2 add references to kdoc; support resolve and rename 2015-02-04 17:26:47 +01:00
Dmitry Jemerov
40f459306a parse qualified names in kdoc 2015-02-04 17:26:46 +01:00
Dmitry Jemerov
223882d292 correctly parse tag in the beginning of doc comment 2015-02-04 17:26:46 +01:00
Alexander Udalov
1c87464695 Change properties to methods in light class hierarchy
There's a Kotlin-Java-Kotlin hierarchy with an abstract property in a
superclass and its implementation (as a get-method) in the Java subclass, which
caused problems because Kotlin subclass can't have both (different symbols,
same JVM signatures)
2015-02-04 14:57:49 +03:00
Alexander Udalov
cafc1ea24d Fix resolution of inherited Kotlin properties in Java classes
#KT-6720 Fixed
2015-02-04 14:57:47 +03:00
Alexander Udalov
5170ab3588 Fix Intrinsics.sanitizeStackTrace for depth > 1 2015-02-03 21:40:40 +03:00
Alexander Udalov
5c2d0c6173 Generate not-null assertions on extension receiver parameters 2015-02-03 21:40:39 +03:00
Alexander Udalov
39c9216edc Fix shameful assertion message error introduced after extracting method 2015-02-03 21:20:25 +03:00
Evgeny Gerashchenko
0d0222e1aa Expanded workaround for EA-64030 (IDEA doesn't allow keywords in cls annotations). 2015-02-03 17:31:25 +03:00
Dmitry Jemerov
71dbe671fa rename tag value to link 2015-02-03 13:24:58 +01:00
Dmitry Jemerov
31d6ca8731 highlight links in KDoc; correctly highlight first word following tag name 2015-02-03 13:24:58 +01:00
Michael Nedzelsky
df8fed096c add support for compile time constant serialization 2015-02-03 14:41:24 +03:00
Natalia Ukhorskaya
d45a1f3e44 Implement getFqName for KotlinLightClassForCompiledDeclaration 2015-02-03 14:35:57 +03:00
Andrey Breslav
0f0f205248 Serializing information about star projections 2015-02-02 19:52:02 +03:00
Andrey Breslav
fecf6f9fdf Star projection information preserved in substitutions
#KT-6700 Fixed
2015-02-02 19:52:01 +03:00
Andrey Breslav
da639039bd KT-6698 Bad class file when using a star-projection on a Java's recursive generic parameter
#KT-6698 Fixed
2015-02-02 19:52:00 +03:00
Alexander Udalov
8d5a6d729e build.xml: use preloader to serialize built-ins to improve performance 2015-02-02 16:46:53 +03:00
Alexander Udalov
5b70995ce1 build.xml: simplify new-kotlinc macro
- passing sources to "-classpath" is no longer needed because the logic was
  implemented in K2JVMCompiler
- skipping javac2 for stdlib is no longer needed because the corresponding
  error is no longer reproducible since "skip" was added to javac2
- get rid of unneeded properties in favor of Ant's toString feature
2015-02-02 16:46:49 +03:00
Nikolay Krasko
e802044c60 Additional cache for not-found packages 2015-02-02 14:15:04 +03:00
Nikolay Krasko
a8557180f1 Register KotlinJavaPsiFacade as component 2015-02-02 14:15:01 +03:00
Nikolay Krasko
c8de43f93e findPackage() parametrize with scope 2015-02-02 14:14:59 +03:00
Nikolay Krasko
07e74f3179 Refactoring: rename class 2015-02-02 14:14:57 +03:00
Nikolay Krasko
aff9ac65cf Remove unnecessary intermediate class 2015-02-02 14:14:55 +03:00
Nikolay Krasko
f5da351e8a Move KotlinPsiElementFinderImpl and add wrapper interface to avoid creating many unsupported methods 2015-02-02 14:14:54 +03:00
Nikolay Krasko
4a0e7489dd Remove all unused code from JavaPsiFacadeImpl 2015-02-02 14:14:52 +03:00
Nikolay Krasko
f9f6ae4625 Fight with "File accessed outside allowed roots" 2015-02-02 14:14:50 +03:00
Alexey Sedunov
2dbfd1fc4c Move Statement: Fix comma placement for class parameter
#KT-6672 Fixed
2015-01-30 21:16:27 +03:00
Alexander Udalov
6235741f7f Merge pull request #555 from JetBrains/rr/yole/putfield-null
Don't generate redundant initializers for 'var' properties.
2015-01-30 19:19:35 +03:00
Dmitry Jemerov
37651ae886 use temporary binding trace 2015-01-30 16:00:59 +01:00
Evgeny Gerashchenko
a492e248fe Added workaround for the problem that IDEA doesn't allow keywords in cls annotations. 2015-01-30 17:50:55 +03:00
Dmitry Jemerov
6442b61db8 Don't generate redundant initializers for 'var' properties.
Since only 'val' properties store initializers as compile time constants in descriptors, we need to take the initializer expression from the PSI and try to evaluate it as a constant.

 #KT-6661 fixed
2015-01-30 14:05:25 +01:00
Evgeny Gerashchenko
c1b6e3a63d Minor. Swapped test data. "other" and "same" packages were confused. 2015-01-30 14:01:33 +03:00
Evgeny Gerashchenko
3ee35ff34e Minor. Added source path for library. 2015-01-30 14:01:33 +03:00
Evgeny Gerashchenko
1e3558afc6 Simple changing temp directory in JPS test for easier debugging. 2015-01-30 14:01:32 +03:00
Evgeny Gerashchenko
0e7d7ac709 Workaround for type inference bug (KT-6694, for IDEA 140 branch) 2015-01-30 14:00:46 +03:00
Svetlana Isakova
6511086034 Rename: PartialBodyResolveProvider -> StatementFilter 2015-01-30 13:33:37 +03:00
Svetlana Isakova
a2f03f2d52 Fix: constraint T? >: Int! should transform to T >: Int 2015-01-30 13:33:37 +03:00
Svetlana Isakova
f5fb3246ae Rename: deparenthesizeArgument -> getLastElementDeparenthesized 2015-01-30 13:33:36 +03:00
Svetlana Isakova
95209d37dd Used partial resolve filter to find the last statement in a block 2015-01-30 13:33:36 +03:00
Svetlana Isakova
8c1ef59963 Minor refactoring: removed unnecessary parameter,
inlined method
2015-01-30 13:33:36 +03:00
Valentin Kipyatkov
0cffdeb973 Added 2 failing tests for bugs in resolve 2015-01-30 13:33:36 +03:00
Svetlana Isakova
0f370a7cf6 Refactoring: extracted several functions to make kotlin compile 2015-01-30 13:33:36 +03:00
Svetlana Isakova
279f09ee45 Removed method 'hasTypeConstructorMismatchAt' from status
Used ConstraintError's instead
2015-01-30 13:33:36 +03:00
Svetlana Isakova
1d67c1edea Converted Renderers to kotlin 2015-01-30 13:33:36 +03:00
Svetlana Isakova
8766120b9c Rename file to .kt 2015-01-30 13:33:35 +03:00
Svetlana Isakova
6cac6350a6 Fixed rendering of error message for 'cannot capture type' error
Type variable should be chosen correctly
2015-01-30 13:33:35 +03:00
Svetlana Isakova
971ad53bcc Introduced ConstraintError for storing errors in the constraint system 2015-01-30 13:33:35 +03:00
Zalim Bashorov
4f61ead1de K2JS: fix breakpoints when use JavaScript debugger. 2015-01-29 22:25:30 +03:00
Evgeny Gerashchenko
8f8a9b52e7 Fixed compilation error for IDEA 14.1+ (140 branch) 2015-01-29 21:48:46 +03:00
Evgeny Gerashchenko
da7762e003 Fixed compilation error for IDEA 14.1+ (140 branch) 2015-01-29 21:04:54 +03:00
Andrey Breslav
c3e65d1684 Work around compiler bug: rewriting one trait in Java 2015-01-29 16:07:30 +03:00
Andrey Breslav
9d7f12b69e Minor. Code simplified 2015-01-29 16:07:30 +03:00
Andrey Breslav
8754ebb939 Minor. Rename method 2015-01-29 16:07:30 +03:00
Andrey Breslav
25dffeef28 Do not modify already existing components 2015-01-29 16:07:30 +03:00
Andrey Breslav
9c469a7dff Don't make generated methods of local data classes LOCAL 2015-01-29 16:07:30 +03:00
Andrey Breslav
eebe013de2 getEnclosingElementForLocalDeclaration() made stub-friendly 2015-01-29 16:07:29 +03:00
Andrey Breslav
da238cffaf Visibility of local classes is LOCAL 2015-01-29 16:07:29 +03:00
Andrey Breslav
4d66551067 Call analyzeDeclarations() that includes files where it was called before refactoring 2015-01-29 16:07:29 +03:00
Andrey Breslav
6035260e68 LOCAL classes are ACC_PUBLIC in byte code 2015-01-29 16:07:29 +03:00
Andrey Breslav
54a50ef0b5 Unused infrastructure of MutableClassDescriptor removed 2015-01-29 16:07:29 +03:00
Andrey Breslav
ff133b66ed Minor. Method made private 2015-01-29 16:07:28 +03:00
Andrey Breslav
ff9e6d849f Code from ImportsResolver moved, the class renamed to PlatformTypesMappedToKotlinChecker 2015-01-29 16:07:28 +03:00
Andrey Breslav
794bb07eb5 Unused code removed from ImportsResolver 2015-01-29 16:07:28 +03:00
Andrey Breslav
51c1e1268e Minor. Pointless annotations removed 2015-01-29 16:07:28 +03:00
Andrey Breslav
43a0f29a85 Unused code removed from VarianceChecker 2015-01-29 16:07:28 +03:00
Andrey Breslav
3a494ac040 Unused code removed from OverrideResolver 2015-01-29 16:07:27 +03:00
Andrey Breslav
828507de78 Unused code removed from DeclarationResolver 2015-01-29 16:07:27 +03:00
Andrey Breslav
2b432dd085 TopDownAnalyzer and TypeHierarchyResolver deleted 2015-01-29 16:07:27 +03:00
Andrey Breslav
6395fd819f Got rid of non-lazy local classifier analyzer 2015-01-29 16:07:27 +03:00
Andrey Breslav
c59cb09398 Don't fail on nameless classes (syntax errors) 2015-01-29 16:07:27 +03:00
Andrey Breslav
ed4da90dcd Outer DataFlowInfo delivered to local class members 2015-01-29 16:07:26 +03:00
Andrey Breslav
7323ef7002 Minor. Noisy warnings removed from test data 2015-01-29 16:07:26 +03:00
Andrey Breslav
b4b0b84228 Support LOCAL visibility for lazy classes 2015-01-29 16:07:26 +03:00
Andrey Breslav
0fe191b028 Registering local classes with the outer scope 2015-01-29 16:07:26 +03:00
Andrey Breslav
7036cb8f42 Object expressions fixed 2015-01-29 16:07:26 +03:00
Andrey Breslav
202c44e969 Create LazyClassDescriptors for local classes 2015-01-29 16:07:25 +03:00
Andrey Breslav
d016aa8f4d Take inherited setters into account 2015-01-29 16:07:25 +03:00
Andrey Breslav
483e20affc LazyLocalClassifierAnalyzer introduced 2015-01-29 16:07:25 +03:00
Andrey Breslav
5b4682dd0e LazyTopDownAnalyzer does not depend on ResolveSession or ScopeProvider any more 2015-01-29 16:07:25 +03:00
Andrey Breslav
e16885c301 LazyTopDownAnalyzerForTopLevel extracted 2015-01-29 16:07:25 +03:00
Andrey Breslav
6285efe32d LazyDeclarationResolver extracted from ResolveSession 2015-01-29 16:07:24 +03:00
Andrey Breslav
b5503f3acf DeclarationScopeProviderImpl extracted 2015-01-29 16:07:24 +03:00
Andrey Breslav
dae5ec24e2 LazyTopDownAnalyzer is always called in LAZY mode 2015-01-29 16:07:24 +03:00
Andrey Breslav
48ae469d13 Minor. @Override added 2015-01-29 16:07:24 +03:00
Andrey Breslav
b8abfbb10d LazyClassContext introduced 2015-01-29 16:07:24 +03:00
Alexander Udalov
de3f096ae1 Test classpath order of sources vs library dependencies 2015-01-28 19:58:37 +03:00
Alexander Udalov
2253567e36 Tests: use preloader instead of URLClassLoader in MockLibraryUtil
This fixes runtime dependency of the compiler and thus allows to run tests
which use MockLibraryUtil in case of an ABI-incompatible change; also it's
slightly more efficient (noticeable when running a single test)
2015-01-28 19:58:36 +03:00
Alexander Udalov
5903b8c4a7 Reorder and optimize dependencies between modules and libraries
- drop 'kotlin-runtime' and other dependencies which are exported by
  other modules ('util' and 'util.runtime' in case of 'kotlin-runtime')
- make all Kotlin modules from the compiler depend on 'util' for clarity
- put 'util' and 'util.runtime' to the bottom of the list everywhere: when
  kotlin-runtime gets reflection, classes from core/ should have higher
  priority than their previous versions from kotlin-runtime.jar
2015-01-28 19:58:35 +03:00
Alexander Udalov
2c8cad6628 Minor, inline some CompileEnvironmentUtil utilities 2015-01-28 19:58:34 +03:00
Alexander Udalov
7e988b04b4 Refactor compiler source root duplicate check 2015-01-28 19:58:34 +03:00
Alexander Udalov
93f02aeead Add source directories to classpath in CLI compiler
Move this logic from Ant and Maven plugins
2015-01-28 19:58:33 +03:00
Alexander Udalov
3ea59117ac Simplify code in module script/xml generation
Pass classpath and annotation roots explicitly instead of wrapped in a callback
2015-01-28 19:58:32 +03:00
Alexander Udalov
fa2116040e Modules.xml: add Java sources right after Kotlin sources
Java sources should appear before classpath dependencies because they should
have higher priority if the same symbol is located in the module source and in
the classpath. This is so because by default module source has the highest
priority in IDEA except the JDK. Ideally this will be handled later by full
support of modules in the compiler
2015-01-28 19:58:31 +03:00
Alexander Udalov
eb3588bd0a Minor, don't add external annotation roots multiple times 2015-01-28 19:58:31 +03:00
Alexander Udalov
59937aad14 CLI compiler: add runtime after user's classpath
Otherwise weird compilation errors in our project are expected as soon as
kotlin-runtime.jar will contain modules from "core". Suppose a Java class from
core/ has changed; the CLI compiler will then see its own (old) version of that
class from kotlin-runtime.jar before the actual new version from sources
2015-01-28 19:58:30 +03:00
Alexander Udalov
d6b67523f6 Improve error message on error types in JetTypeMapper
#KT-6684
2015-01-28 15:25:37 +03:00
Nikolay Krasko
825a194429 Temp workaround for build test failed when parser tests are executed first 2015-01-28 15:12:28 +03:00
Evgeny Gerashchenko
897854b3dc KT-6671 Report unused constructor parameters
#KT-6671 fixed
2015-01-27 22:38:27 +03:00
Evgeny Gerashchenko
f96f1b8cb0 Don't run inspection for test data. 2015-01-27 19:44:31 +03:00
Evgeny Gerashchenko
a6362dda22 Added workaround for linkage error in IDEA 14.0-14.0.2 2015-01-27 16:43:01 +03:00
Natalia Ukhorskaya
9057e84c6d Remove isKtFileInWrongFolder 2015-01-26 16:48:36 +03:00
Natalia Ukhorskaya
11f7b45ce3 Gradle: collect kotlin files from java source root 2015-01-26 16:48:35 +03:00
Natalia Ukhorskaya
71ec5591f1 Cleanup SpecialFiles for Android tests 2015-01-26 16:48:35 +03:00
Nikolay Krasko
234f56a3c4 Compiler jar locator 2015-01-26 14:25:07 +03:00
Evgeny Gerashchenko
6ffe49f1d2 KT-6582 "Expand selection" in string literal should select word in string
#KT-6582 fixed
2015-01-22 19:10:01 +03:00
Alexey Sedunov
0159f95111 Update to IDEA 139.1116 2015-01-22 17:00:21 +03:00
Dmitry Jemerov
0aa14c35f7 Merge pull request #553 from JetBrains/text-or-link
include TEXT_OR_LINK in the list of content tokens; fix incorrect testdata
2015-01-22 14:24:42 +01:00
Dmitry Jemerov
dbba0b769b include TEXT_OR_LINK in the list of content tokens; fix incorrect testdata 2015-01-22 14:05:03 +01:00
Andrey Breslav
a8cb7c832b Fix compilation 2015-01-22 15:42:27 +03:00
Evgeny Gerashchenko
386854d73f Unused object.
unusedButEntryPointMain for class was actually a wrong test: it didn't check anything, because objects are were not checked for unusedness before.
2015-01-22 15:26:49 +03:00
Evgeny Gerashchenko
a797f4a328 Minor. Reduced code duplication. 2015-01-22 15:26:48 +03:00
Evgeny Gerashchenko
2ef9634091 Clarified weird NPE: EA-64049 2015-01-22 15:26:47 +03:00
Evgeny Gerashchenko
378d00bbad Quick fix for unused symbol inspection. 2015-01-22 15:26:45 +03:00
Evgeny Gerashchenko
6e621ab114 Lazy usage search (using SearchQuery as Iterable leads to computing all results, which is wasting time). 2015-01-22 15:20:32 +03:00
Evgeny Gerashchenko
71bcce6410 Highlighting unused type parameter. 2015-01-22 15:20:32 +03:00
Evgeny Gerashchenko
aff2547ff8 Searching for properties declared in class constructor signature. 2015-01-22 15:20:31 +03:00
Evgeny Gerashchenko
156184b0eb Extracted function which gets component function name for data class property.
It used to rely on the fact that class is already resolved before. Added force resolution of class, to make this function reusable in other context.
2015-01-22 15:20:30 +03:00
Evgeny Gerashchenko
b0e2afc8cb Searching for property accessors, too. 2015-01-22 15:20:30 +03:00
Evgeny Gerashchenko
8fd5e72632 Finding unused properties. 2015-01-22 15:20:29 +03:00
Evgeny Gerashchenko
460fae275b Looking for text usages in all project (e. g., class can be referred from test data). 2015-01-22 15:20:28 +03:00
Evgeny Gerashchenko
9ba86501ec Not marking enum entries as unused. 2015-01-22 15:20:28 +03:00
Evgeny Gerashchenko
b91053da0b Optimized checking if reference to builtin.
It was slowing up usages search for back-references to standard library (not builtins, but in "kotlin" package)
2015-01-22 15:20:27 +03:00
Evgeny Gerashchenko
4cede47c70 Added tests with class/function used in Java 2015-01-22 15:20:26 +03:00
Evgeny Gerashchenko
4b20435ec9 Not searching for functions with conventional names.
Reasons:
1. They kind of implement interface.
2. They are too expensive to search.
2015-01-22 15:20:25 +03:00
Evgeny Gerashchenko
c5351b0760 Removed arrow operator from list of binary operators, since it is obsolete. 2015-01-22 15:20:25 +03:00
Evgeny Gerashchenko
b68b2e2e40 Added optimization: if name is too popular, don't check as unused. 2015-01-22 15:20:24 +03:00
Evgeny Gerashchenko
f652d314d8 Finding unused functions. 2015-01-22 15:20:24 +03:00
Andrey Breslav
38044c1000 LocalClassifierAnalyzer injected 2015-01-22 14:15:50 +03:00
Andrey Breslav
6d1484dbed Better diagnostics in injector generator 2015-01-22 14:15:50 +03:00
Andrey Breslav
8ee3bce75d Minor. Pointless annotations removed from TopDownAnalyzer. 2015-01-22 14:15:50 +03:00
Dmitry Jemerov
f4a25f69b1 Merge pull request #552 from JetBrains/rr/yole/kdoc-generate
structured rendering of doc comments in quick documentation dialog
2015-01-21 23:32:10 +01:00
Valentin Kipyatkov
4f2ecffee1 Better tests 2015-01-21 20:10:19 +03:00
Valentin Kipyatkov
d2016e2670 Fixing compilation 2015-01-21 20:10:19 +03:00
Valentin Kipyatkov
77a560775f KT-6628 Allow imports of classes from root package
#KT-6628 Fixed
2015-01-21 20:10:18 +03:00
Valentin Kipyatkov
fa779bbdd2 Fixed KT-4085 Usability problem: Can't import protected nested class
#KT-4085 Fixed
2015-01-21 20:10:18 +03:00
Valentin Kipyatkov
974982463c Visible classes take priority when resolving imports with * 2015-01-21 20:10:18 +03:00
Valentin Kipyatkov
b9d47ffe7a Changed priority for default imports + default imports include all built-ins explicitly for java module
#KT-4374 Fixed
2015-01-21 20:10:18 +03:00
Valentin Kipyatkov
ae9ebbec7d Corrected test data 2015-01-21 20:10:18 +03:00
Valentin Kipyatkov
e117e5aa16 It is more correct to resolve default imports this way 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
7ce3925d71 Removed USELESS_HIDDEN_IMPORT error for it cannot happen anymore 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
929d6b885d Current package members to have less priority than explicit imports 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
59f24020b2 Renames 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
3caef82184 Big refactoring of imports resolve - preparing to change current package members priority 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
45a7c3bcdc No need to inherit from LazyEntity 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
9317593565 Fixed test data to be compilable with new import rules 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov
a9d4fd5213 Moved tests for imports into proper group 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov
2c60201832 Fixed test data (+ renamed test) 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov
2e420fc312 Conflicting imports error for imports of classes and packages 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov
0c74f1679b Variable renames 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov
b888ea601c Changed imports semantics: imports order does not affect resolve, explicit imports have higher priority for classes 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov
8fc0063410 Refactoring of Importer - PlatformToKotlinClassMap is the same for all imports 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov
58fb303f8c Code improvements after conversion 2015-01-21 20:10:15 +03:00
Valentin Kipyatkov
de3a93264c Converted code to Kotlin - step 2 2015-01-21 20:10:15 +03:00
Valentin Kipyatkov
251d98a602 Converted code to Kotlin (step 1 to keep history) 2015-01-21 20:10:15 +03:00
Valentin Kipyatkov
b625298cd4 Reordered methods 2015-01-21 20:10:15 +03:00
Valentin Kipyatkov
2b215681c9 Code refactoring - no need to filter out classes with Kotlin analogs from inside classes 2015-01-21 20:10:15 +03:00
Dmitry Jemerov
906c0fd7f7 Merge branch 'master' into rr/yole/kdoc-generate 2015-01-21 18:00:21 +01:00
Dmitry Jemerov
609914fb4a code review; add test for brackets around subject name in tag 2015-01-21 17:23:24 +01:00
Nikolay Krasko
77cb279154 Don't restrict number of builds 2015-01-21 18:36:08 +03:00
Dmitry Jemerov
659c54d7e6 structured rendering of doc comments in quick documentation dialog 2015-01-21 16:20:20 +01:00
Alexander Udalov
5194310d6e Use javac2 filter to disable NotNull instrumentation of Kotlin code
We skip all classes annotated with kotlin/jvm/internal/<anything> (currently
KotlinClass, KotlinPackage and KotlinSyntheticClass) because Kotlin compiler
emits its own nullability assertions
2015-01-21 16:17:50 +03:00
Svetlana Isakova
9dbcd8b55f Approximate captured types only when necessary 2015-01-21 15:37:33 +03:00
Dmitry Jemerov
6c814279fc Merge pull request #550 from JetBrains/kdoc-inherit
allow inheriting doc comments from base classes
2015-01-21 13:26:01 +01:00
Natalia Ukhorskaya
8b5279897f Gradle: fix kotlinOptions for kotlin-android plugin 2015-01-21 13:58:16 +03:00
Natalia Ukhorskaya
bcbfb1bd77 Gradle: include groovy output to kotlin-gradle-plugin.jar
#KT-6635 Fixed
2015-01-21 13:58:16 +03:00
Natalia Ukhorskaya
72510beb69 Android tests: generate tests only for directories 'box' and 'boxWithStdlib' 2015-01-21 13:58:15 +03:00
Ilya Ryzhenkov
3a9e41f2d7 stdlib: Pair and Triple .toList() 2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov
95d4accda7 stdlib: add flatten() 2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov
1d4591d99c stdlib: add sumBy(function) 2015-01-20 22:39:23 +03:00
Ilya Ryzhenkov
4ee64d7283 Covering stdlib with tests. 2015-01-20 22:37:16 +03:00
Ilya Ryzhenkov
c3eaf1b869 Fix return type of linkedHashSetOf to be more specific. 2015-01-20 22:37:16 +03:00
Ilya Ryzhenkov
9b04f57a25 Collection tests: format and fix usages of deprecated symbols. 2015-01-20 22:37:15 +03:00
Evgeny Gerashchenko
5a77a70710 Merge pull request #551 from JetBrains/delete-operation-mode-provider
delete unused OperationModeProvider class
2015-01-20 22:52:33 +04:00
Dmitry Jemerov
431cdd2245 delete unused OperationModeProvider class 2015-01-20 19:51:24 +01:00
Dmitry Jemerov
0c2b230e4a allow inheriting doc comments from base classes 2015-01-20 19:20:59 +01:00
Alexander Udalov
ae6ffeb88a Skip inlined lambdas when determining EnclosingMethod
#KT-6368 Fixed
2015-01-20 21:02:57 +03:00
Alexander Udalov
20dc3438a2 Fix generation of InnerClasses/EnclosingMethod attributes
Generate InnerClasses for each outer class and each direct inner class in all
inheritors of MemberCodegen, i.e. for classes, objects, lambdas, local classes,
etc.

Also skip lambdas which will be inlined when calculating outer class for
EnclosingMethod

 #KT-5447 Fixed
 #KT-5478 Fixed
2015-01-20 21:02:56 +03:00
Dmitry Jemerov
432bdcd0fc Merge pull request #549 from JetBrains/rr/yole/kdoc-parser
Rr/yole/kdoc parser
2015-01-20 18:54:17 +01:00
Dmitry Jemerov
8217563aac KDocTokens.START can't be the first token of a tag 2015-01-20 18:08:02 +01:00
Dmitry Jemerov
31f5441f6b code review 2015-01-20 18:08:01 +01:00
Dmitry Jemerov
100b8c2c4d Fix tests according to new PSI structure; move doc comment text calculation from JetQuickDocumentationProvider to KDocTag.getContent() 2015-01-20 18:07:18 +01:00
Dmitry Jemerov
c3a496b9a2 introduce the concept of sections 2015-01-20 18:00:17 +01:00
Dmitry Jemerov
f3763bc2b5 some initial PSI for KDoc; changed syntax of links (Markdown style single brackets instead of Wiki style double brackets) 2015-01-20 18:00:09 +01:00
Alexey Sedunov
b40e657180 Create from usage: Create constructor parameter by reference in delegation specifier
#KT-6601 Fixed
2015-01-19 20:58:55 +03:00
Alexey Sedunov
70b202dfa6 Extract Function: Do not extract extension receiver from 'implicit invoke'
call
 #KT-6302 Fixed
2015-01-19 20:58:54 +03:00
Alexey Sedunov
d54b261c61 Extract Function: Fix 'this' label (extension case)
#KT-5456 Fixed
2015-01-19 20:58:53 +03:00
Alexey Sedunov
941e08b80f Minor: Fix warnings 2015-01-19 20:58:52 +03:00
Alexey Sedunov
8d40ca1a74 Extract Function: Merge jumps with default exits if all exit points are equivalent
#KT-6598 Fixed
2015-01-19 20:58:51 +03:00
Alexey Sedunov
9278dee1a4 Pseudocode: Bind nondeterministic jump caused by local declaration to declaration iself instead of its parent element
#KT-6261 Fixed
 #KT-6416 Fixed
2015-01-19 20:58:50 +03:00
Nikolay Krasko
81715d1fca Don't pass message bus to avoid unnecessary registering
#KT-6640 Fixed
2015-01-19 20:26:01 +03:00
Andrey Breslav
35049de94e Merge pull request #548 from JetBrains/remove-exPuzzlers
Remove outdated version of puzzlers from the Kotlin repository.
2015-01-19 18:01:32 +03:00
Dmitry Jemerov
2e01c3b90a Remove outdated version of puzzlers from the Kotlin repository. An up-to-date version is available at https://github.com/kotlin-projects/ex-puzzlers 2015-01-19 15:58:33 +01:00
Evgeny Gerashchenko
c60797e306 Rebuilding dependants fully only when constants/inline functions changed. This is not 100% precise, but it is faster. It is a compromise until we implement preciser incremental compilation. 2015-01-19 15:36:57 +03:00
Evgeny Gerashchenko
72687758a5 Rebuilding dependent modules. 2015-01-19 15:36:56 +03:00
Evgeny Gerashchenko
00f2ba5124 Test with Java and Kotlin changed simultaneously. 2015-01-19 15:36:56 +03:00
Evgeny Gerashchenko
967f470b16 Added multi-module tests on incremental compilation.
Changing code wasn't required, Java's incremental caches were enough.
2015-01-19 15:36:55 +03:00
Alexander Udalov
baea660a0b Rewrite hack in codegen for lambdas in anonymous object super calls
Synthetic ClassDescriptor created in codegen for lambdas and such should have
correct container, because it'll be used in generation of InnerClasses
2015-01-16 21:48:57 +03:00
Alexander Udalov
c23352d81b Remove ParentCodegenAware
Inline its fields to subclasses, fix parent codegen nullability
2015-01-16 21:47:51 +03:00
Evgeny Gerashchenko
2b438a286f Updated test data according to changes in IDEA. 2015-01-16 20:19:37 +03:00
Nikolay Krasko
bc9287b60f Change description of 'iter' template to make it searchable by 'for' prefix
#KT-6603 Fixed
2015-01-15 20:35:39 +03:00
Pavel V. Talanov
2d68637fd9 ResolveElementCache: Use softly (not weakly) retained values
Fixes performance problems with long running searches analyzing function bodies several times
2015-01-15 19:54:25 +03:00
Alexey Sedunov
90e7d2151b Create From Usage: Restrict type guess search scope to prevent performance problem with highlighting 2015-01-15 19:43:01 +03:00
Denis Zharkov
6f94ebb9d6 Refined redundant null check optimization 2015-01-15 15:13:05 +03:00
Denis Zharkov
5675d2b26b Dead code elimination
#KT-6602 Fixed
 #KT-6305 Fixed
 #KT-5656 Fixed
2015-01-15 15:13:05 +03:00
Denis Zharkov
aecb925b7b Refined skipping last goto when inlining try/catch/finally block 2015-01-15 15:13:05 +03:00
Denis Zharkov
5a0a05e5c7 Removed unused inline markers 2015-01-15 15:13:04 +03:00
Natalia Ukhorskaya
d2cf83902b Debugger: do not evaluate calls on mouse cover when 'Value auto tooltip' switched on 2015-01-15 11:45:16 +03:00
Natalia Ukhorskaya
f5aefc96fb Local variable shouldn't be visible in debugger before initialization 2015-01-15 11:45:15 +03:00
Alexey Tsvetkov
89f8442705 Fixed weird compilation issue by moving function to other package 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
ddcd2e7344 Regenerated injectors 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
c3dde69a7a Minor in Frontend: Moved NeedSyntheticChecker to jvm frontend 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
17baee740b Frontend: AdditionalCheckerProvider.Empty->AdditionalCheckerProvider.DefaultProvider 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
0344f467d5 Frontend: KotlinJsDeclarationCheckerProvider->KotlinJsCheckerProvider 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
491ac7db12 Frontend: JavaDeclarationCheckerProvider->KotlinJvmCheckerProvider 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
21e28fa866 Frontend: use AdditionalCheckerProvider instead of CallResolverExtensionProvider 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
597a191c84 Frontend: extracted InlineCallCheckerWrapper to create InlineCallCheckers during run 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov
5e16516d8e Frontend: CallResolverExtension->CallChecker 2015-01-14 21:49:52 +03:00
Valentin Kipyatkov
c915eb4eac KT-6566 Generate Override/Implement method does not work for locally declared classes
#KT-6566 Fixed
2015-01-14 20:59:23 +03:00
Valentin Kipyatkov
eed0def1cb Completion auto-popup works at the start of function literal 2015-01-14 20:57:28 +03:00
Valentin Kipyatkov
dc1d06db9c Do not select item by typing dot only for auto-popup completion 2015-01-14 20:57:28 +03:00
Valentin Kipyatkov
9e526fca58 Completion for "file" keyword in annotations 2015-01-14 20:57:28 +03:00
Valentin Kipyatkov
fde1890de9 More tests
#KT-1670 Fixed
 #KT-2690 Fixed
2015-01-14 20:57:27 +03:00
Valentin Kipyatkov
ec1541a692 No completion auto-popup where parameter name can be 2015-01-14 20:57:27 +03:00
Valentin Kipyatkov
000cde3f7f KT-6225 Completion of annotations for method parameters
#KT-6225 Fixed
2015-01-14 20:57:27 +03:00
Dmitry Jemerov
95d29e0f8a Merge pull request #546 from JetBrains/rr/coverage-test-fix
fix code coverage test to match the new implementation logic
2015-01-14 17:15:34 +01:00
Dmitry Jemerov
548b52d529 don't store .class files in testdata 2015-01-14 14:49:07 +01:00
Nikolay Krasko
25794beb56 Refactoring: extract macrodef 2015-01-14 16:22:56 +03:00
Evgeny Gerashchenko
23f2e08f0c Minor. Simplified code after review. 2015-01-14 15:48:51 +03:00
Evgeny Gerashchenko
b6dffb8f0b Added test with class used only in import. 2015-01-14 15:48:50 +03:00
Evgeny Gerashchenko
f7553bafa9 Split method. 2015-01-14 15:48:50 +03:00
Evgeny Gerashchenko
2d4e0be076 Added test with class referred in XML. 2015-01-14 15:48:49 +03:00
Evgeny Gerashchenko
47ae2364f3 JetLanguage says that it is case-sensitive language now.
Otherwise redundant fake usages may be processed when searching usages of Kotlin symbols.
2015-01-14 15:48:49 +03:00
Evgeny Gerashchenko
9b22fc06c7 Class used in text is not unused. 2015-01-14 15:48:48 +03:00
Evgeny Gerashchenko
8297411e5f Not marking entry points as unused. 2015-01-14 15:48:46 +03:00
Evgeny Gerashchenko
b781a09caf Implemented simplest version of unused symbol inspection. 2015-01-14 15:48:45 +03:00
Dmitry Jemerov
cc1a628110 fix code coverage test to match the new implementation logic 2015-01-14 12:12:27 +01:00
Nikolay Krasko
cb76c2a971 Fix build by temporary test disable 2015-01-14 02:20:00 +03:00
Nikolay Krasko
a8193cd832 Auto-search for build number from idea version 2015-01-14 00:31:02 +03:00
Nikolay Krasko
87316ddfeb Update to 139.1038.6 2015-01-14 00:31:01 +03:00
Dmitry Jemerov
f90b605d5d Merge pull request #545 from JetBrains/kotlin-coverage-perf
Improve code coverage performance
2015-01-13 17:23:54 +01:00
Dmitry Jemerov
657b507371 Improve code coverage performance: always get the .class files corresponding to a source file by looking at the output directory, not by analyzing the source file. 2015-01-13 15:42:15 +01:00
Alexander Udalov
76d11330ee Fix === comparison for primitive types
#KT-6590 Fixed
2015-01-13 17:40:21 +03:00
Natalia Ukhorskaya
3a04bd7e44 Add getTargetPlatform method in ProjectConfigurator
#KT-6605 Fixed
2015-01-13 17:00:30 +03:00
Alexander Udalov
ba46df61de Rename jet -> kotlin in stub index external ids 2015-01-13 15:11:08 +03:00
Alexander Udalov
053b5a7700 Drop JetTestCaseBuilder, move methods to JetTestUtils 2015-01-13 15:11:06 +03:00
Alexander Udalov
edf054ddf3 Remove duplicate copyright file, use license/LICENSE.txt instead 2015-01-13 15:02:17 +03:00
Alexander Udalov
348d9dfce4 Add test against code in package org.jetbrains.jet 2015-01-13 15:02:16 +03:00
Alexander Udalov
f3b2193afd Delete traces of "jet" in test data and unimportant code 2015-01-13 15:02:16 +03:00
Nikolay Krasko
8a77fca449 Add icon for declarations without modifier list 2015-01-13 12:37:22 +03:00
Nikolay Krasko
6215b3962c Fix warning and and test fail 2015-01-13 12:37:19 +03:00
Nikolay Krasko
4bde4a2be4 VfsRootAccess for BuiltInsReferenceResolverTest.java 2015-01-13 12:37:18 +03:00
Nikolay Krasko
d149ecdc15 Add base test KotlinMultiFileTestCase with access root disable 2015-01-13 12:35:04 +03:00
Alexander Udalov
21b2fa2509 Update copyrights to 2015 2015-01-13 01:15:18 +03:00
Alexander Udalov
662e8707b2 Minor, drop copyright from test data 2015-01-13 01:15:17 +03:00
Alexander Udalov
ff5517621f Minor, fix package check in parser test 2015-01-13 01:15:16 +03:00
Alexander Udalov
6873e34a09 Drop org.jetbrains.jet exception in proguard 2015-01-13 01:15:16 +03:00
Alexander Udalov
093839b860 Rename jet -> kotlin in run configurations 2015-01-13 01:15:15 +03:00
Alexander Udalov
c82308d3be Rename jet -> kotlin in idea 2015-01-13 01:15:14 +03:00
Alexander Udalov
af24a17a92 Rename jet -> kotlin in idea: actions, compiler, formatter, project 2015-01-13 01:15:12 +03:00
Alexander Udalov
49f3c31e29 Rename jet -> kotlin in idea: configuration, editor, framework, search 2015-01-13 01:15:11 +03:00
Alexander Udalov
44840d07a8 Rename jet -> kotlin in idea: caches, findUsages, references, stubindex 2015-01-13 01:15:10 +03:00
Alexander Udalov
a9a15978e0 Rename jet -> kotlin in idea: completion, debugger, decompiler, highlighter
org.jetbrains.jet.plugin.* -> org.jetbrains.kotlin.idea.*
2015-01-13 01:15:09 +03:00
Alexander Udalov
044f7b6156 Rename jet -> kotlin in idea: refactoring, codeInsight
org.jetbrains.jet.plugin.* -> org.jetbrains.kotlin.idea.*
2015-01-13 01:15:08 +03:00
Alexander Udalov
fe544eaf71 Rename jet -> kotlin in idea: intentions
org.jetbrains.jet.plugin.intentions -> org.jetbrains.kotlin.idea.intentions
2015-01-13 01:14:37 +03:00
Alexander Udalov
0b64f028b6 Rename jet -> kotlin in idea: quickfixes
org.jetbrains.jet.plugin.quickfix -> org.jetbrains.kotlin.idea.quickfix
2015-01-13 01:14:36 +03:00
Alexander Udalov
17227bb4fe Rename org.jetbrains.kotlin.plugin -> org.jetbrains.kotlin.idea 2015-01-13 01:14:31 +03:00
Nikolay Krasko
d4507226a1 Equals and hashCode() methods are not created for data classes without properties 2015-01-12 23:38:18 +03:00
Alexey Sedunov
86d5bd9365 Extract Function: Do not suggest "unit" as function name
#KT-6402 Fixed
2015-01-12 22:55:33 +03:00
Alexey Sedunov
64ddd52e60 Extract Function: Fix type candidates for parameters with flexibly nullable types
#KT-6546 Fixed
2015-01-12 22:55:32 +03:00
Alexey Sedunov
c8cb5f8c29 Find Usages: Fix reference matching for declarations located in libraries
#KT-5762 Fixed
2015-01-12 22:55:31 +03:00
Alexey Sedunov
59d646bc16 Extract Function: Generate function in property's enclosing declaration if original expression belongs to initializer of that property
#KT-6290 Fixed
2015-01-12 22:55:30 +03:00
Evgeny Gerashchenko
22f4caa78d Fixed test for KT-6530 Do not report "useless cast" when RHS is unresolved 2015-01-12 21:34:12 +03:00
Evgeny Gerashchenko
c64cb06180 KT-6530 Do not report "useless cast" when RHS is unresolved
#KT-6530 fixed
2015-01-12 19:26:44 +03:00
nik
6e9f94d1ea incremental compiler caches: code cleanup and simplification 2015-01-12 17:15:13 +03:00
Alexander Udalov
09942d7c09 Rename jet -> kotlin in idea tests
org.jetbrains.jet -> org.jetbrains.kotlin (except 'plugin' subpackage)
2015-01-12 15:40:24 +03:00
Alexander Udalov
0e8b00c1f4 Rename jet -> kotlin in compiler-tests: resolve
org.jetbrains.jet.resolve -> org.jetbrains.kotlin.resolve
2015-01-12 15:40:22 +03:00
Alexander Udalov
0866d0517f Rename jet -> kotlin in idea resolve tests
org.jetbrains.jet.resolve -> org.jetbrains.kotlin.plugin.resolve
2015-01-12 15:40:22 +03:00
Alexander Udalov
587a92717c Update copyright in frontend (cfg), tests 2015-01-12 15:40:16 +03:00
Alexander Udalov
7d496377c4 Remove bootstrap workarounds 2015-01-12 15:40:15 +03:00
Alexander Udalov
6a11983f9e Minor, delete unused deprecated method 2015-01-12 15:40:14 +03:00
Alexander Udalov
869cfaaabe Remove "Integration Tests" run configuration
Integration tests are now merged into All Tests
2015-01-12 15:40:14 +03:00
Natalia Ukhorskaya
e363e70e44 Suggest 'Make Abstract' quickfix for class which doesn't implement all methods from its base class interfaces
#KT-6321 Fixed
2015-01-12 14:16:31 +03:00
Natalia Ukhorskaya
2aaa94cccb Debugger: implement Jump to Source for localVariables 2015-01-12 14:16:29 +03:00
Natalia Ukhorskaya
8dcb4ab5bb Debugger: suppress UNSAFE_CALL diagnostic in debug mode 2015-01-12 14:16:26 +03:00
Natalia Ukhorskaya
b709baa9b4 Minor: rename 2015-01-12 14:16:24 +03:00
Alexander Udalov
3b81d63334 Rename jet -> kotlin in compiler-tests (except resolve)
Move test-related code to org.jetbrains.kotlin.test, also move some tests to
packages with better names
2015-01-12 00:24:12 +03:00
Alexander Udalov
663d31709b Remove outdated code from compiler-tests 2015-01-11 18:01:48 +03:00
Alexander Udalov
63cefea6e9 Rename jet -> kotlin in frontend
org.jetbrains.jet -> org.jetbrains.kotlin

Also rename package slicedmap to slicedMap
2015-01-11 15:20:51 +03:00
Alexander Udalov
36a469ccd5 Rename jet -> kotlin in idea: JetBundle 2015-01-11 07:03:44 +03:00
Alexander Udalov
9f4513dd75 Rename jet -> kotlin in idea: icons 2015-01-11 05:09:03 +03:00
Alexander Udalov
2b8c358614 Minor, drop irrelevant package from test data comment 2015-01-11 05:09:03 +03:00
Alexander Udalov
64a9585a4d Rename jet -> kotlin in ide-common
org.jetbrains.jet.plugin -> org.jetbrains.kotlin.plugin
2015-01-11 05:09:02 +03:00
Alexander Udalov
64c6055030 Rename jet -> kotlin in frontend, descriptors: resolve
org.jetbrains.jet.lang.resolve -> org.jetbrains.kotlin.resolve
2015-01-11 05:09:01 +03:00
Alexander Udalov
634ed0b652 Rename jet -> kotlin in frontend: lazy resolve
org.jetbrains.jet.lang.resolve.lazy -> org.jetbrains.kotlin.resolve.lazy
2015-01-11 05:09:00 +03:00
Alexander Udalov
8affc31303 Rename jet -> kotlin in descriptor.loader.java, frontend.java
Split package 'lang/resolve/java' into two semantically different packages:
'resolve/jvm' and 'load/java'. Also rename 'lang/resolve/kotlin' to
'load/kotlin'
2015-01-11 05:08:57 +03:00
Alexander Udalov
0499ec94ca Rename jet -> kotlin in frontend: call resolution
org.jetbrains.jet.lang.resolve.calls -> org.jetbrains.kotlin.resolve.calls
2015-01-10 20:25:15 +03:00
Alexander Udalov
88670eb78a Rename jet -> kotlin in frontend: diagnostics
org.jetbrains.jet.lang.diagnostics -> org.jetbrains.kotlin.diagnostics
2015-01-10 17:38:07 +03:00
Alexander Udalov
f81a3c353d Rename jet -> kotlin in frontend: evaluate
org.jetbrains.jet.lang.evaluate ->
org.jetbrains.kotlin.resolve.constants.evaluate
2015-01-10 17:15:06 +03:00
Alexander Udalov
fe67b374e7 Rename jet -> kotlin in frontend: parsing
org.jetbrains.jet.lang.parsing -> org.jetbrains.kotlin.parsing
2015-01-10 16:06:09 +03:00
Alexander Udalov
524fdc2527 Rename jet -> kotlin in descriptors, types, names
org.jetbrains.jet.lang.descriptors -> org.jetbrains.kotlin.descriptors
org.jetbrains.jet.lang.types -> org.jetbrains.kotlin.types
org.jetbrains.jet.lang.resolve.name -> org.jetbrains.kotlin.name
2015-01-10 15:52:20 +03:00
Alexander Udalov
2ac4c65720 Move PlatformToKotlinClassMap to org.jetbrains.kotlin.platform
Also JavaToKotlinClassMap
2015-01-10 15:52:17 +03:00
Alexander Udalov
e88f89d1c6 Rename jet -> kotlin in descriptors: built-ins
org.jetbrains.jet.lang.types.lang -> org.jetbrains.kotlin.builtins
2015-01-10 15:52:16 +03:00
Alexander Udalov
d384e50a97 Rename jet -> kotlin in frontend: PSI
org.jetbrains.jet.lang.psi -> org.jetbrains.kotlin.psi
2015-01-10 15:52:14 +03:00
Alexander Udalov
ead8c8ac1d Rename jet -> kotlin in frontend: lexer, kdoc
org.jetbrains.jet.lexer -> org.jetbrains.kotlin.lexer
org.jetbrains.jet.kdoc -> org.jetbrains.kotlin.kdoc

Also rename Jet.flex -> Kotlin.flex
2015-01-10 15:52:12 +03:00
Alexander Udalov
cb649dd204 Minor, rename jet -> kotlin in control flow test system property 2015-01-10 15:52:11 +03:00
Alexander Udalov
378d04e301 Rename jet -> kotlin in frontend: cfg
org.jetbrains.jet.lang.cfg, org.jetbrains.jet.cfg -> org.jetbrains.kotlin.cfg
2015-01-10 15:52:06 +03:00
Alexander Udalov
2c414d880c Rename jet -> kotlin in descriptors: renderer
org.jetbrains.jet.renderer -> org.jetbrains.kotlin.renderer
2015-01-10 15:51:59 +03:00
Alexander Udalov
05eaf81ba6 Rename jet -> kotlin and regroup files in serialization
org.jetbrains.jet.descriptors.serialization ->
org.jetbrains.kotlin.serialization

Deserialization goes to subpackage deserialization, built-ins-related stuff
goes to subpackage builtins
2015-01-09 16:37:22 +03:00
Alexander Udalov
00878cc31a Rename java -> jvm, jet -> kotlin in module serialization.java
org.jetbrains.jet.descriptors.serialization ->
org.jetbrains.kotlin.serialization.jvm
2015-01-09 14:27:13 +03:00
Alexander Udalov
de6e8a7493 Rename package jet -> kotlin in backend
org.jetbrains.jet.codegen -> org.jetbrains.kotlin.codegen
2015-01-08 23:32:09 +03:00
Alexander Udalov
f447a860b1 Rename package jet -> kotlin in util.runtime (StorageManager)
org.jetbrains.jet.storage -> org.jetbrains.kotlin.storage
2015-01-08 23:32:08 +03:00
Alexander Udalov
f37e2f173d Rename package jet -> kotlin in util, util-runtime
org.jetbrains.jet.config -> org.jetbrains.kotlin.config
org.jetbrains.jet.utils -> org.jetbrains.kotlin.utils

Also move coreLib.kt to package 'org.jetbrains.kotlin.utils'
2015-01-08 23:32:08 +03:00
Alexander Udalov
8ca803775f Rename package jet -> kotlin in cli, cli-common
org.jetbrains.jet.cli -> org.jetbrains.kotlin.cli

Also fix some minor warnings
2015-01-08 23:32:07 +03:00
Alexander Udalov
54714e7fb4 Revert accidental KAnnotator Jps Plugin Test change in 2fdd63f 2015-01-07 18:23:44 +03:00
Alexander Udalov
759b5bd85c Move *OutputFile to package org.jetbrains.kotlin.backend.common.output 2015-01-06 05:15:13 +03:00
Alexander Udalov
329d9da8c8 Rename package jet -> kotlin in backend-common
org.jetbrains.jet.backend.common -> org.jetbrains.kotlin.backend.common
org.jetbrains.jet.codegen.bridges ->
org.jetbrains.kotlin.backend.common.bridges
2015-01-06 05:15:12 +03:00
Alexander Udalov
2e0fab3f98 Rename package jet -> kotlin in light-classes
org.jetbrains.jet.asJava -> org.jetbrains.kotlin.asJava

Also fix some minor warnings and deprecated API usage
2015-01-06 05:15:11 +03:00
Alexander Udalov
98faeb8647 Rename package jet -> kotlin in ide-compiler-runner
org.jetbrains.jet.compiler.runner -> org.jetbrains.kotlin.compilerRunner
org.jetbrains.jet.compiler -> org.jetbrains.kotlin.config
2015-01-06 05:15:11 +03:00
Alexander Udalov
3f7d2e461e Rename package jet -> kotlin in jps-plugin
org.jetbrains.jet.jps -> org.jetbrains.kotlin.jps
2015-01-05 19:54:21 +03:00
Alexander Udalov
36feb4dfdc Move module script-related code to org.jetbrains.kotlin.modules 2015-01-05 19:43:16 +03:00
Alexander Udalov
03e3969544 Rename package k2js -> kotlin.js in js.frontend
org.jetbrains.k2js -> org.jetbrains.kotlin.js
2015-01-05 05:10:33 +03:00
Alexander Udalov
36eb5eff1f Rename package k2js -> kotlin.js in js.tests
org.jetbrains.k2js.test -> org.jetbrains.kotlin.js.test
2015-01-05 05:10:26 +03:00
Alexander Udalov
2bc3aa2199 Rename package k2js -> kotlin.js in js.translator
org.jetbrains.k2js -> org.jetbrains.kotlin.js
2015-01-05 04:19:06 +03:00
Alexander Udalov
6f2a0b06e1 Rename package k2js -> kotlin.js in js.inliner
org.jetbrains.k2js.inline -> org.jetbrains.kotlin.js.inline
2015-01-05 04:19:05 +03:00
Alexander Udalov
c1bc4e0c46 Rename package jet -> kotlin in kotlin-android-plugin
org.jetbrains.jet.android -> org.jetbrains.kotlin.android
2015-01-05 04:19:04 +03:00
Alexander Udalov
1bf3ca2e26 Rename package jet -> kotlin in preloader and instrumentation
org.jetbrains.jet.preloading -> org.jetbrains.kotlin.preloading
2015-01-05 04:19:04 +03:00
Alexander Udalov
e73ffe76a0 Keep org.jetbrains.kotlin.** when shrinking compiler 2015-01-05 04:19:03 +03:00
Alexander Udalov
64c00efc92 Fix Instrumentation artifact dependencies and readme 2015-01-03 15:16:19 +03:00
Alexander Udalov
fbb7baa5db Minor, get rid of ClassSerializationUtil 2015-01-03 15:16:19 +03:00
Alexander Udalov
59c7171a21 Rename package jet -> kotlin in builtins-serializer
org.jetbrains.jet.utils.builtinsSerializer ->
org.jetbrains.kotlin.serialization.builtins
2015-01-03 15:16:18 +03:00
Alexander Udalov
fad40ac11e Rename package jet -> kotlin in ant
org.jetbrains.jet.buildtools.ant -> org.jetbrains.kotlin.ant

The old antlib.xml is kept for migration purposes
2015-01-03 15:16:17 +03:00
Alexander Udalov
b5c7f885a8 Rename package jet -> kotlin in grammar
org.jetbrains.jet.grammar -> org.jetbrains.kotlin.grammar
2015-01-03 13:00:38 +03:00
Alexander Udalov
2fdd63fa53 Rename package jet -> kotlin in kannotator-jps-plugin-test
org.jetbrains.jet.jps.build.kannotator ->
org.jetbrains.kotlin.jps.build.kannotator
2015-01-03 12:46:05 +03:00
Alexander Udalov
f58b151d58 Rename package jet -> kotlin in bare-plugin
org.jetbrains.jet.plugin.bare -> org.jetbrains.kotlin.plugin.bare
2015-01-03 12:41:47 +03:00
Alexander Udalov
b1809f8d40 Rename module jet.as.java.psi -> light-classes 2015-01-03 12:38:41 +03:00
Alexander Udalov
be95a4fee7 Remove temporary bootstrap hack 2015-01-03 12:32:25 +03:00
Alexander Udalov
5c9750ae6b Remove module integration-tests, merge into compiler-tests 2015-01-03 12:28:54 +03:00
Alexander Udalov
cd79c4573d Ant task: use preloader instead of AntClassLoader
Speeds up AntTaskJvmTest by 50%
2015-01-03 12:08:12 +03:00
Alexander Udalov
511b19fcfd Fix codegen tests on Android 2015-01-03 11:41:58 +03:00
Alexander Udalov
b4e71bb0b6 Minor, rename package in some j2k tests 2015-01-03 04:22:01 +03:00
Alexander Udalov
366f0daaa8 Rename package jet -> kotlin in j2k
org.jetbrains.jet.j2k -> org.jetbrains.kotlin.j2k

Also update calls to deprecated functions: size -> size(), length -> length(),
withIndices() -> withIndex()
2015-01-03 04:16:24 +03:00
Alexander Udalov
3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00
Alexander Udalov
ed2f123b54 j2k: remove obsolete manifest 2015-01-03 00:24:51 +03:00
Alexander Udalov
7f90dc3934 Regenerate tests 2015-01-03 00:20:28 +03:00
Alexander Udalov
eb2f34e6cf Fix codegen tests on Android, update SpecialFiles 2015-01-03 00:19:04 +03:00
Alexander Udalov
11ff051924 Regenerate built-ins, keywords, operations map 2015-01-03 00:19:03 +03:00
Alexander Udalov
d5288b88fd Minor, fix double typo 2015-01-03 00:19:03 +03:00
Alexander Udalov
fcbfc53dc8 Rename package jet -> kotlin in injectors
org.jetbrains.jet.di -> org.jetbrains.kotlin.di
2015-01-03 00:19:02 +03:00
Alexander Udalov
4f8e6c1dcc Rename package jet -> kotlin in generators
org.jetbrains.jet.generators -> org.jetbrains.kotlin.generators
2015-01-03 00:19:02 +03:00
Alexander Udalov
80997acba3 Minor, extract constant "org.jetbrains.jet.di" 2015-01-02 20:45:44 +03:00
Alexander Udalov
159a2dc585 Rename package jet -> kotlin in injector-generator
org.jetbrains.jet.di -> org.jetbrains.kotlin.generators.di
2015-01-02 20:45:44 +03:00
Alexander Udalov
77be31c149 Move injector-generator under generators 2015-01-02 20:45:43 +03:00
Alexander Udalov
60fcaf5a6e Rename package jet -> kotlin in android-tests
org.jetbrains.jet.compiler.android -> org.jetbrains.kotlin.android.tests
2015-01-02 20:45:43 +03:00
Alexander Udalov
53079fd3f7 Upgrade year in copyright to 2015 2015-01-02 19:23:40 +03:00
Alexander Udalov
e58b8229be Assert kotlin-runtime.jar is present in tests 2015-01-02 18:38:19 +03:00
Nikolay Krasko
5a310237e7 Cache constructed scope for file. Don't recount it each time in additional function resolve. 2014-12-31 21:56:21 +03:00
Nikolay Krasko
31de60738a Temporary allow import 2014-12-31 21:56:20 +03:00
Nikolay Krasko
e65c0d44bb Reuse JavaPsiFacadeImpl impl for package caching and search in dumb mode + Add filter for packages 2014-12-31 21:56:20 +03:00
Nikolay Krasko
be008714fb Copy JavaPsiFacadeImpl version to modify it for Kotlin needs 2014-12-31 21:56:19 +03:00
Natalia Ukhorskaya
93d1dff181 Minor: make BaseGradleIT test abstract 2014-12-31 12:05:49 +03:00
Natalia Ukhorskaya
288b2e86ae Minor: rename 2014-12-31 12:05:48 +03:00
Natalia Ukhorskaya
4d48905ef1 Minor: fix warnings 2014-12-31 12:05:48 +03:00
Natalia Ukhorskaya
453c5752cb Minor: typo 2014-12-31 12:05:47 +03:00
Natalia Ukhorskaya
dfa30a7bb1 kotlin-gradle-plugin: remove maven-invoker-plugin used for tests 2014-12-31 12:05:47 +03:00
Natalia Ukhorskaya
292f82b767 Remove kotlin-gradle-plugin-test module 2014-12-31 12:05:46 +03:00
Natalia Ukhorskaya
5fbf440e33 kotlin-gradle-plugin: manage dependencies correctly 2014-12-31 12:05:45 +03:00
Nikita Skvortsov
8cf5d92b57 minor cleanup 2014-12-31 12:05:45 +03:00
Nikita Skvortsov
111791fa10 Move tests from core 2014-12-31 12:05:44 +03:00
Nikita Skvortsov
2a75d3f52a fix tests 2014-12-31 12:05:44 +03:00
Nikita Skvortsov
6f26972c50 fix tests 2014-12-31 12:05:43 +03:00
Nikita Skvortsov
f8c65e8a62 disconnect wrapper from core, delegate API calls using Gradle dynamic objects 2014-12-31 12:05:42 +03:00
Nikita Skvortsov
4e99a61aea fix compilation 2014-12-31 12:05:42 +03:00
Nikita Skvortsov
140bbe28fd move kotlin-gradle plugin classes from core to wrapper 2014-12-31 12:05:41 +03:00
Nikita Skvortsov
e6d6281a3f move java cross-compile-related code to kotlin2jvm task 2014-12-31 12:05:41 +03:00
Zalim Bashorov
619854a7a3 JS frontend: additional check for nativeSetter -- check that the return type is either Unit or a supertype of the second parameter's type. 2014-12-30 19:10:38 +03:00
Zalim Bashorov
76bafb9634 Added spec about JavaScript interop. 2014-12-30 17:30:05 +03:00
Zalim Bashorov
9869ae10e5 JS frontend: allow to omit body for native functions and initializer for native properties. Additionally suppress UNUSED_PARAM for new nativeX annotations too. 2014-12-29 21:37:18 +03:00
Zalim Bashorov
41dff74037 resolve/*Diagnostics* -> resolve/diagnostics/*Diagnostics*
And remove unused TraceUtil.java
2014-12-29 21:37:18 +03:00
Alexander Udalov
d4e90b5bc3 Regenerate tests 2014-12-29 19:32:10 +03:00
Alexander Udalov
e9badcbcc7 Rename AsmTypeConstants -> AsmTypes 2014-12-29 19:32:10 +03:00
Alexander Udalov
6cd6704bcf Remove obsolete codegen test data 2014-12-29 19:32:09 +03:00
Zalim Bashorov
7668f44655 JS lib: added hasNext to Kotlin.ListIterator and fixed next.
#KT-6506 Fixed

Additionally made abstract AbstractList::get and AbstractCollection::size.
2014-12-29 19:15:32 +03:00
Alexander Udalov
480f990c1d Preloader: HashMap constructor takes capacity, not expected size 2014-12-29 18:19:24 +03:00
Alexander Udalov
8306ccd8ec Preloader: extract nested classes to top-level 2014-12-29 18:19:24 +03:00
Alexander Udalov
9273b0dfec Preloader: support loading classpath dependencies from manifest
Move this logic from ide-compiler-runner. This fixes running 'kotlinc' CLI
compiler locally when the runtime is changed binary incompatibly
2014-12-29 18:19:23 +03:00
Alexander Udalov
91f110acd4 Preloader: support many resources by given name 2014-12-29 18:19:22 +03:00
Alexander Udalov
0d671141d0 Don't store class loader in CompilerEnvironment
Modules jps-plugin and ide-compiler-runner are loaded by the same class loader
2014-12-29 18:19:21 +03:00
Alexander Udalov
5e261e344e Move ExitCode to cli-common, simplify KotlinCompilerRunner
- check exit code's toString instead of integer code: more readable and stable
  this way
- call newInstance() on arguments' classes instead of pointless constants
2014-12-29 18:19:20 +03:00
Alexander Udalov
a14e0ac59e Simplify KotlinCompilerRunner and CompilerRunnerUtil 2014-12-29 18:19:19 +03:00
Alexander Udalov
9807643b0e Synchronize access to mutable class loader reference in CompilerRunnerUtil 2014-12-29 18:19:18 +03:00
Alexander Udalov
51e9675138 Include different runtime into plugin for bootstrap build 2014-12-29 18:19:18 +03:00
Alexander Udalov
ef1fef65c2 Minor, rename module to conform to naming style 2014-12-29 18:19:17 +03:00
Alexander Udalov
7de9a3f029 Load compiler dependencies in a separate class loader in IDE compiler runner
To be able to invoke the intermediate compiler built on the first step of
bootstrap: in contrast to the distributed compiler, it's incompatible with the
runtime produced by itself and should instead be run with the runtime in the
classpath which was used to compile it.

Drop the non-preloader mode of running compiler, because it would require using
a special parent-last class loader with exceptions specified by ClassCondition
2014-12-29 18:19:13 +03:00
Alexander Udalov
45c6d486fc Refactor CompilerRunnerUtil
Eliminate code duplication, add NotNull, make everything private, etc
2014-12-29 18:17:22 +03:00
Alexander Udalov
b8328f9190 Rename MessageRenderer constants 2014-12-29 18:17:21 +03:00
Alexander Udalov
a30a3f1926 Rework bootstrapping compiler with runtime in build.xml
Do not pack the runtime into the compiler on the first step of bootstrap, but
rather leave it as a separate file named kotlin-runtime-internal-bootstrap.jar.

This new solution will allow compiler to use its own classes from "core", not
the ones used by the runtime it depends on
2014-12-29 18:17:21 +03:00
Alexander Udalov
ffbae46e3c Compile kotlin-runtime-minimal.jar, run proguard against it
ProGuard complains if we're trying to shrink compiler with the full runtime in
dependencies because for the compiler produced on the first step of bootstrap
these two jars contain conflicting classes. This won't matter in the final
distribution because we will strip 'core' modules from compiler.jar. But this
matters in the first step because core will be different in the compiler (used
to load compiled class files) and in the reflection (used to introspect symbols
at runtime).

kotlin-runtime-minimal.jar still contains the complete reflection API and some
stub implementations in module 'reflection.stub.jvm', but doesn't have core, so
it won't cause a proguard error
2014-12-29 18:17:10 +03:00
Alexander Udalov
6c145de39e Minor, remove pointless comment and broken URL 2014-12-29 18:00:18 +03:00
Alexander Udalov
14dab749a2 Use reflection in Ant task to invoke compiler
This will allow a more controlled management of the runtime that the compiler
is linked against. Incidentally this also allows Ant task to use any of
compiler arguments via <compilerarg> because Ant task is now just a facade for
the CLI compiler.

The test "wrongArguments" is deleted because the full compiler usage is now
printed out on a wrong <compilerarg>, and this will become inconvenient to
update with each change in compiler arguments

 #KT-5618 Fixed
2014-12-29 18:00:18 +03:00
Alexander Udalov
3bde619ca3 Add test for obsolete issue
#KT-4434 Obsolete
2014-12-29 18:00:17 +03:00
Alexander Udalov
91754c0c4b Move test files to test data root 2014-12-29 18:00:16 +03:00
Nikolay Krasko
1ec7104132 Search in index under read lock to prevent entering to isDumb() mode (EA-63656) 2014-12-29 17:55:22 +03:00
Nikolay Krasko
3d254748b4 Minor: better function used and reformat 2014-12-29 17:55:21 +03:00
Valentin Kipyatkov
d297f4ad8f Minor 2014-12-29 17:27:30 +03:00
Valentin Kipyatkov
4b2ee7e645 Fixed KT-6429 Wrong replacement range in smart completion in some particular case
#KT-6429 Fixed
2014-12-29 17:27:30 +03:00
Valentin Kipyatkov
51678d0a45 KT-5874 Support code completion of label names after "continue@" and "break@"
#KT-5874 Fixed
2014-12-29 17:27:30 +03:00
Valentin Kipyatkov
4800a02e69 More correct list of keywords with no space after 2014-12-29 17:27:30 +03:00
Valentin Kipyatkov
0b687ddb05 Added tests for space insertion after return@xxx + do not overwrite space after keyword 2014-12-29 17:27:30 +03:00
Valentin Kipyatkov
e39443d53a Refactored tests for keywords insertion to be all generated 2014-12-29 17:27:30 +03:00
Valentin Kipyatkov
276b99857a Insertion of space after "return" depending on return type 2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
cdb5ec3492 KT-5875 Support code completion after "return@"
#KT-5875 Fixed
2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
95285f7a2e Auto-popup completion after @ 2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
39a5486db8 Completion of this@...: supported labeled function literals 2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
05be100f53 Corrected test data which was incorrect before 2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
3b0fe8831b Code completion of "this@..."
#KT-2035 Fixed
2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
2adcaef39c Completion: use class icon instead of method icon for instantiation 2014-12-29 17:27:29 +03:00
Valentin Kipyatkov
ddd63d69e9 KT-6442 Completion of inner class name contains outer name
#KT-6442 Fixed
2014-12-29 17:27:28 +03:00
Valentin Kipyatkov
b94e9e63c3 KT-6534 Code completion of global function does not insert import in very specific context
#KT-6534 Fixed
2014-12-29 17:27:28 +03:00
Dmitry Jemerov
eca8ed2768 Merge pull request #541 from JetBrains/rr/yole/coverageView2
Implement APIs added in IDEA 14.1 for Packages view and Coverage view to work
2014-12-29 14:49:14 +01:00
Dmitry Jemerov
e0677dffd4 a bit more cleanup 2014-12-29 14:48:26 +01:00
Dmitry Jemerov
d1123e116f refactor for clarity; don't ignore XxxPackage files not related to Kotlin 2014-12-29 13:57:56 +01:00
Dmitry Jemerov
553fd4dd12 code review; adapted to IDEA API change (Predicate -> Condition) 2014-12-29 12:29:01 +01:00
Andrey Breslav
42113b5e58 Filtering error types and accounting for platform types when computing intersections
KT-6508 Build impossible because of NoSuchElementException

 #KT-6508 Fixed
2014-12-29 14:13:14 +03:00
Svetlana Isakova
2d1891c63f Minor: moved checkTraitRequirements 2014-12-27 15:15:11 +03:00
Svetlana Isakova
b8cef2925f Refactoring: simplified resolveFunctionCall
Extracted resolveCallForConstructor, resolveCallForThisExpression
2014-12-27 00:55:45 +03:00
Svetlana Isakova
333a91395a Moved TailRecursionKind to cfg package 2014-12-27 00:55:44 +03:00
Svetlana Isakova
509a8adae5 Refactoring: moved capturing in closure check to call resolver extension 2014-12-27 00:55:44 +03:00
Svetlana Isakova
bc060dd145 Moved call resolver extensions to subpackage 2014-12-27 00:55:43 +03:00
Svetlana Isakova
37abdc2ca6 Rewritten captured type approximation test
Approximation bounds may be non-trivial both (in this case we ignore 'in' projection);
no need for special interpretation of 'Nothing?'
2014-12-27 00:55:28 +03:00
Svetlana Isakova
7daf9b53ce Minor: added a comment 2014-12-27 00:55:27 +03:00
Svetlana Isakova
74a08c9747 Added tests for simple approximation (of Captured(out/in Int)) 2014-12-27 00:55:26 +03:00
Svetlana Isakova
9d09a4d1b4 Fixed message for TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH error 2014-12-27 00:55:26 +03:00
Svetlana Isakova
7b09e85717 Added check for incompatible variance modifiers and repeated modifiers 2014-12-27 00:55:25 +03:00
Svetlana Isakova
d2becce1ac Make vararg argument of java annotation have 'out' type 2014-12-27 00:55:23 +03:00
Svetlana Isakova
d1556331ef Simplified signatures propagation for vararg types
(do not change flexible types)
2014-12-27 00:55:23 +03:00
Svetlana Isakova
179c9ef2d6 Refactoring. Moved error checks (for abstract, super)
to CandidateResolver

 Added error SUPER_CANT_BE_EXTENSION_RECEIVER (it was SUPER_IS_NOT_AN_EXPRESSION)
2014-12-27 00:55:22 +03:00
Svetlana Isakova
62c8a6f79a Fixed resolve for callable references
functions and properties have the same priority
2014-12-27 00:55:22 +03:00
Alexander Udalov
f0bb6c58fc Add 'build-bootstrap-artifacts' target to build.xml
Will be used in bootstrap build; no reason to build kotlin-for-upsource and
zip-test-data there
2014-12-26 22:55:32 +03:00
Alexander Udalov
fa9e1ca602 Fix runtime for kotlin-for-upsource and simplify classpath 2014-12-26 22:52:52 +03:00
Alexander Udalov
11dfdfc123 Minor, add test for obsolete issue
#KT-4228 Obsolete
2014-12-26 22:52:39 +03:00
Valentin Kipyatkov
18a536c846 Added test for correct package names resolve inside local classes 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov
b61b45f794 Renamed class + inherited NoSubpackagesInPackageScope from adapter class to get printScopeStructure implementation 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov
a383a82ddd No subpackages of current package resolved by short name 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov
817b86a820 Temporary added explicit imports of java.util.Collections into stdlib 2014-12-26 16:23:18 +03:00
Valentin Kipyatkov
0b701950ac Removed js package usages 2014-12-26 15:45:01 +03:00
Valentin Kipyatkov
6275a19a10 Fixing compilation 2014-12-26 15:45:01 +03:00
Valentin Kipyatkov
1f17d7adcd Changed language sematics: imports with '*' do not import packages anymore 2014-12-26 15:45:01 +03:00
Valentin Kipyatkov
d540f3b724 JetScope.getAllDescriptors made final 2014-12-26 15:45:01 +03:00
Andrey Breslav
06c5be6489 Fix tests: No dangling annotations in stubs 2014-12-26 15:10:13 +03:00
Zalim Bashorov
6c6ced2442 Minor in JS lib: avoid to use undefined literal which may be over overlapped. 2014-12-26 14:20:21 +03:00
Zalim Bashorov
51724e4b0d Drop some obsolete TODOs in MapJsTest 2014-12-26 14:20:21 +03:00
Zalim Bashorov
9ab045e598 JS declarations: added eval, typeof, undefined.
#KT-4136 Fixed
2014-12-26 14:20:20 +03:00
Nikolay Krasko
0988d6cace Update to idea 139.872.1 2014-12-26 14:00:12 +03:00
Michael Nedzelsky
eded72d633 fix KT-6192: VerifyError when using spreads with primitive arrays
#KT-6192 Fixed
2014-12-25 22:07:24 +03:00
Andrey Breslav
fb7fe81a85 Support navigation to dangling annotations in the IDE 2014-12-25 22:02:23 +03:00
Andrey Breslav
89e1588e13 LIGHT_CLASSES mode for scripts
- Do not generate constructor bodies
- Do not generate script class when package contents are requested
- NOT DONE: generate script class when its name is requested
2014-12-25 22:02:23 +03:00
Andrey Breslav
95f5e8d08c Fix exception from completion and other services 2014-12-25 22:02:23 +03:00
Valentin Kipyatkov
1fda9ed29f J2K: fixed duplicated open modifier generated 2014-12-25 19:55:29 +03:00
Andrey Breslav
292cb9baa9 Resolve dangling annotations in files and class bodies 2014-12-25 19:42:38 +03:00
Alexey Sedunov
e296390dd6 Introduce Variable: Do not create separate template to edit type reference
#KT-4314 Fixed
2014-12-25 17:12:19 +03:00
Alexey Sedunov
46ceed8586 Rename: Show error message when trying to rename dynamically invoked function/property 2014-12-25 17:12:18 +03:00
Alexey Sedunov
47aa0cba7d Change Signature: Do not fail on dynamic calls. Show error messages instead
#KT-6529 Fixed
2014-12-25 17:12:17 +03:00
Alexey Sedunov
c7a71827a7 Introduce Variable: Amend semicolons to updated expression
#KT-2098 Fixed
2014-12-25 17:12:16 +03:00
Pavel V. Talanov
2fe77d2c6c Fix problem with several runtimes configured 2014-12-25 15:49:49 +03:00
Nikolay Krasko
63e957559e Add warning when non-empty scope without project is used for IDEVirtualFileFinder 2014-12-24 18:39:57 +03:00
Nikolay Krasko
5041f00fea Do not wrap empty scope and fix kotlinSourceAndClassFiles() 2014-12-24 18:39:55 +03:00
Nikolay Krasko
cdeaa484bc Create modules with projects 2014-12-24 18:39:45 +03:00
Nikolay Krasko
2a417e822b Check for dumb mode before evaluation start 2014-12-24 18:29:59 +03:00
Andrey Breslav
0b01667ad1 Incorrect assertions removed: these methods are used by completion
Completion correctly proposes packages in type position, as part of an incomplete fqName
2014-12-24 17:53:02 +03:00
Dmitry Jemerov
732c3fac2f Implement APIs added in IDEA 14.1 for Packages view and Coverage view to work. 2014-12-24 15:32:26 +01:00
Pavel V. Talanov
d6881b78d2 Add hack to avoid stub ast mismatch when decompiling libraries built with M9 compiler 2014-12-24 16:49:59 +03:00
Pavel V. Talanov
e9ebf4e3c1 Cls stub builder test: test extension on function type 2014-12-24 16:49:58 +03:00
Valentin Kipyatkov
9f6d32f1f6 Fixed EA-63622 - IAE: FqName.validateFqName 2014-12-24 15:48:42 +03:00
Valentin Kipyatkov
64da34e78b Corrections after review + one more test added 2014-12-24 15:48:42 +03:00
Valentin Kipyatkov
bfdbbe0247 KT-6407 Completing function with "tab" (replace) shouldn't insert parentheses when type arguments are present
#KT-6407 Fixed
2014-12-24 15:48:42 +03:00
Valentin Kipyatkov
6e6289435f Fixed exception 2014-12-24 15:48:42 +03:00
Valentin Kipyatkov
91220faf06 KT-6122 Code completion in when in enum extension methods suggests non-qualified enum entry names
#KT-6122 Fixed
2014-12-24 15:48:42 +03:00
Valentin Kipyatkov
49b36cc942 Fixed EA-62981 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2014-12-24 15:47:07 +03:00
Nikolay Krasko
ba02112b3c Rethrow IndexNotReadyException 2014-12-24 15:40:49 +03:00
Nikolay Krasko
5745a1624b Take read action instead of simply asserting it 2014-12-24 15:40:47 +03:00
Valentin Kipyatkov
24f79e4817 Fixed EA-63488 2014-12-24 15:36:24 +03:00
Pavel V. Talanov
9164c77a7e Cache java file stub for light classes build for decompiled files 2014-12-24 14:57:18 +03:00
Pavel V. Talanov
007053489c Fail on duplicate file when packing runtime sources for jvm
Fail on duplicate when packing kotlin-jslib.jar and kotlin-jslib-sources.jar
Move files from root of stdlib to avoid existing conflicts
Rename System to SystemJvm to avoid including to js lib
2014-12-24 14:55:21 +03:00
Valentin Kipyatkov
f1840a4f39 Fixed detection of parenthesis needed (otherwise it added them around if when not needed) 2014-12-24 14:19:26 +03:00
Valentin Kipyatkov
b1372f0d9e Fixed if-statements with else branch handling 2014-12-24 14:19:26 +03:00
Valentin Kipyatkov
3db51cfcd8 KT-5927 Join Lines could merge nested if's
#KT-5927 Fixed
2014-12-24 14:19:26 +03:00
Valentin Kipyatkov
bc631d7aee Fixed Join LInes on a block when there is a space in the end of line 2014-12-24 14:19:25 +03:00
Valentin Kipyatkov
478b5070ef KT-6019 Join lines should remove code block in when entry body
#KT-6019 Fixed
2014-12-24 14:19:25 +03:00
Valentin Kipyatkov
0823c1528a Fixed 2 bugs in Join Lines 2014-12-24 14:19:25 +03:00
Valentin Kipyatkov
37e40267fe KT-6521 Expand selection works wrong on a call inside for loop's range
KT-6518 Extend selection not working for expression in if

 #KT-6521 Fixed
 #KT-6518 Fixed
2014-12-24 14:17:43 +03:00
Natalia Ukhorskaya
94466da61b Evaluate expression: render InvocationExceptions correctly 2014-12-24 13:48:17 +03:00
Natalia Ukhorskaya
b6095eca58 Eval4j: return ObjectValue as argument of ExceptionThrown 2014-12-24 13:48:16 +03:00
Natalia Ukhorskaya
a894979c81 Extract function: add default name for parameter 2014-12-24 13:48:16 +03:00
nbilyk
87ab271f58 Removed redundant native annotations from canvas.kt 2014-12-24 12:55:34 +03:00
nbilyk
1edd48daa2 #KT-6467 Fixes Removed invalid drawImage signatures, renamed parameters
#KT-6467 fixed
2014-12-24 12:55:19 +03:00
Zalim Bashorov
a05ba64f93 Gradle plugin: fix tests. 2014-12-24 12:29:38 +03:00
Zalim Bashorov
35e2a46ae0 Minor in Gradle plugin: don't copy kotlin.js 2014-12-24 12:29:37 +03:00
Zalim Bashorov
1e4100afd5 Gradle plugin: ignore non kotlin-js libraries in dependencies. 2014-12-24 12:29:37 +03:00
Zalim Bashorov
eac0e99e65 Minor cleanup in Gradle plugin. 2014-12-24 12:29:36 +03:00
Zalim Bashorov
5e495d6bd9 Fix maven build. 2014-12-24 12:29:10 +03:00
Zoltan Nagy
e08fa1cab2 Kotlin2Js Gradle plugin tests 2014-12-24 12:27:55 +03:00
Zoltan Nagy
b1723668ce Kotlin2Js Gradle plugin implementation 2014-12-24 12:27:55 +03:00
Nikolay Krasko
ec47cb57c5 Minor: check cancel before each marker count 2014-12-24 01:45:37 +03:00
Nikolay Krasko
fac3b0068b Don't fail on index update when counting paths for bad abi roots
EA-63535
2014-12-24 01:45:34 +03:00
Nikolay Krasko
0b300bd7fb Minor: Fix warnings 2014-12-24 01:45:31 +03:00
Nikolay Krasko
8f84daf31e Show Kotlin icons in dumb mode 2014-12-24 01:45:26 +03:00
Nikolay Krasko
b22726d424 Fix "Index not ready" in structure view 2014-12-24 01:45:24 +03:00
Nikolay Krasko
6b71a99c12 Don't run processTransferableData() in dumb mode 2014-12-24 01:45:22 +03:00
Nikolay Krasko
b7159ab13b Remove outdated hint that was popping out on declarations
Sometimes it was clashed with warnings and errors

EA-63522
2014-12-24 01:45:19 +03:00
Nikolay Krasko
efa6cdc996 Change marker classes. Use only Java classes as to determine runtime even if abi version is outdated. 2014-12-24 01:45:17 +03:00
Valentin Kipyatkov
c882e902c3 Override property calls super when its not abstract 2014-12-23 21:38:49 +03:00
Valentin Kipyatkov
5f2446d889 Implement property uses throw UnsupportedOperationException() instead of default value or ? 2014-12-23 21:38:49 +03:00
Alexey Sedunov
367b99a156 Extraction refactorings: Do not suggest extraction of type elements
#KT-3994 Fixed
2014-12-23 20:43:23 +03:00
Alexey Sedunov
1e5769acfd Introduce Variable: Remove braces from replaced string template entries when possible
#KT-5310 Fixed
2014-12-23 20:43:22 +03:00
Alexey Sedunov
7d31c562b3 Remove braces from block string template entry: Simplify implementation 2014-12-23 20:43:20 +03:00
Alexey Sedunov
82579f489b Introduce Variable: Convert property accessor body to block when needed 2014-12-23 20:43:20 +03:00
Alexey Sedunov
05a0481efa Formatter: Fix spacing between '=' and '{' in property accessors 2014-12-23 20:43:19 +03:00
Alexey Sedunov
e76792d4f2 Introduce Variable: Do not delete original expression if its value is used in enclosing expression 2014-12-23 20:43:18 +03:00
Alexey Sedunov
6084352d37 Introduce Variable: Properly convert function body to block when needed
#KT-5353
2014-12-23 20:43:17 +03:00
Alexey Sedunov
c73253259f PSI: Move getEqualsToken() method to JetDeclarationWithBody 2014-12-23 20:43:16 +03:00
Alexey Sedunov
a9a30a1b7d PSI Pattern Matching: Respect type arguments when matching calls
#KT-6496 Fixed
2014-12-23 20:43:15 +03:00
Zalim Bashorov
7579471859 JS stdlib: fixed Set::equals. 2014-12-23 20:01:21 +03:00
Ilya Ryzhenkov
217e25855e Implement Collection<T>.size() on map's values() in JS 2014-12-23 20:00:02 +03:00
Ilya Ryzhenkov
d908678dcf Take into account collection sizes when possible #KT-6180 2014-12-23 20:00:01 +03:00
Ilya Ryzhenkov
4cd2ba1e30 Fix Array<out> variance in stdlib #KT-6482 Fixed 2014-12-23 20:00:01 +03:00
Ilya Ryzhenkov
377988cb7b toSortedMap() without comparator requires non-null keys #KT-6509 Fixed 2014-12-23 20:00:00 +03:00
Ilya Ryzhenkov
071eb87f27 Remove unnecessary constraint from filterIsInstance(Class<R>) signature #KT-6516 Fixed 2014-12-23 20:00:00 +03:00
Andrey Breslav
93326d8643 Added centralized positioning for front-end exceptions 2014-12-23 18:37:40 +03:00
Andrey Breslav
e4ce723eae Increase ReservedCodeCacheSize in tests 2014-12-23 18:37:40 +03:00
Michael Bogdanov
db40a5a3d8 Skip local declarations in visibility publicity checking 2014-12-23 16:28:44 +03:00
Michael Bogdanov
9e864f3c36 Fix java visibility publicity
#KT-6478 Fixed
2014-12-23 16:28:44 +03:00
Michael Nedzelsky
5013abe8cd JS backend: fix KT-6401 JS: wrong result for code with many spread operator
#KT-6401 Fixed
2014-12-23 16:02:40 +03:00
Michael Nedzelsky
4b2d3ba3d0 JS backend: tests for KT-6401 JS: wrong result for code with many spread operator 2014-12-23 16:02:38 +03:00
Andrey Breslav
bdefbc182a Take declaration's origin element before looking for declaration by descriptor 2014-12-23 15:18:48 +03:00
Andrey Breslav
5a7aa65d53 Failing tests temporarily disabled 2014-12-23 15:18:47 +03:00
Andrey Breslav
6728a384e4 KT-4881 Annotation resolved to package should be compile-time error
#KT-4881 Fixed
2014-12-23 15:18:47 +03:00
Andrey Breslav
8ff5cf62cc Generate annotations from descriptors, not PSI 2014-12-23 15:18:46 +03:00
Andrey Breslav
830e4dfd98 Pointless annotations removed 2014-12-23 15:07:45 +03:00
Andrey Breslav
0880c20614 Rename ONLY_CLASSES -> ONLY_CLASSES_AND_PACKAGES 2014-12-23 15:07:45 +03:00
Andrey Breslav
e86b412a61 Merge pull request #537 from JetBrains/rr/nik
fixed typo in file name
2014-12-23 15:03:18 +03:00
Valentin Kipyatkov
db6bf787fc Fixed NPEs 2014-12-23 14:52:46 +03:00
nik
2a60c6d759 fixed typo in file name 2014-12-23 14:41:00 +03:00
Natalia Ukhorskaya
9283daccb6 Debugger: fix evaluate expression for traits 2014-12-23 14:40:28 +03:00
Natalia Ukhorskaya
704f8d1446 Debugger: use intellij method to invoke method (should mute breakpoint during invocation) 2014-12-23 14:40:28 +03:00
Natalia Ukhorskaya
8896aa93b4 Fix NPE in ReferenceVariantsHelper
#KT-6500 Fixed
2014-12-23 14:40:27 +03:00
Natalia Ukhorskaya
e35b960eb5 Stepping: do not write line numbers for call arguments
#KT-3080 Fixed
2014-12-23 14:40:26 +03:00
Natalia Ukhorskaya
c66af565f6 Make LineNumberTest auto-generated 2014-12-23 14:40:25 +03:00
Natalia Ukhorskaya
449ebc35ef Debugger: add ability to evaluate expressions on closing bracket 2014-12-23 14:40:25 +03:00
Natalia Ukhorskaya
261ced59c5 Correct labels for local variables 2014-12-23 14:40:24 +03:00
Natalia Ukhorskaya
1422cc4794 Minor: replace deprecated function call 2014-12-23 14:40:23 +03:00
Natalia Ukhorskaya
0dcb5b05b6 Local variables should be visible on return statement in debugger
#KT-6248 Fixed
2014-12-23 14:40:23 +03:00
Valentin Kipyatkov
311a3a75c8 Code completion: do not list instance members from context with no instance
#KT-6388 Fixed
 #KT-4422 Fixed
 #KT-5516 Fixed
2014-12-22 18:26:03 +03:00
Pavel V. Talanov
d33e60b876 Reintroduce change erroneously reverted in 2fec18ffa7 2014-12-22 16:05:15 +03:00
Pavel V. Talanov
69ec789013 Support PRIVATE_TO_THIS in cls stub builder 2014-12-22 16:05:15 +03:00
Svetlana Isakova
6489ff2cb6 Ignore constraint from implicit 'in Nothing'
From Array<T> <: Array<out Int> we may generate T >: Nothing (implicit) and T <: Int (explicit).
Without ignoring we'll infer 'Nothing' for T too often
2014-12-22 12:04:42 +03:00
Pavel V. Talanov
70f6fcadc9 Increase stub version 2014-12-21 14:23:43 +03:00
Pavel V. Talanov
15add4bd64 Remove no longer meaningful utils from JavaResolverUtils 2014-12-21 14:23:42 +03:00
Pavel V. Talanov
24f1635d2c Filter out duplicate navigation targets for references in library source 2014-12-21 14:23:42 +03:00
Pavel V. Talanov
7684e08000 Update TypeInstantiationItems
To maintain old behaviour
2014-12-21 14:23:41 +03:00
Pavel V. Talanov
e7e3ac1318 ProjectRootsUtil: fix check for library class and source file for js projects
Update JetSourceFilterScope
Extract JsProjectDetector
2014-12-21 14:23:40 +03:00
Pavel V. Talanov
fbefd08de3 Structure view for compiled kotlin files 2014-12-21 14:23:39 +03:00
Pavel V. Talanov
01804a8853 Use module file index in getModuleInfo to determine source/test module info
Do not include files that are in content of module but are not in source content
Do not log error in case there is compiled kotlin file in source content
2014-12-21 14:23:39 +03:00
Pavel V. Talanov
2fec18ffa7 Limit search scope in DecompiledNavigationUtils
To avoid finding classes that are not under relevant roots
2014-12-21 14:23:38 +03:00
Pavel V. Talanov
08241f508e KotlinDirectInheritorsSearcher: exclude library source from search 2014-12-21 14:23:37 +03:00
Pavel V. Talanov
063870d4de Enable DeclarationHintSupport for decompiled kotlin files 2014-12-21 14:23:36 +03:00
Pavel V. Talanov
14649337ae Enable basic highlighting in decompiled kotlin files 2014-12-21 14:23:36 +03:00
Pavel V. Talanov
256e9a6b86 Refactor ProjectRootsUtil
Account for cases when there library source files under classes root
2014-12-21 14:23:35 +03:00
Pavel V. Talanov
ba22c3d790 Remove all usages of JetFromJavaDescriptorHelper
Rewrite some utilities in KotlinIndicesHelper
ResolutionFacade#resolveToDescriptor() should be avoided on psi from compiled kotlin for now
2014-12-21 14:23:35 +03:00
Pavel V. Talanov
dbdf3c0e98 Update JetQuickDocumentationProvider 2014-12-21 14:23:34 +03:00
Pavel V. Talanov
5573887c29 Minor: Add TODO 2014-12-21 14:23:33 +03:00
Pavel V. Talanov
571e71606c getModuleInfo for KotlinLightClassForDecompiledDeclaration 2014-12-21 14:23:33 +03:00
Pavel V. Talanov
f72f67ed97 Update NavigateToDecompiledLibraryTest 2014-12-21 14:23:32 +03:00
Pavel V. Talanov
55589a32da NavigateFromLibrarySourcesTest: update test for library source light classs 2014-12-21 14:23:32 +03:00
Pavel V. Talanov
8d01c433f0 Build light classes for compiled kotlin files
This is needed for kotlin binaries to be resolved from java code
2014-12-21 14:23:31 +03:00
Pavel V. Talanov
ec4f506f8f Minor: move some code to super class in Kotlin light classes 2014-12-21 14:23:31 +03:00
Pavel V. Talanov
eb1feeb480 Tests for kotlin nested class members completion from java 2014-12-21 14:23:30 +03:00
Pavel V. Talanov
56e3983dc9 Move and rename JavaElementFinderMultiFileTest
It is now relevant for IDE only
2014-12-21 14:23:30 +03:00
Pavel V. Talanov
64549b5dd3 Update DecompiledTextForWrongAbiVersionTest 2014-12-21 14:23:29 +03:00
Pavel V. Talanov
15b2977b85 Refactor: refine API of LightClassGenerationSupport
Move some specific code to IDELightClassGenerationSupport
2014-12-21 14:23:28 +03:00
Pavel V. Talanov
33fc241158 Rework go to symbol/class and getNavigationElement() for kotlin declarations
Based on work by geevee
2014-12-21 14:23:28 +03:00
Pavel V. Talanov
5676b0bf7c Minor: add another mode to JetSourceFilterScope 2014-12-21 14:23:27 +03:00
Pavel V. Talanov
79ce7135a4 Update AbstractDecompiledTextTest 2014-12-21 14:23:27 +03:00
Pavel V. Talanov
6cf14f5500 Update JetClassFileViewProvider: JetClsFile is Kotlin compiled file 2014-12-21 14:23:26 +03:00
Pavel V. Talanov
6362336208 Test stubs for compiled Kotlin files 2014-12-21 14:23:26 +03:00
Pavel V. Talanov
afc6ba5e16 Build kotlin stubs for compiled Kotlin files
This means that JetPsi would be built for compiled kotlin files
2014-12-21 14:23:25 +03:00
Pavel V. Talanov
e9fa9bac47 Minor: Extract LoggingErrorReporter 2014-12-21 14:23:24 +03:00
Pavel V. Talanov
e20dd42aa4 Refactor stubs:
Convert all interface classes to kotlin and move them into one file
Convert some of Impl classes
Fix typo: hasValOrValNode
Extract ModifierMaskUtils
Minors
2014-12-21 14:23:24 +03:00
Pavel V. Talanov
72aba2b758 Change default parameter rendering in decompiled text
So the code does not contain syntax errors
2014-12-21 14:23:23 +03:00
Pavel V. Talanov
d0479aa61b DecompiledTextFactory: use own implementation of type normalizer
Do not rely on IDE utils
This makes implementing cls stub builder easier
2014-12-21 14:23:22 +03:00
Pavel V. Talanov
41f2c71081 Refactor: Extract and expose local class data finder as separate class 2014-12-21 14:23:22 +03:00
Pavel V. Talanov
9e784e7018 Minor: Add some utils to KotlinBuiltIns 2014-12-21 14:23:21 +03:00
Evgeny Gerashchenko
c6c3e5a4c6 Updated test data according to JPS. Behavior is still wrong, but it is work in progress on IDEA side. 2014-12-20 15:06:53 +03:00
Natalia Ukhorskaya
c6d134d63c Debugger: change usage of getSourcePosition method to SourcePositionManager
(cherry picked from commit f1c4e36)
2014-12-20 15:06:03 +03:00
Zalim Bashorov
c6777db64f Update to IDEA 14.0.3 EAP (139.791.2) 2014-12-20 15:06:03 +03:00
Andrey Breslav
633a4aa8f2 Self-types marked as unsupported 2014-12-19 20:36:16 +03:00
Nikolay Krasko
f8dc0d028d Remove warning about long look-ahead
It's do a annoying warn when there's a code like this:

{
  call(params)
  call(params)
  call(params)
}
2014-12-19 17:29:24 +03:00
Nikolay Krasko
db488ad295 Add utility function for getting text with context 2014-12-19 17:29:24 +03:00
Michael Nedzelsky
98fde07c9e fix check in KotlinMavenConfigurator.isConfigured 2014-12-19 16:14:52 +03:00
Alexander Udalov
6793464cd0 Drop obsolete code in built-in serialization 2014-12-19 14:41:51 +03:00
Alexander Udalov
a6566139ee Minor, fix style issues in ant tasks 2014-12-19 14:38:18 +03:00
Alexander Udalov
444ac32f98 Minor, rename JS Ant tasks
To be able to use the build file from the terminal conveniently, make names
shorter and avoid autocompletion conflict with "compiler"
2014-12-19 14:37:47 +03:00
Alexander Udalov
b27d3e91d3 Avoid redefining kotlin2js task in "ant jslib"
This helps to specify custom runtime for the newly built kotlin2js (which is
supposed to be different for the two bootstrapping steps). Also now it's not
required to launch ant-tools task before jslib to build JS library
2014-12-19 14:37:47 +03:00
Alexander Udalov
865b663015 Minor style fixes in ParentLastURLClassLoader 2014-12-19 14:37:47 +03:00
Alexander Udalov
0401b65ae4 Use findLoadedClass instead of hand-written cache in ParentLastURLClassLoader 2014-12-19 14:37:46 +03:00
Alexander Udalov
bcf6a885d8 Drop "+StdLib" from manifest entries 2014-12-19 14:37:46 +03:00
Alexander Udalov
4358b3fbc3 Do not use private Sun API in preloader 2014-12-19 14:37:46 +03:00
Nikolay Krasko
5777b23955 Avoid recounting auto-import suggesting for outdated quick-fix objects 2014-12-19 01:41:35 +03:00
Denis Zharkov
e479956f57 Note in specs about replacing reified TP with primitives 2014-12-18 21:12:52 +03:00
Denis Zharkov
04e560bc74 Get reified signature from JetTypeMapper
#KT-6485 Fixed
2014-12-18 21:12:52 +03:00
Alexey Sedunov
6df91fdda7 Change Signature: Remove useless indentation 2014-12-18 21:06:16 +03:00
Alexey Sedunov
ec608c5db2 Change Signature: Retain formatting of existing parameters when parameter count/order changes
#KT-6412 Fixed
2014-12-18 21:06:15 +03:00
Alexey Sedunov
ec5a01be31 Change Signature: Translate JetChangeInfo to Kotlin 2014-12-18 21:06:14 +03:00
Alexey Sedunov
2927fc9ede Change Signature: Rename JetChangeInfo.java to .kt to keep history 2014-12-18 21:06:13 +03:00
Alexey Sedunov
6544294f8f Change Signature: Translate JetParameterInfo to Kotlin 2014-12-18 21:06:12 +03:00
Alexey Sedunov
04a56afa23 Change Signature: Rename JetParameterInfo.java to .kt to keep history 2014-12-18 21:06:11 +03:00
Alexey Sedunov
17d5e220bb Change Signature: Translate JetMethodDescriptor.java,
JetChangeSignatureData.java to Kotlin
2014-12-18 21:06:10 +03:00
Alexey Sedunov
9d3ebb9695 Change Signature: Rename JetMethodDescriptor.java, JetChangeSignature.java to .kt to keep history 2014-12-18 21:06:09 +03:00
Alexey Sedunov
adb1155b6d Minor: Replace deprecated function 2014-12-18 21:06:08 +03:00
Alexey Sedunov
22e258dbee Change Signature: Translate JetUsagesViewDescriptor to Kotlin 2014-12-18 21:06:07 +03:00
Alexey Sedunov
a1cab8cd8e Change Signature: Rename JetUsagesViewDescriptor.java to .kt to keep history 2014-12-18 21:06:06 +03:00
Alexey Sedunov
5e34308a08 Change Signature: Translate JetValVar to Kotlin 2014-12-18 21:06:05 +03:00
Alexey Sedunov
fe455df001 Change Signature: Drop JetGeneratedInfo class (unused so far) 2014-12-18 21:06:04 +03:00
Alexey Sedunov
dd647416f8 Find Usages: Change .text extension to .txt in test data 2014-12-18 21:06:02 +03:00
Evgeny Gerashchenko
c02d850334 Minor. Reverted optimized import in generated test 2014-12-18 21:28:14 +04:00
Valentin Kipyatkov
eb35827e9a More clear code 2014-12-18 19:02:17 +03:00
Valentin Kipyatkov
7893b1d83f KT-5896 Select Word should always have step for selecting the content of string literal
#KT-5896 Fixed
2014-12-18 19:02:17 +03:00
Valentin Kipyatkov
01b70cfe8e Minor code refactoring 2014-12-18 19:02:17 +03:00
Valentin Kipyatkov
11a72632bc KT-3949 Extend selection in case of comment before several statements
#KT-3949 Fixed
2014-12-18 19:02:17 +03:00
Valentin Kipyatkov
3059a46ca7 Fixed KT-5894 Select Woes: no need to select code block + end of line
+ corrected selection of when

 #KT-5894 Fixed
2014-12-18 19:02:17 +03:00
Valentin Kipyatkov
5f9e685188 KT-5895 Select Word: no need to select argument list including parenthesis
#KT-5895 Fixed
2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
dceeeb2724 No need to inherit from java-specific selectioner class 2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
46906fd89c KT-5292 Expand selection should have kdoc + method as a stop point
KT-3947 Extend selection works badly with comment

 #KT-5292 Fixed
 #KT-3947 Fixed
2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
acdb750c91 Renamed classes 2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
f8ceb039bb Added utilities 2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
47a311cb15 Added word to personal dictionary 2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
848623fe8f Changed format of test data for word selection test - each test's data in own directory 2014-12-18 19:02:16 +03:00
Valentin Kipyatkov
ead2dea10d Corrected annotations: ExtendWordSelectionHandler CAN return null 2014-12-18 19:02:15 +03:00
Valentin Kipyatkov
f4c9eabd1d Refactored code 2014-12-18 19:02:15 +03:00
Valentin Kipyatkov
f22e14571f Minor code improvement 2014-12-18 19:02:15 +03:00
Valentin Kipyatkov
7b58d8b1e9 Refactored code 2014-12-18 19:02:15 +03:00
Valentin Kipyatkov
c2d37805be Converted code to Kotlin 2014-12-18 19:02:15 +03:00
Michael Nedzelsky
8074ab27ea JS backend: fix KT-6112 jsonFromTuples is broken
#KT-6112 Fixed
2014-12-18 18:10:26 +03:00
Andrey Breslav
0abf56c9ac Spec document for reified type parameters 2014-12-18 17:28:53 +03:00
Valentin Kipyatkov
d8574f38d2 Trying to rewrite code to avoid JVM crash 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov
6ec10b9b6b Correct completion of nested/inner classes after dot
#KT-1889 Fixed
2014-12-18 15:48:27 +03:00
Valentin Kipyatkov
8f32a6c1f9 Partial body resolve test to test 2 resolve modes 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov
2a41856af6 Changed API in ResolutionFacade to resolve to element to support 3 modes 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov
9c8b7ed6f5 Fixed KT-6408 Completion auto-popup prevents smooth typing of "!in"
#KT-6408 Fixed
2014-12-18 15:48:27 +03:00
Valentin Kipyatkov
acc55c8c24 Optimization 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov
0508e7e031 Safer class name insertion - do not insert artificial prefix too often because it may affect code parsing below in the file 2014-12-18 15:48:26 +03:00
Valentin Kipyatkov
8e1af2b720 Fixed occasional insertions of fq-names by completion and similar effects
#KT-6182 Fixed
 #KT-6111 Fixed
2014-12-18 15:48:26 +03:00
Valentin Kipyatkov
bdf7455578 KT-5986 No code completion for second type argument of HashMap instantiation
KT-6406 Code completion in type argument position should not include functions and variables

 #KT-5986 Fixed
 #KT-6406 Fixed
2014-12-18 15:47:59 +03:00
Valentin Kipyatkov
e9f1ae5886 More clear test data format 2014-12-18 15:47:59 +03:00
Valentin Kipyatkov
cb5c12cda3 Completion of object's in type position - they can be used there 2014-12-18 15:47:59 +03:00
Valentin Kipyatkov
ca2b1efac9 A bit more clear code 2014-12-18 15:47:59 +03:00
Valentin Kipyatkov
191d3e2766 Corrected usages of isNullableType/isMarkedNullable 2014-12-18 15:47:58 +03:00
Valentin Kipyatkov
9f845f0de4 Fixed KT-4892 Override method generates redundant type arguments in call to super
#KT-4892 Fixed
2014-12-18 15:41:34 +03:00
Valentin Kipyatkov
4b9bcce07a Fixed KT-4431 Override/implement val: generate getter instead of initializer
#KT-4431 Fixed
2014-12-18 15:41:33 +03:00
Zalim Bashorov
eae4cdbd8f Log error when cannot read properties. 2014-12-18 14:34:38 +03:00
Zalim Bashorov
465c4a397e Rename manifest.properties to kotlinManifest.properties to avoid clashing with other resources. 2014-12-18 14:34:37 +03:00
Michael Nedzelsky
543141c564 JS backend: fix KT-6323: KotlinJS library modules
#KT-6323 Fixed
2014-12-18 02:08:55 +03:00
Michael Nedzelsky
9f0f930e26 JS backend: tests for KT-6323 KotlinJS library modules 2014-12-18 02:08:52 +03:00
Valentin Kipyatkov
2074872de9 Completion: higher priority for sorting by deprecated 2014-12-17 22:19:38 +03:00
Michael Nedzelsky
d909a66d4d do not copy js files from libraries in case of compile errors 2014-12-16 21:37:46 +03:00
Svetlana Isakova
b7806be8b5 Fixed test data for builtin-classes 2014-12-16 20:01:38 +03:00
Zalim Bashorov
92984a37ea Js frontend: prohibit default values for functions annotated as nativeIndexer. 2014-12-16 18:30:05 +03:00
Zalim Bashorov
4c3073d03e JS frontend tests: add test cases with declare member extension functions. 2014-12-16 18:30:04 +03:00
Zalim Bashorov
990415b69f Minor in JS frontend: join isTopLevel and hasLocalVisibility into isMember and simplify condition. 2014-12-16 18:30:04 +03:00
Zalim Bashorov
4ed635b4a7 Minor in JS frontend: compare fq names as string to avoid crash. 2014-12-16 18:30:04 +03:00
Michael Nedzelsky
0a535432e4 JS backend: fix using old Kotlin Javascript stdlib 2014-12-16 17:48:26 +03:00
Zalim Bashorov
2484954e2f Frontend tests: serialize dynamic call descriptors and check them in diagnostic tests. 2014-12-16 17:48:26 +03:00
Zalim Bashorov
d071c44126 Minor in Frontend: fix default getter return type. 2014-12-16 17:48:26 +03:00
Zalim Bashorov
d666677958 JS backend: added dynamic.iterator to simplify the using "iterable" objects. 2014-12-16 17:48:25 +03:00
Ilya Ryzhenkov
f4b96a0a1a Add mapIndexed() function for common case withIndex().map{} #KT-3153 Fixed 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov
846014b37f Add missing sum() on Streams. 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov
f7d4ca092c Deprecate size and length property on CharSequence. 2014-12-16 17:33:26 +03:00
Ilya Ryzhenkov
053586f481 Make lazy version of assert accept function with Any return value, #KT-6459 Fixed 2014-12-16 17:33:26 +03:00
Ilya Ryzhenkov
47da114599 Document String built-in class. 2014-12-16 17:33:25 +03:00
Ilya Ryzhenkov
7b8f34388b Add Module.md and document packages. 2014-12-16 17:33:25 +03:00
Ilya Ryzhenkov
3dca4a08c3 Document Pair and Triple 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov
be717f48f8 Stop using deprecated APIs 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov
2b8ffeda28 Stop generating deprecated string functions, move to deprecated folder. 2014-12-16 17:33:23 +03:00
Ilya Ryzhenkov
835c74812e Add platformStatic to Charsets values. 2014-12-16 17:33:23 +03:00
Ilya Ryzhenkov
cdaa984270 Remove js custom emptyList()/emptyMap() implementation. 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov
9242a3d3dc Use standard emptyList() 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov
fbbb7eced1 Collect deprecated code, remove unused private ImmutableArrayList 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov
31fb24d390 Sort collections/map APIs, improve empty implementations. 2014-12-16 17:33:21 +03:00
Ilya Ryzhenkov
fa0542b801 Clean size/length/first/head/empty properties and functions. 2014-12-16 17:33:21 +03:00
Ilya Ryzhenkov
828ba385ea Cleanup ordering, improve API 2014-12-16 17:33:20 +03:00
Ilya Ryzhenkov
e890c2ee0d Deprecate withIndicies(), introduce optimized and fixed withIndex and forEachIndexed() 2014-12-16 17:33:20 +03:00
Alexey Sedunov
b5fb09b8bc Find Usages: Support text-file search of Kotlin declarations 2014-12-16 17:24:54 +03:00
Evgeny Gerashchenko
7924568355 Added test for KT-6454 Obsolete class-files for lambdas aren't removed from output when 'inline' annotation is added to function.
The bug is reproducible only for non-incremental compilation mode, which
will be deprecated soon.

 #KT-6454 can't reproduce
2014-12-16 16:33:41 +03:00
Andrey Breslav
120c344f11 Fix access to private static native functions 2014-12-16 16:23:35 +03:00
Andrey Breslav
f9fea88749 PlatformStaticGenerator reworked to use FunctionCodegen.generateMethod() 2014-12-16 16:23:35 +03:00
Andrey Breslav
6916c0f5cc Test for native property accessors 2014-12-16 16:23:34 +03:00
Andrey Breslav
e591ddc4d3 Report syntax errors in box tests 2014-12-16 16:23:34 +03:00
Andrey Breslav
c761a234c8 Spec for native declarations 2014-12-16 16:23:33 +03:00
Andrey Breslav
6596c6d943 Support native top-level functions 2014-12-16 16:23:33 +03:00
Andrey Breslav
56216c4bd8 Test for function with default parameters marked native 2014-12-16 16:23:32 +03:00
Andrey Breslav
229c7ad537 Report an error on native declarations marked ilnine 2014-12-16 16:23:31 +03:00
Andrey Breslav
5187694b22 Test for overriding with a native function 2014-12-16 16:23:31 +03:00
Andrey Breslav
3a8ca2608d Report error on native members of traits 2014-12-16 16:23:30 +03:00
Andrey Breslav
a94a1f8a6f Report error on native declaration with a body 2014-12-16 16:23:30 +03:00
Andrey Breslav
d4cf789b53 Report error on native abstract declarations 2014-12-16 16:23:30 +03:00
Andrey Breslav
76e2ae2005 Do not complain about missing bodies on native functions 2014-12-16 16:23:29 +03:00
Andrey Breslav
19d0ad7e10 Use newer dex to verify Kotlin bytecode in tests 2014-12-16 16:23:29 +03:00
Andrey Breslav
27d403ee23 Make native class object members delegate to static methods in the outer class 2014-12-16 16:23:28 +03:00
Andrey Breslav
d20651b881 Support native on [platformStatic] functions 2014-12-16 15:17:33 +03:00
Andrey Breslav
cba6652c05 Simplistic support for native flag 2014-12-16 15:17:33 +03:00
Svetlana Isakova
b0889f0760 Minor: fixed toString 2014-12-16 14:41:56 +03:00
Svetlana Isakova
bda5bab057 Captured type might be substituted in an opposite projection
out Captured (in Int) = out Int
 in Captured (out Int) = in Int
2014-12-16 14:41:56 +03:00
Nikolay Krasko
8f6f404f14 Change the way of runtime configuration in JsePsiUnifierTest 2014-12-16 13:15:35 +03:00
Nikolay Krasko
37cea8a720 Unconfigure runtime to avoid affecting further tests 2014-12-16 12:58:56 +03:00
Alexey Sedunov
bbf951ff03 Move: Fix reference binding for the case of default target package
#KT-6457 Fixed
2014-12-15 20:43:00 +03:00
Alexey Sedunov
bbbd46d9d6 Move: Do not add package directive if target package is empty
#KT-6455 Fixed
2014-12-15 20:42:59 +03:00
Nikolay Krasko
da6e1890bd Don't lookahead too far when looking for '.' between type and parameters and for comma in function literal parameters 2014-12-15 20:20:09 +03:00
Nikolay Krasko
421bb57f50 Fix parser performance: don't do the additional lookahead when looking for the comma in parameters 2014-12-15 20:20:08 +03:00
Nikolay Krasko
ba849b5940 Minor: get string with parser context during debug 2014-12-15 20:20:08 +03:00
Nikolay Krasko
4fa97c917d Warn if lookahead is too big in matchTokenStreamPredicate() 2014-12-15 20:20:07 +03:00
Evgeny Gerashchenko
6c15472bf9 Minor. Regenerated test. 2014-12-15 19:38:11 +03:00
Evgeny Gerashchenko
6abe5a425c Finding usages (which have references) in text when plaint text occurrences are not searched. 2014-12-15 19:24:04 +03:00
Alexey Tsvetkov
834725b260 JS parser minor: removed broken @see in javadoc 2014-12-15 19:16:22 +03:00
Alexey Tsvetkov
669cbb203b Reload rendrer when application changes (for tests) 2014-12-15 19:16:22 +03:00
Alexey Tsvetkov
c78b199c0a JS test minor: fixed recursion test for inliner
After changes in translator exception is no longer wrapped into another one
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
6115e1afec JS parser: use map for keyword search 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
b2cd437230 JS parser: removed RESERVED token type 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
0fac9b3673 JS parser: removed unused classes and methods 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
0d6b4c6590 JS parser: removed unused decompilation info 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
272788cb27 JS parser: fixed JsInvocation mapping 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
46326fe5ac JS backend: report backend diagnostics 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
348a452e01 JS backend: report parser errors and warnings 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
a9c21b97f9 JS parser minor: moved isEndOfLine method to Utils 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
7c6629e38a JS parser: pass ErrorReporter to JsParser 2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
3658698f4f JS backend: pass diagnostics to TranslationContext using config 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
5530ad84e5 JS parser: use different positions for parser and lexer errors 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
5323fe920d JS parser: save token positions 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
5b1319b535 JS parser: removed unused messages 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
714b719204 JS parser: static messages load 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
21d51147bf JS parser: fixed labelled break/continue 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
939a8cce4e JS parser: removed @ from @author tag because of JetCodeConformanceTest 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
8c643d78f8 JS backend minor: formatting 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
bc7afdf0b8 JS backend: expand jsCode at translator 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
41af895caa JS backend: added jsCode definition 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
c3f67c54bd JS backend: added jsCode test cases 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
97bbcab77d JS parser: added description string to constructor arguments 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
c814b9a8b8 JS parser: renamed sourceNameStub to comply with a codestyle (UPPERCASE) 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
f69398b915 JS parser: literals creation 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
5256a99c54 JS parser: added insideFunction flag 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
420df315b4 JS parser: added NUMBER_INT token type 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
570010ed5c JS parser: fixed expression statement mapping 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
8f33dea8d3 JS parser: removed source info creation 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
706b93b5b8 JS parser minor: removed unused function 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
225c9cdf54 JS parser: updated imports 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
df41400fe5 JS parser: auto-reformat JsParser.java 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
54dbdce908 JS parser: added original gwt code revision notice 2014-12-15 19:16:18 +03:00
Alexey Tsvetkov
b1c005dccf JS parser: GWT parser copied 2014-12-15 19:16:18 +03:00
Alexey Tsvetkov
85b2df8c61 JS test minor: use getNamedArgument for mandatory directive arguments 2014-12-15 19:16:18 +03:00
Alexey Tsvetkov
c52d6ba92e JS test minor: removed 'Inline' from name checkFooBoxWithInlineDirectives
checkFooBoxWithInlineDirectives was moved from InlineTest, but was not renamed
2014-12-15 19:16:18 +03:00
Zalim Bashorov
a6597e8926 Frontend: allow omit types in lambda parameters of dynamic call when lambda declareted inside parentheses. 2014-12-15 18:22:15 +03:00
Zalim Bashorov
59c4f55988 Frontend: allow to use the spread operator in dynamic calls. 2014-12-15 18:18:38 +03:00
Zalim Bashorov
4ac3cbc384 Frontend: allow omit types in lambda parameters of dynamic calls. 2014-12-15 18:12:53 +03:00
Zalim Bashorov
4dff9cf5fc Frontend: fixed explicit receiver kind for dynamic call with implicit dispatch receiver.
Additionally added tests for other cases.
2014-12-15 18:12:04 +03:00
Evgeny Gerashchenko
8de11e4664 Added test checking that we don't create Kotlin incremental caches for targets without Kotlin. 2014-12-15 16:46:27 +03:00
nik
07a1ba0ef6 Kotlin builder: avoid initialization of incremental caches in 'close' method (KT-6409) 2014-12-15 16:44:13 +03:00
Michael Nedzelsky
f1d89805f1 fix kotlin-gradle-plugin-test build 2014-12-15 15:58:51 +03:00
Alexey Sedunov
3760eed8ff Runner: Support classes and objects with [platformStatic] main()
#KT-6072 Fixed
2014-12-15 15:02:44 +03:00
Alexey Sedunov
4ecd3726b3 Create parameter from usage: Support named arguments 2014-12-14 19:32:48 +03:00
Svetlana Isakova
9a5c293b6d Fixed NameSuggester tests 2014-12-12 23:08:30 +03:00
Svetlana Isakova
cddaf89ee8 Simplified NameSuggester; added test 2014-12-12 23:08:30 +03:00
Svetlana Isakova
a589323eaf Rename: TypeCheckerTypingConstraints -> TypeCheckerProcedureCallbacks 2014-12-12 23:08:29 +03:00
Svetlana Isakova
239b9a96a0 Temporary hack to compile 'kotlin' 2014-12-12 23:08:29 +03:00
Svetlana Isakova
1f6f607f40 Type variable with non-trivial upper bound cannot capture 'in' projection 2014-12-12 23:08:29 +03:00
Svetlana Isakova
8b0707b15d Throw error for conflict in variances to combine 2014-12-12 23:08:29 +03:00
Svetlana Isakova
c097e6ee3e After approximation interpret Contr<*> as Contr<Nothing>
not Contr<out Any?>
2014-12-12 23:08:29 +03:00
Svetlana Isakova
14a53a105b Fixed 'subtype' for captured type 2014-12-12 23:08:29 +03:00
Svetlana Isakova
0149e8048c Capture notnullable type if type variable is nullable 2014-12-12 23:08:29 +03:00
Svetlana Isakova
da8fdbd23e More tests for varargs updated 2014-12-12 23:08:28 +03:00
Svetlana Isakova
7a5124215a Updated test data for Array<out T> vararg type 2014-12-12 23:08:28 +03:00
Svetlana Isakova
5b4f10e698 Made vararg parameters have Array<out T> type
instead of simply Array<T>
  #KT-1638 Fixed
  #KT-2163 Fixed
  #KT-3213 Fixed
  #KT-4172 Fixed
  #KT-5534 Fixed
2014-12-12 23:08:28 +03:00
Svetlana Isakova
d893e8283e Small refactoring 2014-12-12 23:08:28 +03:00
Svetlana Isakova
a3e949674f Preserve nullability while substituting captured types 2014-12-12 23:08:28 +03:00
Svetlana Isakova
2440c48f1c Added description of 'FILE' directive for diagnostic tests 2014-12-12 23:08:28 +03:00
Svetlana Isakova
070dba69fa Don't add a constraint T <: DONT_CARE from upper bounds 2014-12-12 23:08:27 +03:00
Svetlana Isakova
f9d4a68c6e KT-6320 AssertionError in ConstraintSystem(The constraint shouldn't contain different type variables on both sides: Y <: X)
#KT-6320 Fixed
2014-12-12 23:08:27 +03:00
Svetlana Isakova
b098220d03 Refactoring: made code in 'processDeclaredBoundConstraints' more kotlin 2014-12-12 23:08:27 +03:00
Svetlana Isakova
1fb713342b Capture types only on the top level 2014-12-12 23:08:27 +03:00
Svetlana Isakova
cd359a046c Added captured types and approximation
CapturedType captures type projection while solving the constraint system.
During the substitution type containing captured types is approximated
to get rid of captured types and (for simple cases) replace them with corresponding type projections.

Note that Array<Array< CapturedType(out Int) >> is (over)approximated by Array<out<Array<out Int>>

See 'Mixed-site variance' by Ross Tate for details.

 #KT-2570 Fixed
 #KT-2872 Fixed
 #KT-3213 Fixed
2014-12-12 23:08:27 +03:00
Svetlana Isakova
e798b7c6d1 Rename: MyDeclarations -> ConstraintSystemTestData
Simplified code (used 'firstOrNull')
2014-12-12 23:08:27 +03:00
Svetlana Isakova
4df8c250ab Fixes after merge
Added platform types fixes to rewritten to kotlin files
2014-12-12 23:08:26 +03:00
Svetlana Isakova
26a54aa95d Small refactoring in ConstraintSystemImpl
Extracted isMyTypeVariable, getMyTypeVariable
2014-12-12 23:08:26 +03:00
Svetlana Isakova
a2fa38a7f9 Rewritten ConstraintPosition to Kotlin
Added ConstraintPositionKind
 (to be able to use enum constants from Java code)
2014-12-12 23:08:26 +03:00
Svetlana Isakova
578f6d4811 Converted ConstraintSystem to Kotlin 2014-12-12 23:08:26 +03:00
Svetlana Isakova
38d38e14c8 Changed file extension to '.kt'
to preserve file history
2014-12-12 23:08:26 +03:00
Michael Nedzelsky
801ed5245b JS backend: fix Selenium test: fail on error loading javascript files 2014-12-12 22:36:32 +03:00
Michael Nedzelsky
d857d06903 fix maven kotlin-js-tests 2014-12-12 19:49:46 +03:00
Evgeny Gerashchenko
867a20e821 Merge pull request #535 from JetBrains/rr/nik
Kotlin builder: make sure that caches are lazily initialized (KT-6409)
2014-12-12 16:53:46 +04:00
nik
a9d3c2c064 Kotlin builder: make sure that caches are lazily initialized (KT-6409) 2014-12-12 14:12:58 +03:00
Natalia Ukhorskaya
73d62902d0 Debugger: use partialBodyResolve. Don't compete variables defined after context element 2014-12-12 13:42:35 +03:00
Michael Nedzelsky
73a929c78d ask and optionally delete script/kotlin.js during update libraries 2014-12-12 03:05:13 +03:00
Michael Nedzelsky
492a2a1dc8 fix 'library already disposed' error while update libraries from plugin 2014-12-12 03:04:32 +03:00
Michael Nedzelsky
a49bcc8d39 fix detection Kotlin Javascript stdlib 2014-12-12 03:04:29 +03:00
Michael Nedzelsky
2a680f4d8b fix name for jslib sources target in ant script 2014-12-12 03:04:26 +03:00
Michael Nedzelsky
1c9039d23b Rewrite to Kotlin: LibraryUtils 2014-12-12 03:04:24 +03:00
Michael Nedzelsky
5675da93f3 Rewrite to Kotlin: LibraryUtils. File rename 2014-12-12 03:04:22 +03:00
Michael Nedzelsky
bd090d0e5f add tests for jps-plugin (Kotlin Javascript projects) 2014-12-12 03:04:19 +03:00
Michael Nedzelsky
f8f7ea8998 JS backend: check libraries in cli compiler before translation 2014-12-12 03:04:17 +03:00
Michael Nedzelsky
8e052a9ade KotlinJsModuleConfigurator, KotlinJavaModuleConfigurator: refactoring 2014-12-12 03:04:15 +03:00
Michael Nedzelsky
2d1029cb29 fix: choose correct library from plugin for new Kotlin/Javascript projects 2014-12-12 03:04:12 +03:00
Michael Nedzelsky
0992b4c0f1 CreateLibraryDialog*: caption -> LibraryCaption, refactoring CustomLibraryDescriptorWithDefferConfig with subclasses 2014-12-12 03:04:10 +03:00
Michael Nedzelsky
5f57605b81 add tests for js-maven projects 2014-12-12 03:04:07 +03:00
Michael Nedzelsky
c6ce4d404a refactoring: KotlinMavenConfigurator with subclasses 2014-12-12 03:04:05 +03:00
Michael Nedzelsky
8c8c2f6e5a maven support in IDE: improve check for kotlin artifacts in pom file 2014-12-12 03:04:03 +03:00
Michael Nedzelsky
ba5a5af4ec stable order for configurators in notification 2014-12-12 03:04:00 +03:00
Michael Nedzelsky
0442e3b0ed add KotlinJavascriptMavenConfigurator 2014-12-12 03:03:58 +03:00
Michael Nedzelsky
b71101942e JS backend: maven projects: extract library js-files to target/js/lib, set scope=test for stdlib in browser-example* 2014-12-12 03:03:53 +03:00
Michael Nedzelsky
85a16c3c51 add browser-example-with-library maven project (kotlin->javascript) 2014-12-12 03:03:50 +03:00
Michael Nedzelsky
6c55e12588 add kotlin-js-library-example maven project 2014-12-12 03:03:48 +03:00
Michael Nedzelsky
9734980334 JS maven tests: fixes configuration files 2014-12-12 03:03:45 +03:00
Michael Nedzelsky
eebb012b13 JS backend: maven: fix compiler mojo 2014-12-12 03:03:43 +03:00
Michael Nedzelsky
8d10b3813b fix kotlin-js-library maven project 2014-12-12 03:03:40 +03:00
Michael Nedzelsky
44e7af7f65 K2JS: get rid of MetaInfServices 2014-12-12 03:03:37 +03:00
Michael Nedzelsky
73db22ae20 JS backend: add option 'output library runtime fiies' for Kotlin Compiler 2014-12-12 03:03:34 +03:00
Michael Nedzelsky
a026f6d25e add LibraryUtils.copyJsFilesFromLibraries 2014-12-12 03:03:32 +03:00
Michael Nedzelsky
729e7084fa new ant test for kotlin javascript library support 2014-12-12 03:03:29 +03:00
Michael Nedzelsky
ecc0751221 K2JS: add cli compiler tests for libraries 2014-12-12 03:03:27 +03:00
Michael Nedzelsky
103307432e update kotlin javascript stdlib if needed 2014-12-12 03:03:24 +03:00
Michael Nedzelsky
85a38e17de reuse for KotlinJS library common Library dialogs
remove unnecessary code for kotlin js library support

JS backend: simplify check isConfigured for kotlin js module
2014-12-12 03:03:22 +03:00
Michael Nedzelsky
a21d979186 CreateJavaLibraryDialog* -> CreateLibraryDialog* 2014-12-12 03:03:19 +03:00
Michael Nedzelsky
d588b62981 Minor: refactoring create Kotlin Java Library Dialog 2014-12-12 03:03:16 +03:00
Michael Nedzelsky
61e9cbec66 K2JS: get kotlin js module name from Kotlin-JS-Module-Name attribute in manifest 2014-12-12 03:03:13 +03:00
Michael Nedzelsky
83ec20508a JS backend: isJsRuntimeLibrary -> isKotlinJavascriptStdLibrary 2014-12-12 03:03:11 +03:00
Michael Nedzelsky
b42d00f095 JS backend: check for Implementation-Title in order to detect kotlin js stdlib 2014-12-12 03:03:08 +03:00
Michael Nedzelsky
f5d957445f JS backend: JpsJsModuleUtils: remove filtering for Kotlin Javascript libraries 2014-12-12 03:03:05 +03:00
Michael Nedzelsky
34411dcf01 JS backend: add Specification-Title to manifest and LibraryUtils.isKotlinJavascriptLibrary 2014-12-12 03:03:03 +03:00
Michael Nedzelsky
68113ff33d JS backend: change path to kotlin.js for tests 2014-12-12 03:03:00 +03:00
Michael Nedzelsky
a65b9800c2 JS backend: put kotlin.js into jslib archive, add specification-title
kotlin.js is now included in kotlin-jslib.jar, so closure-compiler outputs kotlin.js to dist folder instead of dist/kotlic/lib
2014-12-12 03:02:31 +03:00
Michael Nedzelsky
12ff5de013 K2JS: fix KT-5639 Exception in kotlin-js when directory is given instead of output file
#KT-5639 Fixed
2014-12-12 01:25:15 +03:00
Alexey Sedunov
0b54221223 Minor: Use short type names in super-function prompt dialog (find usages and refactorings)
#KT-6298 Fixed
2014-12-11 17:50:34 +03:00
Alexey Sedunov
51d4d3135e Change return type quick-fix: Add support of constant expressions
#KT-6260 Fixed
 #KT-6404 Fixed
2014-12-11 17:50:33 +03:00
Alexey Sedunov
2009cc3e9e Create parameter from usage: Support UNRESOLVE_REFERENCE_WRONG_RECEIVER diagnostic
#KT-6431 Fixed
2014-12-11 17:50:32 +03:00
Alexey Sedunov
346d9ea0c5 Quick Fixes: Add test for KT-5922 (QuickFix to change lambda signature doesn't work with SAM conversion) 2014-12-11 17:50:31 +03:00
Alexey Sedunov
14b33f8b95 Change Signature: Do not report conflict of object member with itself (available through the class object)
#KT-6345 Fixed
2014-12-11 17:50:31 +03:00
Alexey Sedunov
6bbe9b2bfe Change Signature: Add test for KT-6410 (Change signature on constructor inserts fqName for newly added parameter type) 2014-12-11 17:50:29 +03:00
Alexey Sedunov
b1f82d7a23 Quick Fixes: Add test for KT-6430 (Create parameter quick fix inserts platform types into Kotlin code) 2014-12-11 17:50:28 +03:00
Alexey Sedunov
8cc3af99a0 Change Signature: Retain parameter modifier list 2014-12-11 17:50:27 +03:00
Alexey Sedunov
7d1ed507a7 Call Hierarchy: Filter out usages inside of import directives 2014-12-11 17:50:26 +03:00
Alexey Sedunov
15d7932491 Minor: Remove unnecessary check for test sources (reverted earlier commit) 2014-12-11 17:50:25 +03:00
Alexander Udalov
d71220f8b1 Drop ArrayGenTest, move test case to generated 2014-12-11 16:04:04 +03:00
Denis Zharkov
34d408eb7b Simple workaround for problem described in KT-6437
JS backend generate invalid code when inlining within constructor using property
2014-12-11 16:04:04 +03:00
Denis Zharkov
c6d6aebd2f Added tests for stdlib Array constructors 2014-12-11 16:04:04 +03:00
Denis Zharkov
fe9599d588 Removed codegen of Array-constructor with lambda 2014-12-11 16:04:04 +03:00
Denis Zharkov
d345ba05dd Added inline function "Array" into stdlib
It has the same signature and semantics as Array constructor had
Also made Array constructor private and accepting no arguments
2014-12-11 16:04:03 +03:00
Denis Zharkov
654411a0b0 Refactored tests using Array constructor:
Some moved to tests with stdlib
Some changed to use arrayOfNulls
2014-12-11 16:04:03 +03:00
Denis Zharkov
abbcf61183 JVM Backend: always inline callable containing reified TP 2014-12-11 16:04:02 +03:00
Denis Zharkov
b86e19782c Moved containsReifiedTypeParameters to DescriptorUtils 2014-12-11 16:04:02 +03:00
Nikolay Krasko
0231aeb017 Memory leak in PermGen of Kotlin Gradle plugin when demon is used (KT-5420)
Stop background thread in Intellij Idea api and clear thread locals to allow gc the created class loader

 #KT-5420 In Progress
2014-12-11 15:30:01 +03:00
Nikolay Krasko
727c49146b Prepare for KT-5420 - Copy files before patch 2014-12-11 15:25:18 +03:00
Zalim Bashorov
6b50d74056 JS backend: use special JsScope(JsDynamicScope) for names from dynamic calls instead of use containing scope to avoid the impact on local names. 2014-12-11 13:17:49 +03:00
Zalim Bashorov
af82e69214 JS tests: added tests for dynamic. 2014-12-11 13:17:49 +03:00
Zalim Bashorov
7d9b824411 JS tests: use js files from some places by default:
* add all js files from testData/_commonFiles
* add all js files from <testDir>/_commonFiles
* add <testDir>/cases/<testName>.js if it exists
2014-12-11 13:17:48 +03:00
Zalim Bashorov
2f6a135135 JS tests: added doTest and checkFooBoxIsOkByPath to BasicTest to simplify using generated tests. 2014-12-11 13:17:47 +03:00
Zalim Bashorov
4c9fbcd525 JS frontend: introduce some JavaScript specific constants. 2014-12-10 22:48:02 +03:00
Zalim Bashorov
bc3f53afff JS backend: added the support dynamic. 2014-12-10 22:48:02 +03:00
Zalim Bashorov
45b0fd9f4c Minor in JS backend: simplify CompareToBOIF::getIntrinsic. 2014-12-10 22:48:01 +03:00
Zalim Bashorov
eadb2d8db5 Minor in JS backend: save operation token as member of BinaryOperationTranslator. 2014-12-10 22:48:01 +03:00
Zalim Bashorov
e378bde43e JS backend: fix "is Boolean" check. 2014-12-10 22:48:01 +03:00
Zalim Bashorov
2ccc027ba5 Minor in JS AST: drop unused constructors from JsBinaryOperation, JsUnaryOperation, JsPrefixOperation and JsPostfixOperation. 2014-12-10 22:48:01 +03:00
Zalim Bashorov
354af95d47 Frontend: add JetTokens.EQEQEQ and JetTokens.EXCLEQEQEQ to OperatorConventions.NOT_OVERLOADABLE 2014-12-10 22:48:01 +03:00
Zalim Bashorov
bc3859181f Frontend: add default getter and setter to dynamic property descriptors. 2014-12-10 22:48:01 +03:00
Zalim Bashorov
65ef7525ce Allow to use dynamic types for JS projects in IDEA. 2014-12-10 22:48:00 +03:00
Alexander Udalov
f08c9d9815 Rename module build-tools -> ant 2014-12-10 18:23:46 +03:00
Alexander Udalov
06984328e2 Exclude "target" and "local-repo" directories from IDEA project 2014-12-10 18:21:11 +03:00
Andrey Breslav
2c45670cc5 NPE fixed 2014-12-10 17:34:17 +03:00
Andrey Breslav
638e768226 Minor. Class renamed 2014-12-10 16:18:38 +03:00
Andrey Breslav
d17edacb65 Discriminate calls with implicit dynamic receivers 2014-12-10 16:18:38 +03:00
Evgeny Gerashchenko
fbb4ed181a Minor. Computing package FQ later. 2014-12-10 15:27:43 +03:00
Andrey Breslav
a4df1ec7ae Merge pull request #532 from yole/coverage-jacoco
add missing jars to coverage agent library
2014-12-10 15:06:47 +03:00
Dmitry Jemerov
074e284ea4 add missing jars to coverage agent library 2014-12-10 12:55:17 +01:00
Evgeny Gerashchenko
4e702e34f0 Fixed incremental compilation, when removing all callables from file. 2014-12-10 14:28:21 +03:00
Evgeny Gerashchenko
d126a9711c KT-6409 Do not create empty PersistentHashMap instances for modules without kotlin files during build
#KT-6409 fixed
2014-12-10 14:28:21 +03:00
Natalia Ukhorskaya
0ca811d7ae Rename test 2014-12-10 13:45:30 +03:00
Natalia Ukhorskaya
9338b27bcd Update to IDEA 14.0.2 (139.659.2) 2014-12-10 12:47:42 +03:00
Natalia Ukhorskaya
64dac7a19d Fix line separators in JsLibrarySourceConfig 2014-12-10 12:41:15 +03:00
Natalia Ukhorskaya
c807cebfe6 Merge pull request #530 from yole/coverage
Initial implementation of coverage support in IntelliJ IDEA plugin.
2014-12-10 12:35:10 +03:00
Dmitry Jemerov
274e529b90 code review 2014-12-09 12:36:44 +01:00
Evgeny Gerashchenko
153272a189 Updated test data for tests according to change in JPS.
These tests were not deterministic. Now they are. When package facade's sources change (files added to package, etc), all package gets recompiled now. Behavior is tolerable, but not very desirable.
2014-12-09 12:08:03 +03:00
Denis Zharkov
9910f7cfbd Added test demonstrating usage of reified TP for dependency injection 2014-12-08 21:30:54 +03:00
Denis Zharkov
010af19fe9 Delegated Properties: allowing type parameters for get/set methods
#KT-6253 Fixed
2014-12-08 21:30:54 +03:00
Nikolay Krasko
3677881e18 Change parser error for when (KT-6420)
#KT-6420 Fixed
2014-12-08 20:42:48 +03:00
Nikolay Krasko
34eb9e9cd4 Fix build version in jb-update 2014-12-08 20:42:47 +03:00
Stanislav Erokhin
d334f3b31c Fix completion for private_to_this. 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
f9afdf7540 Use Visibilities.isVisible with ReceiverValue. 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
f640f82ed0 Add serialization for PRIVATE_TO_THIS 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
fc8cec9509 Create PRIVATE_TO_THIS visibility 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
d59031fdcc Skip check variance for irrelevant classes 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
fced4756bb Add variance test for nullable and function types. 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
365c8a4787 Rename TaskPrioritizer.java -> .kt 2014-12-08 18:24:30 +03:00
Stanislav Erokhin
09250c89ed Convert TaskPrioritizer to kotlin. 2014-12-08 18:24:30 +03:00
Dmitry Jemerov
f31ea8bd0e in order to avoid misleading suggestions to run 'ant dist', calculate the paths to SDK annotations relatively to the home directory 2014-12-08 17:30:49 +03:00
Evgeny Gerashchenko
a94f7f10b0 Testing highlight type for all "unused" diagnostics. 2014-12-08 17:30:48 +03:00
Evgeny Gerashchenko
a3fdce8131 Highlighting "as Foo" for useless casts in gray.
#KT-6070 fixed
2014-12-08 17:30:47 +03:00
Evgeny Gerashchenko
20ee59c1e5 Simplified positioning strategy for unreachable code. 2014-12-08 17:30:47 +03:00
Evgeny Gerashchenko
cd197b9ff9 Convert PositioningStrategy to Kotlin. Cleanup. 2014-12-08 17:30:46 +03:00
Evgeny Gerashchenko
52549607f9 Convert PositioningStrategy to Kotlin. Auto-convert. 2014-12-08 17:30:45 +03:00
Evgeny Gerashchenko
d4a8aa4eaa Convert PositioningStrategy to Kotlin. Rename files. 2014-12-08 17:30:45 +03:00
Evgeny Gerashchenko
8b329fcada Highlighting "unused function literal" as other unused (gray) 2014-12-08 17:30:44 +03:00
Evgeny Gerashchenko
f8197c6b70 KT-4016 Support "Copy Reference" action on class, method, etc
#KT-4016 fixed
2014-12-08 17:30:43 +03:00
Evgeny Gerashchenko
d29cc61d42 Fixed description for "Simplify Binary Negation" inspection. 2014-12-08 17:30:42 +03:00
Evgeny Gerashchenko
858fda20b7 VARIABLE_WITH_REDUNDANT_INITIALIZER is highlighted as unused (gray) 2014-12-08 17:30:42 +03:00
Evgeny Gerashchenko
cbebb17eca Converted JetPsiChecker to Kotlin. 2014-12-08 17:30:41 +03:00
Evgeny Gerashchenko
2f283da7dd Converted JetPsiChecker to Kotlin. 2014-12-08 17:30:41 +03:00
Evgeny Gerashchenko
bf150c8dde Disabling Kotlin builder on Android Studio only for Java. 2014-12-08 17:30:40 +03:00
Evgeny Gerashchenko
7c1bc432db Removed reflection-based hack for IDEA 12. 2014-12-08 17:30:40 +03:00
Alexey Sedunov
c917459926 Change Signature: Add support of type parameter substitutions in overriding members 2014-12-08 16:30:07 +03:00
Alexey Sedunov
250940c824 Change Signature: Propagate nullability annotations to overriding methods in Java 2014-12-08 16:30:05 +03:00
Alexey Sedunov
c9873428de Change Signature: Update signatures of lambdas passed to SAM constructors 2014-12-08 16:30:04 +03:00
Alexey Sedunov
8f2c543f7e Formatter: Add wrapping support for parameter/argument lists
#KT-6032 Fixed
2014-12-08 16:30:03 +03:00
Alexey Sedunov
c6541ccc6f Change Signature: Do not insert new-lines between parameters (to be fixed later at the formatter level) 2014-12-08 16:30:02 +03:00
Alexey Sedunov
57cb125ab8 Change Signature: Do not invoke our usage processor recursively 2014-12-08 16:30:01 +03:00
Alexey Sedunov
74cdecd829 Find Usages: Restrict search scope of class object private declarations to
the containing class
2014-12-08 16:30:00 +03:00
Alexander Udalov
c012efe64e Drop compilation of built-ins/stdlib from ForTestCompileRuntime
Because the process of building kotlin-runtime.jar will likely get more
complicated soon, and that logic will already be present in build.xml.

Run "ant compiler-quick runtime" instead before All Tests
2014-12-08 15:06:35 +03:00
Alexander Udalov
ee8df85bfe Fix path duplication in "kotlin-for-upsource" in build.xml 2014-12-08 15:01:44 +03:00
Alexander Udalov
4d66ca88ee Refactor building of kotlin-runtime.jar in build.xml
- use the "new-kotlinc" macro to compile Java sources (can be disabled via an
  optional argument) as well as Kotlin
- bend over backwards not to repeat source paths passed to kotlinc and javac
- split "runtime" task into several smaller ones, which makes it possible to
  rebuild (and repack the whole jar) constituent modules separately
2014-12-08 15:01:43 +03:00
Alexander Udalov
54b94e9e00 Adapt targets in build.xml to Ant naming conventions
Also reformat the section related to Upsource
2014-12-08 14:54:04 +03:00
Dmitry Jemerov
0512b8ce1a add test to verify output files; correctly handle lambdas 2014-12-08 12:51:08 +01:00
Nikolay Krasko
7d32358bf8 Pair parenthesis before end of string template
#KT-6403 Fixed
2014-12-06 01:14:49 +03:00
Nikolay Krasko
3d7bbc0bde Rewrite to Kotlin: TypedHandlerTest 2014-12-06 01:14:47 +03:00
Nikolay Krasko
f2cfbed9e3 Rewrite to Kotlin: TypedHandlerTest. File rename 2014-12-06 01:14:45 +03:00
Dmitry Jemerov
052c0e60a4 initial implementation of showing coverage data in IDE 2014-12-05 21:29:09 +01:00
Dmitry Jemerov
8f2092fe79 extract method for creating type mapper for a file 2014-12-05 20:23:23 +01:00
Dmitry Jemerov
16481a4144 convert JetPositionManager to Kotlin 2014-12-05 20:17:32 +01:00
Dmitry Jemerov
6d7b4ad721 rename JetPositionManager to Kotlin 2014-12-05 19:17:57 +01:00
Nikolay Krasko
936fdcf219 Update to Idea 139.658 2014-12-05 19:15:02 +03:00
Nikolay Krasko
e2bf8b2eee Suppress warning to avoid spontaneous addition actions 2014-12-05 19:07:46 +03:00
Nikolay Krasko
5684ab69f5 Increase stub version 2014-12-05 16:42:29 +03:00
Andrey Breslav
ddd72e8582 Compilation fixed 2014-12-05 16:28:58 +03:00
Dmitry Jemerov
2b1727a61b Cleanup the README text 2014-12-04 19:29:42 +01:00
Michael Nedzelsky
5db35125dd JS backend: fix KT-3692: js translator: Ensure that we don't create backing fields for traits
#KT-3692 Fixed
2014-12-04 02:42:12 +03:00
Michael Nedzelsky
7c9ea16d8e JS backend: fix translation for extension property 2014-12-04 02:42:07 +03:00
Michael Nedzelsky
5bf1d73199 JS backend: tests for translation for extension property 2014-12-04 02:42:04 +03:00
Valentin Kipyatkov
b8d1f115bf Renamed JetType.isNullable() to isMarkedNullable() 2014-12-03 21:36:10 +03:00
Valentin Kipyatkov
c76e69af62 Removed check for classes in java.lang because it's not used by completion anymore and causes problems with importing of java.lang.String on paste 2014-12-03 21:21:55 +03:00
Valentin Kipyatkov
796a2b6e7c Code refactoring 2014-12-03 21:15:13 +03:00
Valentin Kipyatkov
7ba11b0f2f Fixed auto-import of operator functions broken before + fixed bug in its implementation 2014-12-03 21:09:29 +03:00
Valentin Kipyatkov
3161eb284b Added comment 2014-12-03 20:12:44 +03:00
Valentin Kipyatkov
b8a0a1a313 Reflected API changes after rebase 2014-12-03 19:12:43 +03:00
Valentin Kipyatkov
3b51b5a51b Replaced hard-coded gray color 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov
de51948883 The test was not correct 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov
132cb26e04 Code improvements after review 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov
dfd5e773df extensionsUtils.kt uses FuzzyType + more correct treatment of receiver nullability there 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov
418b16e766 Moved FuzzyType and changed package for extensionUtils 2014-12-03 19:07:32 +03:00
Valentin Kipyatkov
856be73500 Smart completion: generic functions are correctly included into the list
#KT-6375 Fixed
2014-12-03 19:07:04 +03:00
Valentin Kipyatkov
a40db1e794 Completion: for extension functions unsubstituted receiver type shown 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov
522ceee559 Optimizations 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov
1d288e6dcc Completion: multiple extension methods with different substitutions may be shown 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov
2c08b3e229 Extension methods shown with type arguments substituted in completion list 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov
3df3e57b05 Added tests 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov
05bb32545f Fixed all members are grayed in global context 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov
e5e27d028d Fixed smart completion at offset 0 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov
cf35fc1fd5 Completion: immediate members get higher priority in the list 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov
72ff719001 Completion: added package name for global functions/properties in the list 2014-12-03 19:01:48 +03:00
Valentin Kipyatkov
7c67566719 Completion: got rid of special LookupElementFactory implementation to highlight immediate members 2014-12-03 19:01:48 +03:00
Valentin Kipyatkov
66289f0b4a Completion: our own lookup elements for java classes 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov
77e1210bff Completion: classes not to be used in Kotlin placed to the last place 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov
6ddedb7825 Better imported/non-imported items sorting in completion 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov
94b7945cd8 Added a test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov
48edd5f02a Fixed completion list ordering for java classes 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov
9dc6a82fef More clear code + better test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov
6502c44928 Immediate extension members are correctly detected for platform types 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov
acfd308a7e Code completion: graying members after dot completion for nullable value 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov
a60f32b919 More correct and simple code 2014-12-03 18:59:45 +03:00
Valentin Kipyatkov
79cfa1f84e Code simplification 2014-12-03 18:59:45 +03:00
Alexander Udalov
07cfc173f9 Add ProtoBufConsistencyTest
This test checks that indices of all extensions on the same message type are
unique across different extension points (JVM, built-ins, ...)
2014-12-03 16:10:20 +03:00
Alexander Udalov
63bfa004fd Introduce binary representation for annotations
Will be used where annotations can't be stored elsewhere: for example,
built-ins, JS, type annotations on JDK<8
2014-12-03 16:10:19 +03:00
Alexander Udalov
9a86318908 Introduce extension for built-ins serialization, drop .kotlin_class_names 2014-12-03 15:58:14 +03:00
Alexander Udalov
f19aa2290c Minor, remove unnecessary NOTHING_TO_INLINE suppressions 2014-12-03 15:58:13 +03:00
Alexander Udalov
9bd815126b Rename NameTable -> StringTable in serialization
Since almost the beginning, it was also used to store arbitrary strings, not
just names
2014-12-03 15:58:13 +03:00
Alexander Udalov
66774c0fd1 Remove utility method from AnnotationDescriptor interface 2014-12-03 15:58:12 +03:00
Michael Bogdanov
328dedc415 Fix for KT-6383: Can't access a private static member of class object
#KT-6383 Fixed
2014-12-03 15:49:20 +03:00
Andrey Breslav
fda7f63957 isBoolean() moved to KotlinBuiltIns 2014-12-03 15:39:16 +03:00
Andrey Breslav
99ac9e1c2f Singleton made thread-safe in JavaToKotlinClassMap 2014-12-03 15:39:16 +03:00
Andrey Breslav
80a32ee875 ModuleDescriptor knows its built-ins 2014-12-03 15:39:15 +03:00
Andrey Breslav
32d2a9cdb2 KotlinBuiltIns injected into ExpressionTypingUtils 2014-12-03 15:39:14 +03:00
Andrey Breslav
ae7f38d891 Some usages of KotlinBuiltIns injected as components 2014-12-03 15:39:13 +03:00
Andrey Breslav
0bc721fd77 Singletons supported in Injector Generator 2014-12-03 15:39:13 +03:00
Andrey Breslav
6efa0032e5 GenerateInjectors cleaned up 2014-12-03 15:39:12 +03:00
Andrey Breslav
c21dd366e0 Checks for primitive types and arrays made static in KotlinBuiltIns 2014-12-03 15:39:11 +03:00
Andrey Breslav
b275b363c9 is<Annotation>() made static in KotlinBuiltIns 2014-12-03 15:39:11 +03:00
Andrey Breslav
db635c0e44 is<TYPE>() made static in KotlinBuiltIns 2014-12-03 15:39:10 +03:00
Andrey Breslav
7a41e37655 isNothing() made static 2014-12-03 15:39:10 +03:00
Andrey Breslav
ea4f0ab214 Methods in KotlinBuiltIns made static where already possible 2014-12-03 15:39:09 +03:00
Nikolay Krasko
75c887048e Drop AbstractLazyResolveRecursiveComparingTest test
Test data from compiler/testData/lazyResolve/ was moved to diagnostics tests
2014-12-03 14:08:23 +03:00
Nikolay Krasko
dd79fd9a98 Remove tests - same is tested in AbstractLoadJavaTest 2014-12-03 14:08:22 +03:00
Nikolay Krasko
f50aab4b85 Drop LazyResolveStdlibLoadingTest
- Descriptors compare is useless
- Absence of errors in stdlib is checked in NoErrorsInStdlibTest
2014-12-03 14:08:21 +03:00
Nikolay Krasko
a0a292cbf5 Drop AbstractLazyResolveDescriptorRendererTest with DescriptorRendererTest refactoring 2014-12-03 14:08:21 +03:00
Nikolay Krasko
44aba2d761 Drop lazy tests: test data is used in ResolveTestGenerated.Imports 2014-12-03 14:08:20 +03:00
Nikolay Krasko
b99d346e3a Subclass JetLightCodeInsightFixtureTestCase to avoid assert about invalid root 2014-12-03 14:08:19 +03:00
nik
ca7ce6228c initial injection support (KT-2428): allow injection inside string literals 2014-12-03 13:52:59 +03:00
Natalia Ukhorskaya
3ab7c6c8e9 Evaluate Expression: fix for anonymous objects - expressions where anonymous type can be replaced with super type can be evaluated 2014-12-03 12:49:40 +03:00
Natalia Ukhorskaya
b056fd7e2e Add test for completion with runtime type cast 2014-12-03 12:49:38 +03:00
Natalia Ukhorskaya
0c74016ab7 Remove duplicates in completion with runtime types 2014-12-03 12:49:37 +03:00
Natalia Ukhorskaya
e191130446 Move helper method 2014-12-03 12:49:35 +03:00
Natalia Ukhorskaya
732700e959 Completion: insert cast to runtime type for receiver in code fragments 2014-12-03 12:49:33 +03:00
Natalia Ukhorskaya
73e71543c6 Save runtime type evaluator to userdata of codeFragment 2014-12-03 11:19:39 +03:00
Natalia Ukhorskaya
deb80bc3ad Minor: fix warnings 2014-12-03 11:19:38 +03:00
Natalia Ukhorskaya
86af5ded76 Add surrounder for cast to runtime type 2014-12-03 11:19:38 +03:00
Stanislav Erokhin
99ec8952e1 Temporary hack for KT-6320 2014-12-02 18:09:01 +03:00
Stanislav Erokhin
b55114055e Change usage "v == Visibilities.PRIVATE" to Visibilities.isPrivate(v) 2014-12-02 14:30:17 +03:00
Stanislav Erokhin
b3f3b3946e Add receiver to Visibility#isVisible 2014-12-02 14:30:16 +03:00
Stanislav Erokhin
d997a6cb35 Fix protected visibility in class object. 2014-12-02 14:30:16 +03:00
Stanislav Erokhin
fc70c416ed Fix blinking test 2014-12-02 14:30:16 +03:00
Stanislav Erokhin
aa97bb8cfc Added Variance tests 2014-12-02 14:30:15 +03:00
Stanislav Erokhin
db457a612c Add test (recursive resolve in property declaration) to JetPsiChecker 2014-12-02 14:30:15 +03:00
Stanislav Erokhin
1664a55dcf Add VarianceChecker to TopDownAnalyzer 2014-12-02 14:30:15 +03:00
Stanislav Erokhin
c2d99a40cd Create VarianceChecker 2014-12-02 14:06:07 +03:00
Stanislav Erokhin
a8be80328f Convert Variance.java -> .kt 2014-12-02 13:48:44 +03:00
Stanislav Erokhin
9ed37ca1eb Add method getValueParameters() to JetCallableDeclaration 2014-12-02 13:48:44 +03:00
Stanislav Erokhin
a5c0dda10f Add TypeBinding. 2014-12-02 13:48:44 +03:00
Stanislav Erokhin
b2774a9cd0 Fix classpath test for openjdk 2014-12-02 13:47:48 +03:00
Denis Zharkov
5d2792d68b Removed redundant call v.done() in ClosureCodegen
It should be called by super.done()
2014-12-01 22:31:54 +03:00
Denis Zharkov
669f5e7b87 Minor, removed Contract from deparenthesize
and added some asserts
2014-12-01 22:31:53 +03:00
Denis Zharkov
0d03253f4e DependencyInjectorGenerator: reified extensions
1. Introduced reified extensions
2. Replaced extensions accepting varargs with ones
that accept single reified argument (it's looks more concise)
2014-12-01 22:31:53 +03:00
Denis Zharkov
b3bf8933df Extensions PsiElement.getParentOfType with reified T
1. Renamed *ByType -> *OfType (as in PsiTreeUtil.java)
2. Introduced PsiElement.getStrictParentOfType and PsiElement.getNonStrictParentOfType
with reified TP
3. Replaced current usages of PsiTreeUtil.getParentOfType and current
extensions
4. Made reified version of PsiElement.getParentOfTypeAndBranch with
default strict value --- false (as it used)
2014-12-01 22:28:35 +03:00
Denis Zharkov
8b80daa2a1 Replaced filterIsInstance with class-literal argument with simplified version 2014-12-01 22:28:34 +03:00
Andrey Breslav
c9c16696f1 Do not fail when delegating to an (unsupported) dynamic type on the JVM 2014-12-01 20:43:46 +03:00
Andrey Breslav
e10d29a10b JS-specific tests moved to a separate directory 2014-12-01 20:43:46 +03:00
Andrey Breslav
6187a0e9e0 Fix for UNSUPPORTED diagnostic for dynamic types in local classes 2014-12-01 20:43:46 +03:00
Andrey Breslav
8211f084e6 Dynamic types spec cleaned up 2014-12-01 20:43:46 +03:00
Andrey Breslav
b7dd63465b Allow invoke-convention on dynamic expressions 2014-12-01 20:43:45 +03:00
Andrey Breslav
53bbf20b0d Allow augmented assignments on dynamic receivers 2014-12-01 20:43:45 +03:00
Andrey Breslav
cc210c2950 Minor. Comments removed 2014-12-01 20:43:45 +03:00
Andrey Breslav
300f484535 Support operator conventions for dynamic types
TODO:
- invoke
- += etc
2014-12-01 20:43:45 +03:00
Andrey Breslav
fac53de40c Mark dynamic calls in for's, delegated properties and multi-declarations 2014-12-01 20:43:44 +03:00
Andrey Breslav
4adf74b46f Do not allow compareTo() to return Int? 2014-12-01 20:43:44 +03:00
Andrey Breslav
304d22553c Prohibit using dynamic as an argument for reified type parameters 2014-12-01 20:43:44 +03:00
Andrey Breslav
d5fdfcb797 Resolve dynamic.extensionForDynamic() statically 2014-12-01 20:43:44 +03:00
Andrey Breslav
8ee00b70ee Tests for extensions properties on dynamic types 2014-12-01 20:43:43 +03:00
Andrey Breslav
5cced5a451 Comments on bounded dynamic types 2014-12-01 20:43:43 +03:00
Andrey Breslav
1afe6fca5b Test for vararg parameter of dynamic type 2014-12-01 20:43:43 +03:00
Andrey Breslav
8cf6d24ffe Test for using dynamic types in conditions 2014-12-01 20:43:43 +03:00
Andrey Breslav
ea36024893 Report an error on dynamic types used as supertypes or upper bounds 2014-12-01 20:43:43 +03:00
Andrey Breslav
65164e95b5 Test for overrides involving dynamic types 2014-12-01 20:43:42 +03:00
Andrey Breslav
e09b624f05 dynamic is not a keyword on the left-hand side of callable references 2014-12-01 20:43:42 +03:00
Andrey Breslav
1f66c64ee0 dynamic receiver admits nullable values 2014-12-01 20:43:42 +03:00
Andrey Breslav
ef34b5c9a9 Commented code removed 2014-12-01 20:43:42 +03:00
Andrey Breslav
71b2e8bcf1 Test for substitutions with dynamic types 2014-12-01 20:43:41 +03:00
Andrey Breslav
a1c1d25575 Test for using dynamic types with smart casts 2014-12-01 20:43:41 +03:00
Andrey Breslav
712f776545 Test for using dynamic types with smart casts 2014-12-01 20:43:41 +03:00
Andrey Breslav
cdecb9d8c4 Test for using dynamic types in type inference 2014-12-01 20:43:41 +03:00
Andrey Breslav
7f0df032b4 Highlight dynamic calls in the editor 2014-12-01 20:43:41 +03:00
Andrey Breslav
52f1e037c1 Dynamic calls have priority over extensions 2014-12-01 20:43:40 +03:00
Andrey Breslav
f58b30706e Parsing dynamic in extension receiver position 2014-12-01 20:43:40 +03:00
Andrey Breslav
4f3158abb3 Mark dynamic calls in tests 2014-12-01 20:43:40 +03:00
Andrey Breslav
c8029307fa Forbid dynamic on the RHS of is and as 2014-12-01 20:43:40 +03:00
Andrey Breslav
645d931a9e Support for named arguments in dynamic calls 2014-12-01 20:43:39 +03:00
Andrey Breslav
0ebc478d50 Test for dynamic calls with lambdas 2014-12-01 20:43:39 +03:00
Andrey Breslav
d2e6767c07 Delegation and nullability turned into capabilities
Otherwise they did not sustain substitutions
2014-12-01 20:43:39 +03:00
Andrey Breslav
845f30975d Basic support for dynamic calls 2014-12-01 20:43:39 +03:00
Andrey Breslav
d5932e1a33 Nullability of dynamic types 2014-12-01 20:43:38 +03:00
Andrey Breslav
e0bd881c1e Rendering for dynamic types 2014-12-01 20:43:38 +03:00
Andrey Breslav
65794183e7 Specificity supported for dynamic types 2014-12-01 20:43:38 +03:00
Andrey Breslav
20513abe04 Allow dynamic types only in some contexts 2014-12-01 20:43:38 +03:00
Andrey Breslav
28b466d069 Parsing dynamic types 2014-12-01 20:43:37 +03:00
Andrey Breslav
0f26998b19 Spec document for dynamic types 2014-12-01 20:43:37 +03:00
Valentin Kipyatkov
d8bad58db8 Fixed JetDeclarationStub.getParent() which was incorrectly implemented before 2014-12-01 16:06:52 +03:00
Valentin Kipyatkov
2daeaa38d9 2 more indices not needed anymore 2014-12-01 16:06:52 +03:00
Valentin Kipyatkov
2a2fa5d4f2 More simple and effective top-level declarations by name search 2014-12-01 16:06:52 +03:00
Valentin Kipyatkov
e6e6fda251 More correct implementation PsiShortNamesCache (although I do not know if it matters at all) 2014-12-01 16:06:51 +03:00
Valentin Kipyatkov
486c83a174 Dropped 2 more not needed indices 2014-12-01 16:06:51 +03:00
Valentin Kipyatkov
4408944dc3 Dropped index which is not needed anymore 2014-12-01 16:06:51 +03:00
Valentin Kipyatkov
1431167afb Renamed two index classes for consistency 2014-12-01 16:06:51 +03:00
Valentin Kipyatkov
a50f9863b3 Classes by package index now contains only top-level classes 2014-12-01 16:06:51 +03:00
Valentin Kipyatkov
375a8f6049 Added indices for functions and properties in package and used them to speed up completion 2014-12-01 16:06:51 +03:00
Valentin Kipyatkov
9f6dd3ce2e Faster completion by not iterating over full class index for each package 2014-12-01 16:06:51 +03:00
Zalim Bashorov
7539eb3dfc Fix build on windows: use forward-slash in path to config files, it's important for access to files inside jar/zip. 2014-12-01 15:27:39 +03:00
Zalim Bashorov
31d4a8c226 JS frontend: added tests for nativeInvoke, nativeGetter, nativeSetter. 2014-12-01 15:27:38 +03:00
Zalim Bashorov
99745dfa90 Drop platform parameter in diagnostic tests(partial revert of 2a334fc). 2014-12-01 15:27:38 +03:00
Zalim Bashorov
a8e8f9b44e Move JsUnitTestReporter.java to utils. 2014-12-01 15:27:37 +03:00
Zalim Bashorov
3f480361f1 Move LibrarySourcesConfigWithCaching to js.frontend module. 2014-12-01 15:27:37 +03:00
Zalim Bashorov
c06d70d190 JS frontend: added checkers for nativeInvoke, nativeGetter, nativeSetter. 2014-12-01 15:27:36 +03:00
Zalim Bashorov
fdfbae05e4 Move AnnotationsUtils to js.frontend 2014-12-01 15:27:35 +03:00
Zalim Bashorov
7073f20484 JsDescriptorUtils#(isExtension, isOverride, getContainingClass) -> DescriptorUtils#(*) 2014-12-01 15:27:35 +03:00
Zalim Bashorov
e9dbb97e22 Minor in JS backend: refactoring JsInvocation. 2014-12-01 15:27:34 +03:00
Zalim Bashorov
b06096469a JS backend: added the support nativeInvoke, nativeGetter, nativeSetter. 2014-12-01 15:27:34 +03:00
Zalim Bashorov
e6b69e48d9 Minor: fix JetCoreEnvironment#(createForProduction, createForTests) call sites for JVM. 2014-12-01 15:27:33 +03:00
Zalim Bashorov
912727e5d2 Unify extension point and extension registration in plugin and cli 2014-12-01 15:27:33 +03:00
Stanislav Erokhin
14d663bcab Fix maven kotlin-stdlib-validator task. 2014-12-01 14:35:40 +03:00
Nikolay Krasko
8957a0621c Refactoring: remove method 2014-11-28 17:19:30 +03:00
Nikolay Krasko
e49d13dfac Refactoring: drop method, rename method in TopDownAnalyzerFacadeForJVM.java 2014-11-28 17:19:29 +03:00
Nikolay Krasko
840e16baa0 Test for IllegalArgumentException bug from JVM backend (KT-6149)
JVM backend fails with IllegalArgumentException: Argument for @NotNull parameter 'descriptor' of org/jetbrains/jet/codegen/PropertyCodegen.gen must not be null

 #KT-6149 Fixed
2014-11-28 17:18:48 +03:00
Nikolay Krasko
edf4ab8e64 Check no exception when static import in java is used and there's cyclic dependency between kotlin and java (KT-5848)
#KT-5848 Fixed
2014-11-28 17:18:48 +03:00
Nikolay Krasko
ce45108fe9 LTDA: Add addition scope provider component for lazy resolve and create additional injector for REPL 2014-11-28 17:18:47 +03:00
Nikolay Krasko
4342740195 Refactoring: move common code for ResolveSession init to method 2014-11-28 17:18:46 +03:00
Nikolay Krasko
d15ff6da45 LTDA: Make resolve session field non-public in JS injector 2014-11-28 17:18:45 +03:00
Nikolay Krasko
8cfdcd319b LTDA: Add the temp ability to build with eager resolve
Compiler should be executed with -Dlazy.tda=false parameter

REPL won't work with this option
2014-11-28 17:18:45 +03:00
Nikolay Krasko
1a894c7e5c LTDA: Store order of declarations in DeclarationProvider 2014-11-28 17:18:44 +03:00
Nikolay Krasko
0f852efb54 LTDA: Don't store illegal 'inner' modifier in descriptors 2014-11-28 17:18:43 +03:00
Nikolay Krasko
f2b6ea29c9 LTDA: Remove redeclaration errors under lazy resolve 2014-11-28 17:18:43 +03:00
Nikolay Krasko
cc6d7e420c LTDA: Test problem - skip LazyEntity in search for closest interface 2014-11-28 17:18:42 +03:00
Nikolay Krasko
0fa001ed01 LTDA, Minor: method rename 2014-11-28 17:18:41 +03:00
Nikolay Krasko
df115099a6 LTDA: Rename method for creating shared trace 2014-11-28 17:18:41 +03:00
Nikolay Krasko
a42edb9c8f LTDA: Assert context was created for light class generation 2014-11-28 17:18:40 +03:00
Nikolay Krasko
571f3c8524 LTDA: Initialize project components with resolve session after injector construction is finished 2014-11-28 17:18:39 +03:00
Nikolay Krasko
53b699d745 LTDA: Injector with Lazy TDA for JS target 2014-11-28 17:18:38 +03:00
Nikolay Krasko
602407cc9c LTDA: Fix REPL and make it work with lazy resolve 2014-11-28 17:18:38 +03:00
Nikolay Krasko
994c8886bc LTDA: Initialize built-ins reference resolver with lazy tda 2014-11-28 17:18:37 +03:00
Nikolay Krasko
23c6498e1e LTDA: Injector with lazy TDA for JVM target
- REPL is broken
 - Tests for Kotlin - Java - Kotlin hierarchy may fail
2014-11-28 17:18:36 +03:00
Nikolay Krasko
b57e5fa971 LTDA: Compare constructed descriptors only with test files 2014-11-28 17:18:35 +03:00
Nikolay Krasko
48f459f656 LTDA: Enable lazy analyze by default 2014-11-28 17:18:35 +03:00
Alexander Udalov
d1425c14ba Test built-ins serializer, untie built-ins from class loader resources 2014-11-28 15:39:03 +03:00
Alexander Udalov
44b8f3045f Introduce PackageFragmentProviderImpl
It works with a read-only collection of package fragments, passed to it in the
constructor
2014-11-28 15:35:59 +03:00
Alexander Udalov
fd2ddff750 Minor, simplify serialization of enum entries
Enum entries are never reordered during sort (see MemberComparator)
2014-11-28 15:35:59 +03:00
Valentin Kipyatkov
122b14dd7d More accurate filtering of extensions 2014-11-28 15:33:28 +03:00
Valentin Kipyatkov
016af0b53c Code completion: shorter presentation for member extensions 2014-11-28 15:33:28 +03:00
Valentin Kipyatkov
ffe231ec4d JetType.getTypeArguments() may not contain null's 2014-11-28 15:33:28 +03:00
Valentin Kipyatkov
bf65ddaa2f Minor code refactoring 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
3c07df36c7 Renames 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
8bc7cf3d18 Smart completion fixed filtering of non-suitable generic inheritors 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
bf130676a8 Minor 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
c1252c7963 Do not search inheritors of Any 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
9af2877f97 Inheritors in smart completion work for the classes in the same file too 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
4acf668ab8 Smart completion of inheritors: correct filtering of duplicates 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
85825e0ab1 Smart completion includes object's from scope before searching for inheritors
#KT-6123 Fixed
2014-11-28 15:33:27 +03:00
Valentin Kipyatkov
ed9dba2071 Dropped functions not needed anymore 2014-11-28 15:33:26 +03:00
Valentin Kipyatkov
52acd223a2 Fixed KT-5211 Code completion in IntelliJ for generating anonymous class creates code with compile error "Projections are not allowed for immediate arguments of a super type"
#KT-5211 Fixed
2014-11-28 15:33:26 +03:00
Valentin Kipyatkov
3566ac1510 Code completion: added type parameters for Kotlin classes too 2014-11-28 15:33:26 +03:00
Valentin Kipyatkov
820c2c7cd8 Smart completion: inheritors instantiation suggested + fixed a bug with incorrect presentation of generic java class instantiation 2014-11-28 15:33:26 +03:00
Valentin Kipyatkov
07f7a35bc9 Finally turned on non-imported extensions completion optimization as new ResolutionFacade now allows for resolving any declaration 2014-11-28 15:33:26 +03:00
Valentin Kipyatkov
4e4fbfcabc Fix 2014-11-28 15:33:26 +03:00
Michael Bogdanov
801f4ba837 Update to IDEA 139.560.4 2014-11-28 11:02:20 +03:00
Pavel V. Talanov
0a4f93ddb0 Move check for special annotation to an abstract class 2014-11-27 21:17:21 +03:00
Pavel V. Talanov
0d6555cc63 Prettify code in BinaryClassAnnotationAndConstantLoaderImpl 2014-11-27 21:17:20 +03:00
Pavel V. Talanov
bd575c39dd Fix calling toString() on ProtoContainer 2014-11-27 21:17:20 +03:00
Pavel V. Talanov
f0a9c4f683 Extract non-descriptor specific abstract ancestor for BinaryClassAnnotationAndConstantLoader 2014-11-27 21:17:19 +03:00
Pavel V. Talanov
39e1dfbcc0 Merge AnnotationLoader and ConstantLoader into single interface
Merge all implementation classes into single BinaryClassAnnotationAndConstantLoader
2014-11-27 21:17:18 +03:00
Pavel V. Talanov
1652157ec7 Prettify AnnotationDescriptorLoader, ConstantDescriptorLoader and DescriptorLoadersStorage after conversion 2014-11-27 21:17:18 +03:00
Pavel V. Talanov
09ff1128ea Convert AnnotationDescriptorLoader, ConstantDescriptorLoader and DescriptorLoadersStorage 2014-11-27 21:17:17 +03:00
Pavel V. Talanov
81ddd16df2 Rename AnnotationDescriptorLoader, ConstantDescriptorLoader and DescriptorLoadersStorage before conversion 2014-11-27 21:17:17 +03:00
Pavel V. Talanov
e4d3a65124 Make AnnotationLoader and ConstantLoader accept descriptor-independent data
Rewrite BaseDescriptorLoader to operate on data derived from proto
Intdoduce ProtoContainer to replace containing descriptor as input data
2014-11-27 21:17:16 +03:00
Pavel V. Talanov
c73ac97ecf Minor: simplify code 2014-11-27 21:17:15 +03:00
Pavel V. Talanov
d2fc7c7fd3 Inline BaseDescriptorLoader#getPackagePartClassName utilities 2014-11-27 21:17:15 +03:00
Pavel V. Talanov
38725687fc Prettify code in BaseDescriptorLoader after conversion 2014-11-27 21:17:14 +03:00
Pavel V. Talanov
bd540d5f80 Convert BaseDescriptorLoader to kotlin 2014-11-27 21:17:14 +03:00
Pavel V. Talanov
5aebc2fecd Rename BaseDescriptorLoader before conversion 2014-11-27 21:17:13 +03:00
Alexander Udalov
8dae1b62dd Add CharSequence.subSequence
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.

 #KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Alexander Udalov
4d95bcfc7e Rename CharSequence.get to charAt
This is done for JVM interoperability. There's still a member function
String.get() and an extension function "get" on CharSequence

 #KT-1730 Fixed
 #KT-5389 Fixed
2014-11-27 20:38:18 +03:00
Alexander Udalov
a7b88e9485 Make CharSequence.length a function instead of property
And String.length as well.

This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.

A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)

 #KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Alexander Udalov
6b8da062a4 Increase memory for 'All * Tests' configurations
Use the same parameters as for All Tests
2014-11-27 20:38:17 +03:00
Denis Zharkov
3b2d0b88f3 Supported nested reified parameter declarations
Also switched to using type names as identifiers instead of their
indices
2014-11-27 15:15:04 +04:00
Denis Zharkov
080610c208 Wrap parentCodegen before generating from inline 2014-11-27 14:58:04 +04:00
Denis Zharkov
538a2172e5 Got rid of hack with stashing wereReified
1. Made ClosureCodegen extending MemberCodegen
2. Made ClosureContext extending ClassContext
2014-11-27 14:58:04 +04:00
Denis Zharkov
ca27be87cc Minor, removed redundant argument
from ClassBodyCodegen.generateDeclaration
2014-11-27 13:49:18 +04:00
Denis Zharkov
37d476c388 Moved DiagnosticFactories about reified to
``Type parameter declarations'' block
2014-11-27 13:49:18 +04:00
Denis Zharkov
02be1063c1 Do not report a warning on an inline function with a reified parameter
#KT-6273 Fixed
2014-11-27 13:49:17 +04:00
Denis Zharkov
f7d1bc5931 Diagnostics test: array creation of non-reified TP
#KT-1370 Fixed
2014-11-27 13:49:17 +04:00
Evgeny Gerashchenko
428109e8c4 Updated regexp for Windows. Hope it fixes test on buildserver... 2014-11-27 12:22:15 +03:00
Svetlana Isakova
724f2e6e7b KT-6081 Chained generic method calls: wrong type inference
#KT-6081 Fixed
2014-11-27 02:28:10 +03:00
Evgeny Gerashchenko
9c880de735 Compilation errors are rendered to log without "Kotlin:ERROR:" prefix and without path to file. Sometimes javac adds path to file, sometimes doesn't. This had led tests to fail on some platforms. 2014-11-26 18:42:24 +03:00
Alexander Udalov
8cb1c7f0e6 Pass NameResolver to loadClassAnnotations()
It's not used at the moment, but will be in the upcoming implementation of
annotation loader (for JS, built-ins and type annotations)
2014-11-26 17:27:08 +03:00
Evgeny Gerashchenko
19ad2406ff Moved test data into common directory. 2014-11-26 14:32:12 +03:00
Evgeny Gerashchenko
adcd4d4ca0 Fixed case of file name. 2014-11-26 14:32:11 +03:00
Alexey Sedunov
591c409854 Change Signature: Process Kotlin-based usages when changing signature of the Java function 2014-11-26 13:07:38 +03:00
Alexey Sedunov
18c10c9079 Change Signature: Allow running Java change signature from Kotlin usage/override 2014-11-26 13:07:37 +03:00
Alexey Sedunov
b5f2ce743c Change Signature: Allow running Kotlin change signature from Java usage/override 2014-11-26 13:07:36 +03:00
Alexey Sedunov
3d2cc129b5 Change Signature: Allow running Java's Change Signature in tests 2014-11-26 13:07:35 +03:00
Alexey Sedunov
5c4dd75110 Light Methods: Change PSI element language to Kotlin 2014-11-26 13:07:34 +03:00
Alexey Sedunov
1008225116 Change Signature: Processing of non-Kotlin usages
#KT-5810 Fixed
 #KT-4187 Fixed
2014-11-26 13:07:33 +03:00
Alexey Sedunov
c35c4072c6 Change Signature: Add support of multi-file tests 2014-11-26 13:07:32 +03:00
Alexey Sedunov
c80c866d82 Change Signature: Rename parameter in overriding functions
#KT-4045 Fixed
2014-11-26 13:07:31 +03:00
Alexey Sedunov
ddccc0e640 Change Signature: Update enum entries w/o delegation specifier when changing signature of enum class constructor
#KT-5978 Fixed
2014-11-26 13:07:29 +03:00
Alexey Sedunov
5bfdb8ee60 Change Signature: Do not add default values to parameters of overriding functions
#KT-6160 Fixed
2014-11-26 13:07:28 +03:00
Alexey Sedunov
d597c98445 Extract Function: Fix NPE when extracting this in object
#KT-6238 Fixed
2014-11-26 13:07:27 +03:00
Alexander Udalov
e0c842b3d8 Convert BuiltInsSerializationUtil to Kotlin 2014-11-25 23:17:01 +03:00
Alexander Udalov
a6d759ff96 Minor, add test for obsolete issue
#KT-3587 Obsolete
2014-11-25 23:16:56 +03:00
Alexander Udalov
7d43f39c80 Fix disappearing exceptions in GenerateProtoBuf.kt
Any exception caught during the generation (e.g. about an incompatible version)
is lost because of 'System.exit(0)' in 'finally'
2014-11-25 23:16:28 +03:00
Alexander Udalov
4e735878cf Minor, add "storageManager" property to context for convenience 2014-11-25 23:16:28 +03:00
Alexander Udalov
c35ddc3616 Minor, make ownTypeParameters a property in TypeDeserializer 2014-11-25 23:16:28 +03:00
Alexander Udalov
3a066dfd07 Rename "context" -> "c" in deserialization for brevity 2014-11-25 23:16:27 +03:00
Alexander Udalov
1c04a6052f Get rid of unnecessary list in Interner 2014-11-25 23:16:27 +03:00
Alexander Udalov
1f68c94ce6 Fix several bugs in serialization of inner generic classes
- Interner was working incorrectly with parents
- nested classes were serialized in codegen out of any context

 #KT-5660 Fixed
2014-11-25 23:16:26 +03:00
Alexander Udalov
36c65e4264 Minor, drop strange method from SerializerExtension 2014-11-25 23:16:26 +03:00
Alexander Udalov
b56076bd6a Merge LazyJavaResolverContext and LazyJavaResolverContextWithTypes 2014-11-25 23:16:26 +03:00
Alexander Udalov
60662e5831 Fix double laziness of annotations introduced in 149a90d 2014-11-25 23:16:21 +03:00
Alexander Udalov
75851d44cc Minor, inline method from LazyJavaPackageFragmentProvider 2014-11-25 23:15:50 +03:00
Alexander Udalov
ab6fec1540 Simplify type deserializer construction even more 2014-11-25 23:15:50 +03:00
Alexander Udalov
2b189c5193 Convert TypeDeserializer to Kotlin 2014-11-25 23:15:49 +03:00
Alexander Udalov
c9bef09085 Extract DeserializedType to top level and convert to Kotlin 2014-11-25 23:15:49 +03:00
Alexander Udalov
07c3a07ecb Make DeserializedType a static nested class 2014-11-25 23:15:49 +03:00
Alexander Udalov
5907df92db Drop secondary DeserializedPackageMemberScope constructor
Create package context only once
2014-11-25 23:15:49 +03:00
Alexander Udalov
e1a1c06c3e Rename deserialization context for Java to "components"
Simplify its injection to DeserializedDescriptorResolver
2014-11-25 23:15:49 +03:00
Alexander Udalov
823009e0df Add laziness-friendly toString() to lazy type parameter 2014-11-25 23:15:48 +03:00
Alexander Udalov
a4d4d15ca9 Improve code after conversion, fix some warnings 2014-11-25 23:15:48 +03:00
Alexander Udalov
d3635de205 Convert MemberDeserializer to Kotlin 2014-11-25 23:15:48 +03:00
Alexander Udalov
9c80801c3a Rename MemberDeserializer.java -> .kt 2014-11-25 23:15:48 +03:00
Alexander Udalov
673c15a23d Simplify component injection in annotation/constant loaders 2014-11-25 23:15:48 +03:00
Alexander Udalov
149a90d7bf Make annotations on deserialized descriptors truly lazy 2014-11-25 23:15:47 +03:00
Alexander Udalov
954678ab2b Minor, simplify MemberDeserializer.getAnnotations() 2014-11-25 23:15:47 +03:00
Alexander Udalov
4df7cb4e72 Major refactoring of deserialization contexts: merge two into one 2014-11-25 23:15:47 +03:00
Alexander Udalov
cb5c21e831 Merge DeserializationGlobalContext with DeserializationComponents 2014-11-25 23:15:47 +03:00
Alexander Udalov
aa1fa7063e Minor, drop one of "withTypes" in favor of default arguments 2014-11-25 23:15:47 +03:00
Alexander Udalov
1a84ade232 Minor, rename field deserializer -> memberDeserializer 2014-11-25 23:15:46 +03:00
Alexander Udalov
cfa484f760 Introduce DeserializationComponents
Decouple components from the state present in contexts, get rid of duplication
of parameters in each context
2014-11-25 23:15:46 +03:00
Alexander Udalov
fc0f83cbdb Minor, change parameter order, reformat 2014-11-25 23:15:46 +03:00
Alexander Udalov
eadf9a13b9 Untangle circular dependency of TypeDeserializer and context 2014-11-25 23:15:46 +03:00
Alexander Udalov
ea3778d5be Use outer class context in ClassDeserializer 2014-11-25 23:15:45 +03:00
Andrey Breslav
8f26bc646e Fix containing declarations for deserialized type parameters of top-level functions 2014-11-25 23:15:45 +03:00
Zalim Bashorov
04f6d50423 Minor in JS stdlib: annotate volatile and synchronized as native.
Don't generate code for this classes to avoid warnings from some minifiers.
Note: volatile and synchronized was reserved word in ECMAScript 2, but is not since ECMAScript 5.
2014-11-25 21:11:17 +03:00
Andrey Breslav
2a334fc8f5 Support JS-targeted diagnostic tests 2014-11-25 18:45:43 +03:00
Nikolay Krasko
722624f0a4 Add test about platform static checks in ide 2014-11-25 17:16:15 +03:00
Nikolay Krasko
700187cce6 Add ability to configure checker tests with directives 2014-11-25 17:16:14 +03:00
Natalia Ukhorskaya
528c674001 Gradle plugin: add file to sourceList instead of Function1 fix 2014-11-25 16:26:14 +03:00
Natalia Ukhorskaya
687fb247d3 Gradle plugin: add file to sourceList instead of Function1 2014-11-25 16:17:53 +03:00
Valentin Kipyatkov
dbe7c84af3 Partial body resolve: tests now support resolve to any element with selection in test data 2014-11-24 20:11:30 +03:00
Valentin Kipyatkov
389b2cca8a Internal action to search calls with type Nothing which is not explicitly declared 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
95042a729f Fixed NPE 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
f29e2788cb Improvements in internal action 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
48f696947f Switched to ResolutionFacade 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
32a13502c5 Fixed one of the cases with lambda's returning Nothing 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
c5afc219b9 Added assert + removed qualified names 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
bd8eaeedaa Added tests for lambda's returning Nothing (currently do not work) 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
d7d533cf39 Added internal action to check partial body resolve correctness 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
6cb6a907d7 Changed test output from line comments to block comments 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
2f226685d5 Compiler bug workaround 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
0f59622a44 Checked that partial body resolve works for property delegating 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
390f5b1bc4 Added comment 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
1f7f046552 Code refactoring 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
14d1b9ce35 Renamed StatementTree + moved utility functions into class object 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
ea3da6cbe6 Renamed enum members 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
d334011d5d Renamed firstOrNullIsInstance 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
ddc60ac5dd Better injecting of partial body resolve filter 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
0b56760910 Partial body resolve works for property accessor body 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
8ccf56415a Partial body resolve filter: fixed nested loops case 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
cc84e9682b Partial body resolve: corrected it for explicit function type but unfortunately it does not work for non-explicit type yet 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
058af69078 Partial body resolve: added more tests 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
0dd77a8ed3 Renames - dropped word "Service" 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
2f19713cc2 Partial body resolve: rewritten algorithm of filter building to ensure correct resolve of smart cast points (+ prepared to support more strict mode for resolve only) 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
f8f07dc824 Minor 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
cd90ab951f Partial body resolve tests: more informative test output 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
4503adb7fc Partial body resolve filter: more correct lambda resolve for return 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
59cc441fc5 Partial body resolve filter: changed algorithm so that all statements to resolve are found when constructing it 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
4ca8a3400e Added a test 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
166d580682 Partial body resolve: found group of cases incorrectly handled by the current implementation 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
00d9c94a8b Changed way to pass statementFilter from ElementResolver into ExpressionTypingServices 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
a0c9c0e7b2 Added firstOrNullIsInstance and firstIsInstance methods 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
46c393d2db Added === and !== in addition to == and != 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
a4513c6a00 Added comments 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
6230ba7310 "casted" -> "cast" 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
3e437adbb4 Minor code improvements 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
8010c0f09d Partial body resolve works for local Nothing functions + does not go inside local functions and classes 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
b22233d378 Corrected test data for stub tests 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
3b77d337e8 Renames "possibly nothing" to "probably nothing" 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
e5579bcf32 Partial body resolve: to take source Kotlin callables with Nothing type from caches 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
992cdd9fe2 Partial body resolve: processing of standard "error" function 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
ca8d45259b Partial body resolve: added a test to fail if smart-casts will become too clever 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
e7ba59b209 Partial body resolve: correct handing of this qualifier 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
78e26c0cf9 Fixed partial body resolve when element to resolve is not inside body 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
f56d89c487 Partial body resolve: don't be confused by exits after ?: 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
e724af4b4e Partial body resolve: more efficient handling if-statements 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
0a7d73ef6b Partial body resolve: more efficient handling of loops 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
806bf3b942 Partial body resolve: more efficient handling of while 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
38c73f8df4 Partial body resolve: added test for do-while 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
a89c07924d Partial body resolve: fixed bug 2014-11-24 20:11:24 +03:00
Valentin Kipyatkov
e6acc5601c Partial body resolve: more efficient for-loop handling 2014-11-24 20:11:23 +03:00
Valentin Kipyatkov
5283b92269 Partial body resolve: more precise smart casts analysis for if-statement 2014-11-24 20:11:23 +03:00
Valentin Kipyatkov
a675b5ba38 Basic implementation of partial body resolve 2014-11-24 20:11:23 +03:00
Nikolay Krasko
9809e4fd0a Replace direct usages of TopDownLazyResolveForJava with facade 2014-11-24 19:19:35 +03:00
Nikolay Krasko
92d6ac7e7c Rewrite to Kotlin: LockBasedLazyResolveStorageManager 2014-11-24 19:19:32 +03:00
Nikolay Krasko
2800ab4a12 Rewrite to Kotlin (file rename): LockBasedLazyResolveStorageManager 2014-11-24 19:19:29 +03:00
Nikolay Krasko
a456f9d22e Add ability to create memoized functions with custom maps
- Remove cast in ResolveSession class
2014-11-24 19:19:14 +03:00
Stanislav Erokhin
edee61f2f5 Increase MaxPermSize for ant tasks 2014-11-24 15:41:57 +03:00
Stanislav Erokhin
4c0befbfe9 Remove unnecessary lazy value 2014-11-24 15:38:58 +03:00
Stanislav Erokhin
7fa93c4e90 Added support space symbols for diagnostic parameters in DiagnosticTest 2014-11-24 15:38:56 +03:00
Michael Bogdanov
8fc3a37989 Fix for KT-6312: Compiler crashes accessing inherited property of class object
#KT-6312 Fixed
2014-11-24 13:10:59 +03:00
Nikita Skvortsov
1e9d303705 fix for KT-5420 2014-11-22 02:52:19 +03:00
Nikita Skvortsov
65946c3ded minor code style improvements 2014-11-22 02:52:18 +03:00
Andrey Breslav
08ad4bec64 More information when no containing field found 2014-11-21 19:03:00 +03:00
Andrey Breslav
93a409d459 Rendering for resolution candidates 2014-11-21 19:02:47 +03:00
Andrey Breslav
b109a34651 Common formatting extracted 2014-11-21 18:59:45 +03:00
Andrey Breslav
0eee83b6ec Lazy logs removed 2014-11-21 18:59:45 +03:00
Andrey Breslav
4112b2de5f Disable lazy log checking by default 2014-11-21 18:59:44 +03:00
Pavel V. Talanov
ae75c7ecd7 Update stdlib-validator after changes to AnalysisResult 2014-11-21 16:10:05 +03:00
Pavel V. Talanov
ff3b3c8a6b Refactor: inline AnalyzerFacadeWithCache#getContextForElement 2014-11-21 15:56:11 +03:00
Pavel V. Talanov
67b2c32253 Minor: comment 2014-11-21 15:56:10 +03:00
Pavel V. Talanov
3afdd8bd92 Add analyzeFullyAndGetResult to ResolutionFacade 2014-11-21 15:56:10 +03:00
Pavel V. Talanov
63b402e93c Rename: JetElement#getLazyResolveSession() -> getResolutionFacade
Rename local variables and fields of type ResolutionFacade
2014-11-21 15:56:09 +03:00
Pavel V. Talanov
b2ce3da99c Minor: Inline the only usage of getAnalysisResultsForElements() 2014-11-21 15:56:09 +03:00
Pavel V. Talanov
cb1582fdc9 Rename: JetElement#getAnalysisResults() -> analyzeFullyAndGetResult 2014-11-21 15:56:08 +03:00
Pavel V. Talanov
1cf3938f13 Rename: JetElement#getBindingContext() -> analyzeFully 2014-11-21 15:56:07 +03:00
Pavel V. Talanov
d06628945c Refactor: Introduce JetElement#analyzeAndGetResult() utility 2014-11-21 15:56:07 +03:00
Pavel V. Talanov
407c2029da Rename: getModuleDescriptorForElement -> findModuleDescriptor 2014-11-21 15:56:06 +03:00
Pavel V. Talanov
6ff647ca66 Rename: resolveToElement() -> analyze 2014-11-21 15:56:06 +03:00
Pavel V. Talanov
e10461d0fa Minor: reorder functions 2014-11-21 15:56:05 +03:00
Pavel V. Talanov
bce399f5fd Rename: AnalyzeExhaust -> AnalysisResult 2014-11-21 15:56:05 +03:00
Pavel V. Talanov
e4670a791d Refactor: Introduce JetElement#getModuleDescriptorForElement() 2014-11-21 15:56:04 +03:00
Pavel V. Talanov
0319ef797e Refactor: Introduce DeclarationDescriptor#module utility 2014-11-21 15:56:03 +03:00
Pavel V. Talanov
96100eec1d Refactor: Introduce JetElement#resolveToElement utility 2014-11-21 15:56:03 +03:00
Pavel V. Talanov
585b556f52 Refactor: Introduce JetDeclaration#resolveToDescriptor utility 2014-11-21 15:56:02 +03:00
Pavel V. Talanov
95e668b1f1 Minor: move resolution utilities to a separate file 2014-11-21 15:56:02 +03:00
Pavel V. Talanov
df892ba33a Introduce ResolutionFacade to be used by plugin code instead of resolve session
Do not expose ResolveSessionForBodies where possible
Define API of ResolutionFacade, similar to what ResolveSessionForBodies has
JetElement#getLazyResolveSession returns ResolutionFacade
Call sites to be updated later
2014-11-21 15:56:01 +03:00
Pavel V. Talanov
2c9b0448a1 Fix getModuleInfo for elements in code fragments 2014-11-21 15:56:00 +03:00
Pavel V. Talanov
03a31db2ec Converter: use ide resolve through a dedicated interface
Eliminate direct usages of ResolveSession
2014-11-21 15:56:00 +03:00
Pavel V. Talanov
1f7c9f5693 Use KotlinCacheService directly in IDELightClassGenerationSupport 2014-11-21 15:55:59 +03:00
Pavel V. Talanov
1991f0119e Convert AnalyzeExhaust to Kotlin and make it a data class 2014-11-21 15:55:59 +03:00
Natalia Ukhorskaya
341d4a7a26 Fix maven build: remove wrong import 2014-11-21 15:07:06 +03:00
Svetlana Isakova
b71260f54e Moved tests
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03:00
Svetlana Isakova
2a83053355 Updated lazy log tests 2014-11-21 14:02:45 +03:00
Svetlana Isakova
9cd5f51b88 Added test for KT-4711
Error type with no error reported from type inference
 #KT-4711 Fixed
2014-11-21 14:02:43 +03:00
Svetlana Isakova
e31e63aabe Small refactoring: replaced code with 'getOrPut' library function 2014-11-21 14:02:43 +03:00
Svetlana Isakova
2948ca9077 Fixed argument for error message 'TYPE_PARAMETER_AS_REIFIED' 2014-11-21 14:02:43 +03:00
Svetlana Isakova
0719297d8f Uncommented test when extensions are called for nested calls 2014-11-21 14:02:42 +03:00
Svetlana Isakova
5d0f004292 Fix for 'if' special construct type
If one branch has Nothing type (contains 'return', etc.),
return result type of corresponding resolved call (it may depend on smart casts)
 #KT-6242 Fixed
2014-11-21 14:02:42 +03:00
Svetlana Isakova
36fd8a1a08 Set the right call operation node for implicit invoke
Make a call for implicit invoke safe if an outer call is safe
2014-11-21 14:02:42 +03:00
Svetlana Isakova
7f62675665 Fixed error reporting for special constructions (if, elvis)
Track whether an error was reported for sub expressions (like 'if' branches) or it should be reported for the whole expression
 #KT-6189 Fixed
2014-11-21 14:02:42 +03:00
Svetlana Isakova
8109b1f997 DONT_CARE placeholder can be nullable after a substitution
Interpret it as DONT_CARE as well (not as an error type where an error was generated before)
 #KT-6175 Fixed
2014-11-21 14:02:41 +03:00
Svetlana Isakova
8ad017c071 Extracted 'deparenthesizeArgument', used it where necessary
#KT-6176 Fixed
2014-11-21 14:02:41 +03:00
Michael Bogdanov
e2826a47e1 Remove "operation" method from StackValue.kt;
Compilation fix: remove static import to kotlin from AsmUtil
2014-11-21 13:59:44 +03:00
Michael Bogdanov
3a70992d27 Lazy intrinsic generation
#KT-6241 Fixed
2014-11-21 13:59:43 +03:00
Michael Bogdanov
4812564441 Intrinsic receiver parameter annotated with NotNull 2014-11-21 13:59:43 +03:00
Michael Bogdanov
afceec427d Intrinsic arguments parameter annotated with NotNull 2014-11-21 13:59:43 +03:00
Natalia Ukhorskaya
68d5e43ad3 Android Gradle Plugin 0.14.4 breaks Kotlin
#KT-6310 Fixed
2014-11-21 12:41:19 +03:00
Natalia Ukhorskaya
d85b3c15d8 Fix Android tests 2014-11-21 12:41:16 +03:00
Nikolay Krasko
5c597db881 Move ReferenceVariantsHelper and extensionsUtils to ide-common module
They are going to be used in Eclipse
2014-11-20 19:59:56 +03:00
Nikolay Krasko
d5f10d520c Update to IDEA 139.463.4 2014-11-20 12:38:21 +03:00
Michael Bogdanov
21d5785986 Inline StackValueWithSimpleReceiver utility constructor 2014-11-20 10:20:34 +03:00
Michael Bogdanov
fad64faabb canHaveSideEffect rename 2014-11-20 10:20:33 +03:00
Michael Bogdanov
d685921271 Review fixes 2014-11-20 10:20:33 +03:00
Michael Bogdanov
ec649e83c3 Don't skip receiver with side effects on static calls
#KT-6278 Fixed
2014-11-20 10:20:33 +03:00
Michael Bogdanov
5a8944085a Fix default property setter generation 2014-11-20 10:20:32 +03:00
Michael Bogdanov
9bac3a8055 Support platform static in call receiver, keep side effect on skiped receiver generation 2014-11-20 10:20:32 +03:00
Michael Bogdanov
6b2272e422 Call receiver rewrote in lazy way 2014-11-20 10:20:32 +03:00
Michael Bogdanov
2cc9d8e29b Support platformStatic for properties
#KT-5766 Fixed
2014-11-20 10:20:31 +03:00
Michael Bogdanov
5412a67d29 Generate static backing fields for properties in object
#KT-4973 Fixed
2014-11-20 10:20:31 +03:00
Michael Bogdanov
37bb4ae984 Coercion fix 2014-11-20 10:20:14 +03:00
Michael Bogdanov
c5d8f1faf5 Interface refs 2014-11-20 10:20:13 +03:00
Michael Bogdanov
fe1c6a0ca6 Introduce LOCAL_0 constant and some code cleaning 2014-11-20 10:20:13 +03:00
Michael Bogdanov
f00700b58d StackValue interface refactoring 2014-11-20 10:20:13 +03:00
Michael Bogdanov
434c094ba9 Get rid of lazy cast 2014-11-20 10:20:13 +03:00
Michael Bogdanov
4cb3d30e5b Added thiz constant in StackValue, some refactorings 2014-11-20 10:20:13 +03:00
Michael Bogdanov
62cb586397 Lazy receiver generation 2014-11-20 10:20:13 +03:00
Michael Bogdanov
af998101b3 Fix for KT-4206: NoSuchFieldError with class objects
#KT-4206 Fixed
2014-11-20 10:20:12 +03:00
Michael Bogdanov
7d1fd47569 Rewrite local var increment optimization 2014-11-20 10:20:12 +03:00
Michael Bogdanov
425f0984c7 Get rid of store 2014-11-20 10:20:12 +03:00
Michael Bogdanov
855bf772ca Prefix inc refactoring 2014-11-20 10:20:12 +03:00
Michael Bogdanov
c7b1c0fe52 Store refactoring
#KT-1213 Fixed
2014-11-20 10:20:11 +03:00
Michael Nedzelsky
505775218a JS backend: fix KT-6277 kotlinc-js: IllegalArgumentException when -output is a file name without directory prefix
#KT-6277 Fixed
2014-11-19 23:38:15 +03:00
Michael Nedzelsky
de2acc31ee JS backend: test for KT-6277 2014-11-19 23:38:12 +03:00
Valentin Kipyatkov
8006f16e46 Minor code refactorings 2014-11-19 16:01:20 +03:00
Valentin Kipyatkov
5036fdca14 Made ReferenceVariantsHelper class instead of object making method signatures shorter 2014-11-19 16:01:20 +03:00
Valentin Kipyatkov
d5d884025c Renamed TipsManager 2014-11-19 16:01:19 +03:00
Valentin Kipyatkov
601fe05cb0 Moved methods for checking extensions applicability from TipsManager to extensionUtils.kt (and made them all extension methods) 2014-11-19 16:01:19 +03:00
Valentin Kipyatkov
153b53baa8 Moved method checkIsExtensionCallable from ExpressionTypingUtils to TipsManager (converting it to Kottlin) 2014-11-19 16:01:19 +03:00
Valentin Kipyatkov
18b9e4a868 Added tests 2014-11-19 16:01:18 +03:00
Valentin Kipyatkov
376e12b6f3 Removed code which does not seem to be needed at all 2014-11-19 16:01:18 +03:00
Valentin Kipyatkov
e0da6247af Completion: bold immediate members for extensions too 2014-11-19 12:56:47 +03:00
Valentin Kipyatkov
a26388ef63 Completion: corrected presentation for extension properties 2014-11-19 12:56:47 +03:00
Valentin Kipyatkov
386c67925f Completion: do not bold top-level functions 2014-11-19 12:56:47 +03:00
Valentin Kipyatkov
fc993b88ec Checked that KT-4453 has been fixed recently by change in TipsManager 2014-11-19 12:56:46 +03:00
Nikolay Krasko
1fb0dc2d92 LTDA: Refactoring - extract processClassOrObject method from TDA 2014-11-18 17:10:25 +03:00
Nikolay Krasko
1a359fbcf6 LTDA: Refactoring - Move "analyzeFiles" to LazyTopDownAnalyzer 2014-11-18 17:10:24 +03:00
Nikolay Krasko
7b15f4125d LTDA: Fix configuration of package fragment provider in lazy resolve test code 2014-11-18 17:10:22 +03:00
Nikolay Krasko
ad05b5a709 Injector for additional body resolve with lazy analyzer
Fix resolve JS modules with JVM resolver
2014-11-18 17:10:21 +03:00
Zalim Bashorov
eae86e035f Minor in stdlib: move String.trimLeading and String.trimTrailing to common place. 2014-11-18 15:57:50 +03:00
Zalim Bashorov
14fd6eaaeb Minor: added missed quote and space. 2014-11-18 15:57:50 +03:00
Evgeny Gerashchenko
7e20c4876e Depending on IDEA community build configurations instead of ultimate.
Unified dependency naming (standalone-jps-IC-XXX.zip, was also standalone-jps-XXX.zip for continuous builds)
2014-11-18 15:24:46 +03:00
Alexey Sedunov
2ec4494c02 Find Usages: Add tests for enum entries 2014-11-18 13:25:03 +03:00
Alexey Sedunov
432c0bb69e Rename: Add tests for enum entries
#KT-4800 Fixed
2014-11-18 13:25:02 +03:00
Alexey Sedunov
6c08613f68 Change Signature: Add tests for enum entries
#KT-6034 Fixed
2014-11-18 13:25:01 +03:00
Alexey Sedunov
cf5f9424de Implementation Navigation: Add tests for enum entries
#KT-3540 Fixed
2014-11-18 13:25:00 +03:00
Alexey Sedunov
7556acf029 Light Classes: Provide light classes (as well as light fields) for enum entries 2014-11-18 13:24:57 +03:00
Alexey Sedunov
a6479bfc90 Light Classes: Do not add "final" modifier to enum light classes 2014-11-18 13:24:56 +03:00
Alexey Sedunov
7170209760 Move: Suggest creating Kotlin file if it doesn't exist
#KT-5379 Fixed
2014-11-18 13:24:55 +03:00
Valentin Kipyatkov
d061c3d771 Completion: bold members from immediate class 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
79cfe2bac4 Completion tests: added ability to test presentation text attributes 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
7410c36e3a Completion: moved signatures from "item text" to tail
#KT-5652 Fixed
2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
b2f2c9ac75 Code formatting 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
b7e9d96af2 Smart completion includes constructor parameters for instantiation items 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
d421e7ac72 Code refactoring 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
58a67a2bf3 Use our own tail handler 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
7077e22dd3 More tests 2014-11-17 22:06:16 +03:00
Valentin Kipyatkov
03b3cf7480 Completion: better space key handling 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
656ed01b94 Code completion: more precise detection of "just typing" 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
7b7e992515 Code completion: '=' char supported for all items + it inserts spaces around '=' 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
08f43dcbf8 Renamed classes 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
3ecae800af Code completion: fixed comma key behavior for function with parameters + more tests 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
57692b1a37 Code completion: space after comma on selecting item with comma key 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
3ebc681eec Behavior on typing chars with code completion lookup is completely defined by our own handler + added tests for this handler + fixed a few bugs related to this behavior 2014-11-17 22:06:15 +03:00
Valentin Kipyatkov
f36208718e Smart completion: fixed lookup string behaviour for "::xxx" items 2014-11-17 22:06:14 +03:00
Valentin Kipyatkov
dfc8c9be16 Dropped redundant override 2014-11-17 22:06:14 +03:00
Valentin Kipyatkov
836b4aa0f0 Smart completion: fixed lookup string for anonymous object item 2014-11-17 22:06:14 +03:00
Valentin Kipyatkov
e256d14075 Smart completion: 2 lookup strings for static member items 2014-11-17 22:06:14 +03:00
Valentin Kipyatkov
2b33501471 Smart completion: fixed items ordering issue 2014-11-17 22:06:14 +03:00
Stanislav Erokhin
caf44969a4 Add support for check diagnostic parameters in test. 2014-11-17 17:45:06 +03:00
Stanislav Erokhin
5a192f58ea Create AbstractDiagnosticWithParametersRenderer with renderParameters method. 2014-11-17 17:45:06 +03:00
Stanislav Erokhin
12f2c0861f Added DiagnosticFactoryToRendererMap.put(Renderers.MultiRenderer) 2014-11-17 17:45:05 +03:00
Stanislav Erokhin
65c9ea2465 Fix variance problems. 2014-11-17 17:45:05 +03:00
Stanislav Erokhin
c10c1ad7f6 Fix wrong containingDeclaration for property type parameter. 2014-11-17 17:45:05 +03:00
Stanislav Erokhin
b69ed539ea Fix descriptor renderer for LazyType 2014-11-17 17:45:04 +03:00
Stanislav Erokhin
b7c473f59e Update lazy.log files 2014-11-17 17:45:01 +03:00
Stanislav Erokhin
2033042d33 Make candidates lazy in ResolutionTask & ResolutionTaskHolder 2014-11-17 17:38:52 +03:00
Stanislav Erokhin
eb50e4adb3 Inject StorageManager to ResolutionTaskHolder 2014-11-17 17:38:52 +03:00
Stanislav Erokhin
b7f7a3349d Rename ResolutionTaskHolder.java -> ResolutionTaskHolder.kt 2014-11-17 17:38:52 +03:00
Stanislav Erokhin
f59d54e64f Convert ResolutionTaskHolder to kotlin 2014-11-17 17:38:51 +03:00
Nikolay Krasko
b5fb27b485 LTDA: Register script files in packages slice 2014-11-17 16:15:26 +03:00
Nikolay Krasko
365319a8e6 LTDA: Make supertypes in lazy type parameters be recorded in order of declaration 2014-11-17 16:15:26 +03:00
Nikolay Krasko
261d4293ae LTDA: Don't read CONSTRUCTOR slice in backend
Usages from DECLARATIONS_TO_DESCRIPTORS are left
2014-11-17 16:15:25 +03:00
Nikolay Krasko
5657d30125 LTDA: Move prohibited 'class object' to the list with extra class objects descriptors in lazy resolve 2014-11-17 16:15:24 +03:00
Nikolay Krasko
a2ddaeca77 LTDA: Make BuiltinsReferenceResolver compatible with Lazy TDA 2014-11-17 16:15:24 +03:00
Nikolay Krasko
cb2a9168a7 Dropped redundant interface 2014-11-17 16:15:23 +03:00
Nikolay Krasko
e1d51e9879 Minor: code enhancements 2014-11-17 16:15:22 +03:00
Nikolay Krasko
27e9f9c926 Don't duplicate overloaded functions in getting all descriptors 2014-11-17 16:15:22 +03:00
Nikolay Krasko
38256d3240 toString() for filter 2014-11-17 16:15:21 +03:00
Alexander Udalov
93696ff9bd Make Array.indices extension property, move to stdlib
This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
2014-11-17 15:20:44 +03:00
Alexander Udalov
36a9a99b4f Minor, fix formatting in Arrays.kt in stdlib 2014-11-17 15:02:39 +03:00
Alexander Udalov
74d00979d4 Use newly built compiler for kotlin2js instead of bootstrap
Otherwise it's impossible to make any change in built-ins: the bootstrap
compiler is not able to compile the new stdlib because stdlib is designed to
compile against the built-ins of the same version, but bootstrap compiler is
only aware of old built-ins which it has in its classpath
2014-11-17 15:02:38 +03:00
Alexander Udalov
128c938965 Make Array.size() a function instead of a property
Also add a deprecated extension property to help migration. This is done to
unify getting size of arrays and collections
2014-11-17 15:02:38 +03:00
Alexander Udalov
bc238d5f4c Regenerate tests 2014-11-17 14:08:45 +03:00
Natalia Ukhorskaya
7f56c815fb Debugger: add module info to key for type mapper in JetPositionManager 2014-11-17 11:45:10 +03:00
Evgeny Gerashchenko
321e758451 Merge pull request #528 from develar/patch-1
plugin description must be wrapped into CDATA if html used
2014-11-14 20:05:27 +04:00
Vladimir Krivosheev
074ac2a2e2 plugin description must be wrapped into CDATA if html used 2014-11-14 15:52:21 +01:00
Pavel V. Talanov
40addaed13 Fix wrong deserialization order
For case when property and function have the same name or
extension and non-extension member have the same name
2014-11-14 17:09:14 +03:00
Pavel V. Talanov
e8aee5cddf Sorting descriptors in DecompiledTextFactory is redundant 2014-11-14 17:09:10 +03:00
Pavel V. Talanov
d2cfcfa659 Fix test data after changes to renderer and descriptors 2014-11-14 17:09:05 +03:00
Pavel V. Talanov
32c66f9232 Regenerate OperationsMapGenerated 2014-11-14 16:18:34 +03:00
Pavel V. Talanov
c9bdba8e20 Minor: comment 2014-11-14 16:18:34 +03:00
Pavel V. Talanov
2d4d1caf17 Improve filtering descriptors in DeserializedMemberScope 2014-11-14 16:18:33 +03:00
Pavel V. Talanov
8016766b23 Extension/non-Extension members are deserialized in correct order 2014-11-14 16:18:33 +03:00
Pavel V. Talanov
8e1111d690 Deserialized scope descriptor order synced with serialization order
That introduces implicit dependency of deserialization on MemberComparator
2014-11-14 16:18:32 +03:00
Pavel V. Talanov
028e9105af Add test for enum class with inner classes 2014-11-14 16:18:32 +03:00
Pavel V. Talanov
847ccde099 Refactor DeserializedClassDescriptor: separate nested classes and enum entries logic 2014-11-14 16:18:31 +03:00
Pavel V. Talanov
9ddde7ca38 Do not put enum entry names into unordered set in deserialized classes 2014-11-14 16:18:30 +03:00
Pavel V. Talanov
5b009e216f Minor: comment 2014-11-14 16:18:30 +03:00
Pavel V. Talanov
77dd027d69 Use MemberComparator in DescriptorSerializer 2014-11-14 16:18:29 +03:00
Pavel V. Talanov
dc134b3394 MemberComparator: enum entries have top priority and are never reordered
Fix rendering accordingly
2014-11-14 16:18:29 +03:00
Pavel V. Talanov
eba5843468 Test order of enum entries in deserialized classes 2014-11-14 16:18:28 +03:00
Pavel V. Talanov
b7ca11cee1 Implement EnumEntrySyntheticClassDescriptor#toString() 2014-11-14 16:18:27 +03:00
Pavel V. Talanov
01cf60b834 Separate tests for ordering of deserialized members 2014-11-14 16:18:27 +03:00
Pavel V. Talanov
5ffa66ffc3 Do not put nested class names in unordered set for deserialized classes 2014-11-14 16:18:26 +03:00
Pavel V. Talanov
9a04ff0b9e Test order of nested/inner classes for deserialized classes 2014-11-14 16:18:26 +03:00
Pavel V. Talanov
52f7999bee Stable order of member descriptors in DeserializedMemberScope 2014-11-14 16:18:25 +03:00
Pavel V. Talanov
5be30ab81d Add validation that deserialized members are sorted accordingly 2014-11-14 16:18:25 +03:00
Pavel V. Talanov
e8b384eb63 Extract IntersectionScope in TypeUtils 2014-11-14 16:18:24 +03:00
Pavel V. Talanov
2533887253 Refactor: Make ValidationVisitor stateful so it's possible to inherit from it 2014-11-14 16:18:24 +03:00
Pavel V. Talanov
5f47a5aa49 Move MemberComparator to 'descriptors' module 2014-11-14 16:18:23 +03:00
Valentin Kipyatkov
a15edf716a Fixed KT-6235 Get rid of `` for identifier "type" in converter
#KT-6235 Fixed
2014-11-14 15:25:53 +03:00
valentin
51a5125987 No need to insert imports of Kotlin standard classes if java.util.* is imported 2014-11-14 15:25:53 +03:00
Zalim Bashorov
ccdcbf702a Update to IDEA 139.225.3 2014-11-13 21:52:39 +03:00
Denis Zharkov
8d47bdfebb Made <T> in arrayOfNulls() reified #KT-5651 Fixed 2014-11-13 20:56:10 +03:00
Denis Zharkov
eec4b7094c Added diagnostic test for Array<T> instances usage
when T is not reified
2014-11-13 20:56:10 +03:00
Denis Zharkov
e768b4e285 stdlib: Introduced filterIsInstance version
without class-literal as a parameter
2014-11-13 20:56:10 +03:00
Denis Zharkov
da5164acd8 stdlib: Introduced Array<T>?.orEmpty() in JVM-stdlib 2014-11-13 20:56:10 +03:00
Denis Zharkov
73ca75cc0b Fixed wrong constructor arguments order 2014-11-13 20:56:10 +03:00
Denis Zharkov
a8ca39754c Supported creating varargs of reified type parameter 2014-11-13 20:56:10 +03:00
Denis Zharkov
29b4ba9b3d Explicitly specified type of array 2014-11-13 20:56:09 +03:00
Denis Zharkov
28dc84344c Prohibit ''Nothing'' substitution of reified TP 2014-11-13 20:56:09 +03:00
Denis Zharkov
b3691b7358 Frontend changes for reified type parameters
Allowing reified only for inline functions and Intrinsics
2014-11-13 20:56:09 +03:00
Denis Zharkov
79c6f2b91b Introduced parametrised markers' set 2014-11-13 20:56:09 +03:00
Denis Zharkov
46f22b5422 Test fixed 2014-11-13 20:56:08 +03:00
Denis Zharkov
f00689d7c7 Made closure const instance public
because it's usage may be inlined into different package
2014-11-13 20:56:08 +03:00
Denis Zharkov
21699e1753 Supported reification for anonymous objects and lambdas 2014-11-13 20:56:08 +03:00
Denis Zharkov
a689f6d243 Tracking if there is something to reify in members 2014-11-13 20:56:08 +03:00
Denis Zharkov
d8e740d7a3 reifyInstructions returns Boolean whether there is something else to reify 2014-11-13 20:56:08 +03:00
Denis Zharkov
0087d861e1 Introduced new reified marker needClassReification
It's not parametrised by index
2014-11-13 20:56:08 +03:00
Denis Zharkov
c19c7d0ec7 Store parameters' identifiers in ReifiedTypeParameterMappings 2014-11-13 20:56:07 +03:00
Denis Zharkov
c18c67c993 Class signature reification 2014-11-13 20:56:07 +03:00
Denis Zharkov
6d6d6fadc1 Refactoring, unified closures generation 2014-11-13 20:56:07 +03:00
Denis Zharkov
45ca14345f Minor, replaced pattern of ArrayUtil.toStringArray 2014-11-13 20:56:07 +03:00
Denis Zharkov
74ca304931 Extracted buildClassReaderByInternalName into InlineCodegenUtil 2014-11-13 20:56:07 +03:00
Denis Zharkov
fc1d8dd9ce javaClass<T> is supported for reified T 2014-11-13 20:56:06 +03:00
Denis Zharkov
f3c49c605f Typecheck instructions are supported for reified T 2014-11-13 20:56:06 +03:00
Denis Zharkov
416ac7917b Removed old unused code emitting calls to non-existent methods 2014-11-13 20:56:06 +03:00
Denis Zharkov
4a66ab3627 Support generic array creation for reified inlined 2014-11-13 20:56:06 +03:00
Denis Zharkov
060c30746f Minor, extracted "kotlin/jvm/internal/Intrinsics" into IntrinsicMethods.INTRINSICS_CLASS_NAME 2014-11-13 20:56:06 +03:00
Denis Zharkov
8e3f87abaf Minor, extracted TypeUtils.isTypeParameter 2014-11-13 20:56:05 +03:00
Alexey Sedunov
b09684024b Generate light classes for Kotlin inner classes
#KT-6237 Fixed
2014-11-13 17:27:33 +03:00
Alexey Sedunov
da915aee7e Call Hierarchy: Do not interrupt caller hierarchy on non-local caller of local root declaration
#KT-6183 Fixed
2014-11-13 17:27:31 +03:00
Alexey Sedunov
558e038ba5 Extract Function: Replace non-denotable parameter types with their super types when possible
#KT-6187 Fixed
2014-11-13 17:27:29 +03:00
Alexey Sedunov
94efdeb3d5 Quick-fix Test: Fix file path which is passed to the FileComparisonException (so that we can update test data using text comparison UI) 2014-11-13 17:27:26 +03:00
Alexey Sedunov
c487cc7838 Create From Usage: Do not generate unnecessary/skip necessary empty lines 2014-11-13 17:27:24 +03:00
Alexey Sedunov
2e7cbab453 Create From Usage: Create package by reference expression/type reference 2014-11-13 16:43:12 +03:00
Alexey Sedunov
fd4fa9a042 Create Class From Usage: Allow user to choose a target directory when creating class in the specific package 2014-11-13 16:43:06 +03:00
Natalia Ukhorskaya
a9f9049223 Evaluate expression: fix exception for breakpoints on object header (for accessor methods) 2014-11-13 09:47:11 +03:00
Natalia Ukhorskaya
dab9411c5d Mark line numbers for bridges in closures 2014-11-13 09:47:10 +03:00
Natalia Ukhorskaya
0a97481184 Mark lineNumbers for synthetic accessors 2014-11-13 09:47:10 +03:00
Valentin Kipyatkov
eb25e47a51 Temporarily disabled optimization for faster non-imported extensions completion because it causes duplicated items, added test for this problem 2014-11-12 22:23:20 +03:00
Valentin Kipyatkov
b13c0f2248 Renamed methods 2014-11-12 21:57:50 +03:00
Valentin Kipyatkov
5f5d2de5e0 Moved KindFilter and DescriptorKindExclude out of JetScope, moved constants as well and renamed them 2014-11-12 21:57:49 +03:00
Valentin Kipyatkov
8e992abe58 Minor 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
25d8db37db Completion optimizations: do not search classes in java package when no SAM-constructors needed or when only singleton classifiers needed 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
95b3885aa5 Refactored filtering by descriptor kind so that no knowledge about SAM-constructors required in core 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
6711567d9a More correct types filtering in code completion 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
2512962134 Faster completion of non-imported extensions 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
ff4d91d47b Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors() 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
16c7201b34 Memory optimizations 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
5696fef30f Replace HashSet's with LinkedHashSet's for consistent behavior 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
048d34b964 Minor changes after code review 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
bf38da7bb1 Made private things private 2014-11-12 21:25:01 +03:00
valentin
6729a72ef8 Completion optimization to not search classes across all modules for each modules 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
4ca6c611f8 JetScope.Empty must be public 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov
c040c53f51 Optimization to not fetch objects in separate pass 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov
19f9f27675 No double-filtering 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov
fe5dbbf9b3 More efficient code completion + fixed a few bugs 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov
f31832dea9 Smart completion optimization 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov
6f2da4930a Descriptor kind filter replaced with bit mask 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
43df891515 More precise descriptor kind filtering (preparing to optimize smart completion) 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
5f4220427f Smart completion does not need SAM-constructor in declarations from scope + it's present even when not imported 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
a8bd7caed1 Added filtering in subpackages scope 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
8d02c58e0a Added name filter to PackageFragmentProvider.getSubPackagesOf but do not know how to use it actually 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
d744575000 DeserializedPackageMemberScope uses kind and name filters 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
ad9bb5c2a5 Removed stuff not used anymore 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
ccb7ba5517 More efficient treatment of single class imports 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
e14529eff7 LazyImportScope to filter by name and kind filters 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
059deb3c88 Added use of nameFilter to one of the implementations of DeclarationProvider 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
ed2a50ffcb Minor 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
c7ba03f76a DeclarationProvider.getAllDeclarations() -> getDeclarations(kindFilter, nameFilter) 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
169b082fff LazyMemberScope refactoring in progress 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov
d2d7529d9f Split file with 3 classes into 3 files 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov
e51993d339 LazyPackageFragmentScopeForJavaPackage uses name filter in getDescriptors() for methods and properties as well 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov
c7527e4a4d Name filters filter by Name instead of String 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov
8b2f6007c2 Minor 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov
b08e444aa0 LazyPackageFragmentScopeForJavaPackage uses name filter in getDescriptors() for classes 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov
5059ae5182 Removed kotlin.Boolean qualification 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov
78169f73a6 Completion to pass nameFilter to getDescriptors() calls 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov
2f9b8a21ce LazyPackageFragmentScopeForJavaPackage uses filters in getDescriptors() and does not cache it 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov
f8b278464e Minor code editings 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov
0472eb57a1 Refactored WritableScopeImpl to not cache result of getDescriptors() but use filters 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov
a2dbf68286 Code simplifications 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov
6d90a7a8d9 Minor code simplifications 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov
164a8798f8 Chained scope to not cache result of getDescriptors() but uses filters 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov
1983a9f3da Replaced usages of JetScope.getAllDescriptors() with JetScope.getDescriptors() (where makes sense) 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov
2dd41028fd Removed explicit invoke() 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov
760b9c4389 Added JetScope.getDescriptors(nameFilter, kindFilter) but the filters are never used yet 2014-11-12 21:24:55 +03:00
Nikolay Krasko
e8a2039396 Use JetTestUtils.assertEqualsToFile in usages tests to simplify fixing test data 2014-11-12 20:37:45 +03:00
Nikolay Krasko
c2a544d475 Remove syntax error from java files in usage test data 2014-11-12 20:37:43 +03:00
Nikolay Krasko
ccb6aec5ee Fix changing files after running Generated Test configuration 2014-11-12 20:35:01 +03:00
Evgeny Gerashchenko
6bf0c9f4ae Updating Kotlin incremental caches and Java mappings only for Java modules. 2014-11-12 17:56:48 +03:00
Evgeny Gerashchenko
ab09ffa4a4 Minor. Renamed property for disambiguation. 2014-11-12 16:25:02 +03:00
Evgeny Gerashchenko
1bab0e5d04 Unified downloading IDEA for main and continuous branches. 2014-11-12 16:25:02 +03:00
Evgeny Gerashchenko
20b1c6e910 Removed redundant macro parameter. It was never used since introduced. 2014-11-12 16:25:02 +03:00
Evgeny Gerashchenko
1a374efcd1 Fixed KNPE when inline functions/constants are completely removed. 2014-11-12 16:25:01 +03:00
Natalia Ukhorskaya
c9e5099307 Add test for KT-6240: create custom renderer for generic class
#KT-6240 Open
2014-11-12 15:17:21 +03:00
Natalia Ukhorskaya
12b4fc7ad9 Resolve codeFragments with context of JetClass 2014-11-12 15:13:37 +03:00
Natalia Ukhorskaya
a86e0336c9 Fix EA-60377 - readAccess for isSubclass 2014-11-12 11:52:41 +03:00
Natalia Ukhorskaya
e82eb38ec3 Debugger: make KotlinRenderer inapplicable if at least one of custom renderer is defined 2014-11-12 11:52:40 +03:00
Evgeny Gerashchenko
868a8dbc84 Fixed paths unification in tests on some Windows machines. 2014-11-12 11:09:35 +03:00
Alexander Udalov
b39d34ca8d Prepend zeros to SAM wrapper hash code
To make its length always 8 characters as is already done for package parts.
This fixes some test on incremental compilation because it relies that hashes
are eight characters long
2014-11-11 19:59:20 +03:00
Alexander Udalov
83a2111057 Configure modules 'reflection' and 'reflection.jvm'
Add source roots for IDE features to work in sources, but exclude from Make:
these modules are compiled by the new compiler from build.xml and some weird
errors may arise if we compile it with the old compiler (and also output of
that compilation won't be used anyway)
2014-11-11 18:35:41 +03:00
Alexander Udalov
29480f30ef Minor, fix compilation in module reflection.jvm 2014-11-11 18:35:41 +03:00
Alexander Udalov
57d37a3860 Extract reflection implementation to module runtime.jvm 2014-11-11 18:35:40 +03:00
Alexander Udalov
4f0d83a7fe Update lazy logs after field rename 2014-11-11 18:35:39 +03:00
Alexander Udalov
eb96b97bc8 Get rid of underscores in private property names
They were used to workaround duplicate signature errors, but this is no longer
relevant since no accessors are generated for private properties with backing
fields
2014-11-11 18:35:37 +03:00
Alexander Udalov
bb96a8e1fb Rename JavaResolverPsiUtils -> JavaResolverUtils 2014-11-11 18:10:44 +03:00
Alexander Udalov
be08e33463 Minor, change annotation in test data
To fix this case in an upcoming test which adds retention(runtime) to all
annotations (which resulted in duplicate annotation here)
2014-11-11 18:10:43 +03:00
Alexander Udalov
ae3c17d399 Minor, get rid of SAMs in some loadJava tests 2014-11-11 18:10:43 +03:00
Alexander Udalov
66d27fad13 Move utilities out of 'core' to where they are used 2014-11-11 18:10:42 +03:00
Alexander Udalov
d3f210f73c Move SAM resolution to frontend.java 2014-11-11 18:10:42 +03:00
Alexander Udalov
0b6bb38bb3 Move SAM function type calculation to SamConversionResolver 2014-11-11 18:10:42 +03:00
Alexander Udalov
344c6f0b3f Move SAM adapter resolution logic to SamConversionResolver 2014-11-11 18:10:41 +03:00
Alexander Udalov
ae78b0e216 Minor, merge two sematically identical functions 2014-11-11 18:10:41 +03:00
Alexander Udalov
4350da5f24 Extract SAM constructor resolution logic to a component 2014-11-11 18:10:40 +03:00
Nikolay Krasko
d6ffd22533 More tests for decompiling classes with wrong abi version 2014-11-11 17:40:26 +03:00
Nikolay Krasko
43eb94726c Make single decompiler be responsible for compiled Kotlin files
IDEA caches link between a virtual file and correspondent FileViewProvider.
This breaks navigation to decompiled sources for the library that has been
just updated because of outdated ABI version.

Also IDEA don't allow to change language for decompiled files.

 #KT-6016 Fixed
2014-11-11 17:34:56 +03:00
Nikolay Krasko
5555e28bfb Refactoring: Modify test for incompatible ABI version 2014-11-11 17:33:13 +03:00
Nikolay Krasko
c242665cd3 Extract isCompatibleAbiVersion from kinds enum and store read kinds even for incompatible version 2014-11-11 17:33:13 +03:00
Nikolay Krasko
95a2dce627 Remove warning and add tests when this warning had been reproducible 2014-11-11 17:33:12 +03:00
Nikolay Krasko
d5bef5e612 Minor: better Kotlin code 2014-11-11 17:33:11 +03:00
Nikolay Krasko
d80c98a8ba Minor: formatting 2014-11-11 17:33:10 +03:00
Michael Nedzelsky
dd86823480 JS backend: compile some builtins to builtins.js instead of stdlib 2014-11-11 17:09:00 +03:00
Michael Nedzelsky
5f576c4c05 JS backend: test for toGenerator from stdlib 2014-11-11 17:08:56 +03:00
Alexey Sedunov
afeb03f383 Create From Usage: Create class by annotation entry/super-call delegation specifier 2014-11-11 14:42:48 +03:00
Alexey Sedunov
1b1eb10979 Create From Usage: Create class by constructor call 2014-11-11 14:42:45 +03:00
Alexey Sedunov
b8f68acdbb Create From Usage: Create class by reference expression 2014-11-11 14:42:42 +03:00
Alexey Sedunov
1f14d93412 Create From Usage: Create class by type reference 2014-11-11 14:42:39 +03:00
Alexey Sedunov
a76607beca Callable Builder: Support class generation 2014-11-11 14:42:37 +03:00
Alexey Sedunov
aaf4283531 JetTypeParameterListOwner: Add getTypeParameterList() and getTypeConstraintList() methods 2014-11-11 14:42:34 +03:00
Alexey Sedunov
7123ca8ea0 Name suggester: Respect type parameter name when suggesting name for
variables based on that type parameter
2014-11-10 21:10:39 +03:00
Alexey Sedunov
f81c2d5ff7 Name suggester: Improve name suggestion strategy for type parameters 2014-11-10 21:10:37 +03:00
Alexey Sedunov
7cb77314bc Callable Builder: Allow to forbid substitution for any TypeInfo 2014-11-10 21:10:37 +03:00
Alexey Sedunov
538248cafa Callable Builder: Do not skip unused type parameters 2014-11-10 21:10:35 +03:00
Alexey Sedunov
2f98af1a8e Callable Builder: Do not skip unused type parameters 2014-11-10 21:10:35 +03:00
Alexey Sedunov
88dcd858a6 CallableBuilder: Add option to suppress substitution 2014-11-10 21:10:33 +03:00
Alexey Sedunov
59e4325fc0 Move JetCodeFragment-related logic to JetIntentionActionsFactory 2014-11-10 21:10:33 +03:00
Alexey Sedunov
850f1ebccd JetIntentionActionsFactory, JetSingleIntentionActionFactory: Translate to Kotlin 2014-11-10 21:10:31 +03:00
Alexey Sedunov
aa2c10446b JetIntentionActionsFactory, JetSingleIntentionActionFactory: Rename to .kt 2014-11-10 21:10:30 +03:00
Alexey Sedunov
42a74f55da Create From Usage: Remove "from usage" words from action text 2014-11-10 21:10:29 +03:00
Alexey Sedunov
d343bb4dc3 Move declaration: Create new file when needed 2014-11-10 21:10:27 +03:00
Andrey Breslav
74ec7728c8 Actually create .kt files in the file system for Kotlin multifile tests 2014-11-10 18:38:48 +02:00
Andrey Breslav
993c6d82c2 Minor. Formatting 2014-11-10 17:24:08 +02:00
Andrey Breslav
8dcd81e0b3 KT-6178 False "Overriden methods are not annotated" when using delegation
#KT-6178 Fixed
2014-11-10 17:24:07 +02:00
Andrey Breslav
586b7e3dee Base class for multi-file tests extracted 2014-11-10 17:24:06 +02:00
Andrey Breslav
f16dcdd8a9 Do not annotate Kotlin members returning platform types as @Nullable
This leads to pointless warning in Java code
2014-11-10 17:24:06 +02:00
Andrey Breslav
19afb2fcb8 Make candidate resolver force-resolve type arguments on argument count mismatch 2014-11-10 17:24:05 +02:00
Andrey Breslav
4892369cf4 Diagnostic tests are logging their lazy activity 2014-11-10 17:24:04 +02:00
Andrey Breslav
8436147cec KT-1056 Don't allow passing type arguments to T
#KT-1056 Fixed
2014-11-10 17:23:58 +02:00
Andrey Breslav
35766dfa20 Additional/forced resolve for lazy types 2014-11-10 17:23:58 +02:00
Andrey Breslav
7d9be42969 LazinessTokens introduced to enable/disable building lazy types 2014-11-08 15:51:41 +02:00
Andrey Breslav
2334bf4c70 Resolution of type constructors in TypeResolver is now lazy (for types in declarations) 2014-11-08 15:51:41 +02:00
Andrey Breslav
adafd70730 Abstract lazy type moved to descriptors 2014-11-08 15:51:41 +02:00
Andrey Breslav
266262df68 TypeResolver converted to Kotlin 2014-11-08 15:51:40 +02:00
Andrey Breslav
ccc489abfd Inter-field dependencies fixed for fields used as context
The problem was that when GivenExpression was used to initialize a feld, the generator did not know that there's
a dependency on the receiver of the call inside the expression, so it could place the call before the initialization of the receiver,
 which caused a compilation error. Now dependencies are tracked explicitly
2014-11-08 15:51:40 +02:00
Svetlana Isakova
fad4261448 KT-6132 No smart completion for argument of java static method
#KT-6132 Fixed
2014-11-08 10:36:25 +03:00
Valentin Kipyatkov
d4275e1110 Added test for KT-6132 2014-11-08 10:36:25 +03:00
Svetlana Isakova
de6cdf19ac Improved assert error message 2014-11-08 10:36:24 +03:00
Zalim Bashorov
ab8979c614 Revert "Workaround for bootstrapping with changes in kotlin2js ant task and cli compiler."
This reverts commit a5b928782b.
2014-11-07 19:53:03 +03:00
Natalia Ukhorskaya
42257218b6 Fix tests after adding lineNumber for functions without return expression 2014-11-07 17:18:02 +03:00
Denis Mekhanikov
323df9498a stdlib: fix DropStream & TakeStream mutliple iteration 2014-11-07 17:14:58 +03:00
Denis Mekhanikov
80493aa4e6 stdlib: improve tests 2014-11-07 17:14:57 +03:00
Denis Mekhanikov
495967a573 stdlib: fix documentation for some IO functions 2014-11-07 17:14:57 +03:00
Denis Mekhanikov
23397d17dc stdlib: simplify File.recurse and File.extension functions 2014-11-07 17:14:56 +03:00
Denis Mekhanikov
1a4c11cb98 stdlib: rearrange IO functions 2014-11-07 17:14:56 +03:00
Zalim Bashorov
3e7b0be68d K2JS: test that UNUSED_PARAM warnings inside native declarations and all warnings from stdlib was suppressed. 2014-11-07 16:30:52 +03:00
Zalim Bashorov
a5b928782b Workaround for bootstrapping with changes in kotlin2js ant task and cli compiler. 2014-11-07 16:30:52 +03:00
Zalim Bashorov
adab0445de K2JS: introduce "no-stdlb" parameter and use stdlib from compiler by default. 2014-11-07 16:30:52 +03:00
Zalim Bashorov
e457eea438 Use JarFileSystem for collect kotlin files inside archive instead of own implementation. 2014-11-07 16:30:52 +03:00
Zalim Bashorov
aecd2be25e Introduce constant for "kt". 2014-11-07 16:30:51 +03:00
Zalim Bashorov
ab5d34c373 Reset extensions cache in DiagnosticsWithSuppression when Application changed(that hepens in tests). 2014-11-07 16:30:51 +03:00
Zalim Bashorov
b3defdbf90 JS tests: create JetFiles by JetPsiFactory instead of by PsiManager to avoid to access to PsiManager after it disposed.
That fixed js tests after changes in DiagnosticsWithSuppression.
2014-11-07 16:30:51 +03:00
Zalim Bashorov
38d5f2ee2b Extract the suppressing logic for debugger. 2014-11-07 16:30:51 +03:00
Zalim Bashorov
cd20301283 JS frontend: suppress warnings from stdlib. 2014-11-07 16:30:51 +03:00
Zalim Bashorov
c8556ec1f7 JS frontend: suppress UNUSED_PARAM for native declarations.
#KT-2141 Fixed
2014-11-07 16:30:51 +03:00
Zalim Bashorov
624f5c4c34 Minor: moved test for check the iterating over String to common place.
#KT-3617 Fixed
2014-11-07 16:30:50 +03:00
Alexander Udalov
70d0c2ff92 Generate generic signature to collection method stubs
#KT-6213 Fixed
2014-11-07 16:10:12 +03:00
Natalia Ukhorskaya
d4b0977381 Debugger: stop at closing bracket for functions without return statement 2014-11-07 15:10:41 +03:00
Evgeny Gerashchenko
878aac1acb Fixed test on Windows (slashes issue). 2014-11-07 14:52:40 +03:00
Evgeny Gerashchenko
d72f31de61 Updating Java mappings only for incremental mode.
Avoiding executing this code on TeamCity, which fails on TeamCity 8.x
2014-11-07 14:52:05 +03:00
Evgeny Gerashchenko
fe2d54dc5d Correct checking for action availability. 2014-11-07 14:52:05 +03:00
Evgeny Gerashchenko
e51296b047 Extracted function which creates compiler environment. 2014-11-07 14:52:04 +03:00
Evgeny Gerashchenko
a840e4d122 Extracted functions which update incremental caches, etc 2014-11-07 14:52:04 +03:00
Evgeny Gerashchenko
a797f82ce2 Extracted methods compiling to JS and JVM in KotlinBuilder. 2014-11-07 14:52:03 +03:00
Evgeny Gerashchenko
97b516a600 Improved output dir checking in KotlinBuilder.
Output dir for representative target is necessary only for JS part: moved there.
2014-11-07 14:52:02 +03:00
Evgeny Gerashchenko
155775f925 Minor. Added test when compilation error is introduced and fixed in other package. 2014-11-07 14:52:02 +03:00
Evgeny Gerashchenko
1e2c4659cd Committed wrong behavior of Java+Kotlin incremental compilation (Java files recompiled twice). 2014-11-07 14:52:01 +03:00
Evgeny Gerashchenko
7f49a8c159 Added tests with redeclaration. The behavior is correct (compilation error), while diagnostic message is not ideal. 2014-11-07 14:52:01 +03:00
Evgeny Gerashchenko
47e16390a9 Added test with conflicting function overloads in different files. 2014-11-07 14:52:00 +03:00
Evgeny Gerashchenko
21105fcae4 Tests with SAM conversions. 2014-11-07 14:51:59 +03:00
Evgeny Gerashchenko
3237791433 Added tests with adding method to superclass. 2014-11-07 14:51:58 +03:00
Evgeny Gerashchenko
86dd7ec880 Tests: converting Java to Kotlin and back. 2014-11-07 14:51:57 +03:00
Evgeny Gerashchenko
c0b0a17256 Supported incremental compilation tests when compilation fails in the end. 2014-11-07 14:51:56 +03:00
Evgeny Gerashchenko
335c3f4506 Tests with renamed method, incremental compilation between Kotlin and Java. 2014-11-07 14:51:56 +03:00
Evgeny Gerashchenko
e1180983aa Replaced absolute paths with macro in compilation errors. 2014-11-07 14:51:55 +03:00
Evgeny Gerashchenko
9234ef3803 Tests with constants, incremental compilation between Kotlin and Java. 2014-11-07 14:51:54 +03:00
Evgeny Gerashchenko
70331e3b82 Initial support for kotlin-java interop in incremental compilation. 2014-11-07 14:51:53 +03:00
Evgeny Gerashchenko
3011bdb7d7 Aborting compilation on errors (don't try to compile Java after it). 2014-11-07 14:51:52 +03:00
Evgeny Gerashchenko
0f8dd59bcf Minor. Expanded test. 2014-11-07 14:51:51 +03:00
Evgeny Gerashchenko
4cf7b9e20c Minor. More correct constants processing. If class without constants is added, it doesn't mean directly that others should be recompiled. Anyway, this mistake didn't lead to any bug: proto change would be detected anyway. 2014-11-07 14:51:51 +03:00
Evgeny Gerashchenko
2492fe47f3 Minor. Added test data sanity check. 2014-11-07 14:51:50 +03:00
Evgeny Gerashchenko
b435b59648 Updated regexp for Android Studio redistributable URL 2014-11-06 20:11:24 +03:00
Evgeny Gerashchenko
76bd381345 Updated to IDEA 14 release (139.224.1) 2014-11-06 18:53:02 +03:00
Ilya Ryzhenkov
8fc550f3b1 Fix split invocation in js tests. 2014-11-06 17:13:17 +03:00
Nikolay Krasko
34001c23c1 Caching in KotlinLightClassForPackage haven't been working because of bad scope hashCode() 2014-11-06 16:48:04 +03:00
Nikolay Krasko
0568cc7ee7 Avoid calling descriptors.toString() in production code without need 2014-11-06 16:48:04 +03:00
Ilya Ryzhenkov
656bd028bc Remove dead commented code. 2014-11-06 16:45:58 +03:00
Ilya Ryzhenkov
ad1a2c4000 Update generated code to move "type" member into its place after it was demoted from keyword. 2014-11-06 16:45:58 +03:00
Ilya Ryzhenkov
2e154b73de Support componentN for arrays and lists #KT-5538 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov
c2fabf5736 Comparator<T> replaced with Comparator<in T> #KT-6030 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov
24ee79aa2d Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed 2014-11-06 16:45:56 +03:00
Ilya Ryzhenkov
0dc68c2702 Avoid using negative in descending sorts. 2014-11-06 16:45:56 +03:00
Natalia Ukhorskaya
55590e00a5 Evaluate expression: add ability to evaluate expression suspending on class header 2014-11-06 16:21:54 +03:00
Natalia Ukhorskaya
4eb93c06b1 Write line numbers for bridge methods (line for class header) 2014-11-06 16:21:52 +03:00
Natalia Ukhorskaya
0047655ed3 Debugger: fix stepping in when 2014-11-06 14:27:06 +03:00
Michael Bogdanov
221784b0f3 Mark linenumber on statement end 2014-11-06 11:48:50 +03:00
Valentin Kipyatkov
c95448b185 Code improvements after conversion to Kotlin 2014-11-05 21:42:17 +03:00
Valentin Kipyatkov
64e6b7f52d Converted BuiltinsPackageFragment to Kotlin 2014-11-05 21:42:17 +03:00
Valentin Kipyatkov
99a1cda82a Converting PackageFragmentProvider and its implementations to Kotlin 2014-11-05 21:42:16 +03:00
Valentin Kipyatkov
19f50960ca Code improvements after conversion to Kotlin 2014-11-05 21:42:16 +03:00
Valentin Kipyatkov
7a4bd79acc Converted to Kotlin 2014-11-05 21:42:16 +03:00
Valentin Kipyatkov
18c604bdf0 Renamed file to keep history 2014-11-05 21:42:15 +03:00
Valentin Kipyatkov
72e0546fde Converted JavaPackage and its implementation to Kotlin 2014-11-05 21:42:15 +03:00
Valentin Kipyatkov
9c9b431d7b Converted DeclarationProvider and all its inheritors to Kotlin 2014-11-05 21:42:14 +03:00
Valentin Kipyatkov
e2e7210b37 Converted DeserializedPackageMemberScope to Kotlin 2014-11-05 21:42:14 +03:00
Valentin Kipyatkov
c71100b486 Minor code improvements after conversion to Kotlin 2014-11-05 21:42:14 +03:00
Valentin Kipyatkov
9b81cf2454 Converted DeserializedMemberScope to Kotlin 2014-11-05 21:42:13 +03:00
Valentin Kipyatkov
db9015ed4a Converted LazyPackageMemberScope 2014-11-05 21:42:13 +03:00
Valentin Kipyatkov
6503d6f85c Converted LazyScriptClassMemberScope to Kotlin 2014-11-05 21:42:12 +03:00
Valentin Kipyatkov
c2a3fde969 Converted JetScope to Kotlin 2014-11-05 21:42:12 +03:00
Valentin Kipyatkov
c26c8f0a84 Workaround for compiler's bug 2014-11-05 21:42:11 +03:00
Valentin Kipyatkov
62215664ab Converted 2 more JetScope implementations to Kotlin 2014-11-05 21:40:08 +03:00
Valentin Kipyatkov
e517c10541 Minor code simplifications 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
c325230a37 Converted LazyImportScopy to Kotlin 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
a13301fd4a Simplified code 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
15fed6d641 Converted SubstitutingScope to Kotlin 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
ac306a1839 Converted FilteringScope to Kotlin 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
0f5b23e254 Converted ChainedScope to Kotlin 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
f5def83429 Converted WritableScope to Kotlin 2014-11-05 21:40:07 +03:00
Valentin Kipyatkov
0491e5f583 Minor code simplifications using Kotlin 2014-11-05 21:40:06 +03:00
Valentin Kipyatkov
0a01cdb99d Converted to Kotlin 2014-11-05 21:40:06 +03:00
Valentin Kipyatkov
961d55681e Converted to Kotlin 2014-11-05 21:40:06 +03:00
Valentin Kipyatkov
0a2403476e Converted method to property 2014-11-05 21:40:06 +03:00
Valentin Kipyatkov
e2b7b79fa1 Converting JetScope's implementations to Kotlin (in progress) 2014-11-05 21:40:06 +03:00
Michael Bogdanov
8a9977de72 Fix for KT-6202: Redundant and wrong linenumber after if/else condition
#KT-6202 Fixed
2014-11-05 18:25:36 +03:00
Michael Bogdanov
ad6afee53f Fix for KT-6196: ClassCastException on unit property initializer
#KT-6196 Fixed
2014-11-05 18:25:36 +03:00
Natalia Ukhorskaya
78bc15222b Gradle plugin: fix sourceSets for flavors (android) 2014-11-05 16:38:39 +03:00
Evgeny Gerashchenko
586d48f91e Fixed accidental override of new method in IDEA API. 2014-11-05 15:11:11 +03:00
Andrey Breslav
1b8c7aaf3d Memory optimization. Do not put sets into caches 2014-11-05 08:30:32 +02:00
Nikolay Krasko
7e1546d3e7 Merge stored empty lists and sets to singe object 2014-11-02 14:55:00 +03:00
Andrey Breslav
87d372aad5 Memory optimization: Fewer ConcurrentHashMap.Segment instances 2014-11-01 13:40:13 +02:00
Andrey Breslav
60ff2df597 Memory optimization: Do not retain LinkedHashSets in caches
LinkedHashSets are replaced with tight ArrayLists
2014-11-01 13:38:24 +02:00
Valentin Kipyatkov
bfdb756e22 Fixed formatting of doc-comments for parameters 2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
00fdd52b35 Fixed doc-comments only binder to bind doc-comment always 2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
0806de6782 Highlighting ranges should never include comments before/after element 2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
f0b93f3de3 Fixed highlighting range for errors in class object 2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
65f66de597 Added JetDeclaration.getDocComment() + more correct implementation of it 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
43e5112c21 Added parameter with default value to test 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
2200908367 Doc comments for parameters and property accessors 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
6915255d2f Introduced utility method closeDeclarationWithCommentBinders 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
2a1e575f80 Minor corrections in comment binder's code 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
f0f3489f80 Used public API instead of impl-one 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
d394625771 Fixed override/implement 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
5f180751cc Fixed tests 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
cf04ba4943 Corrected test data 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
b05b03a9c0 Corrected gold data - formatting became better after binding comments inside 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
84ba96900a Fixed formatter to work correctly with comments inside declaration nodes 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
d6dc2531b0 Removed binding of comment after package directive 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
c93b78c6dc Fixed diagnostics tests 2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
c562cfb83d Simplified declaration's up/down mover because it does not need to attach comments to declaration manually anymore 2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
b811a6cab4 Corrected comments binding so that comments before local functions and classes are bound to them 2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
9a8aa0f71a Fixed tests for moving code up/down 2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
f4b0f0e661 Fixed tests for variable/function extraction 2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
377df47e29 Fixed doc-comment not attached to the first declaration with no package directive + incorrect placement of comments for enum entry 2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
e3d6b7358c Fixing taking doc-comment for declaration 2014-10-31 21:07:49 +03:00
Valentin Kipyatkov
41685f0ba3 Fixing declaration ranges in decompiled code - comment "/* compiled code */" now is inside property 2014-10-31 21:07:49 +03:00
Valentin Kipyatkov
9dd4b5598e Comments binding (not complete yet) 2014-10-31 21:07:44 +03:00
Nikolay Krasko
ec2613db72 Do the check with converted line separators 2014-10-31 19:52:41 +03:00
Nikolay Krasko
775fddbf73 Do logging with system dependent paths 2014-10-31 19:52:41 +03:00
Pavel V. Talanov
c617b73424 Rename stub classes: PsiJet*Stub(Impl) -> Kotlin*Stub(Impl) 2014-10-31 18:26:09 +03:00
Pavel V. Talanov
5fb4f41030 Rename test data folder: libraries -> decompiler 2014-10-31 18:12:20 +03:00
Pavel V. Talanov
d2d9813e12 Rename and restructure plugin.libraries package
Rename: libraries -> decompiler
New subpackages: textBuilder, navigation
2014-10-31 16:49:11 +03:00
Pavel V. Talanov
f47d8239c4 Convert and rename JetClsStubBuilder 2014-10-31 16:48:26 +03:00
Pavel V. Talanov
97cbadef61 Decompiler tests: check decompiled text was parsed correctly 2014-10-31 15:04:47 +03:00
Pavel V. Talanov
602be6303c Minor: JetPsiUtil#getElementTextWithContext() accepts PsiElement 2014-10-31 15:04:46 +03:00
Pavel V. Talanov
3b59a513b0 Approximating flexible types in decompiled text 2014-10-31 15:04:46 +03:00
Pavel V. Talanov
b728ba2b1e Test function types in decompiler 2014-10-31 15:04:45 +03:00
Pavel V. Talanov
c0416255c4 DescriptorRenderer: fix rendering of functional types in receivers 2014-10-31 15:04:45 +03:00
Nikolay Krasko
8cbda20ef2 Relay artifact to internal folder 2014-10-31 00:39:47 +03:00
Nikolay Krasko
b6d0539795 Prepare additional artifact with test data to reuse it from eclipse 2014-10-31 00:39:47 +03:00
Nikolay Krasko
4622b6dd8f Move IdeDescriptorRenderer to ide-common 2014-10-31 00:39:46 +03:00
Nikolay Krasko
3a10416192 Rename module: ide-lazy-resolve -> ide-common 2014-10-31 00:39:45 +03:00
Nikolay Krasko
4e99572dbc Update to EAP 139.222.5 2014-10-31 00:39:45 +03:00
Michael Bogdanov
b8c13b851c Move to proguard 5.1
#KT-5931 Fixed
2014-10-30 19:02:03 +03:00
Michael Bogdanov
59917f3727 Fix for KT-6154: Inlining a private class function accessing a private val member throws exception at runtime in accessing the val getter
#KT-6154 Fixed
2014-10-30 19:02:03 +03:00
Pavel V. Talanov
951ce827a6 Parser: allow function types as receiver type for function 2014-10-30 16:47:03 +03:00
Pavel V. Talanov
632bceef26 Minor: fix parser error message 2014-10-30 16:47:03 +03:00
Natalia Ukhorskaya
c36fc42014 Exception analyzer doesn't show multiple attachments 2014-10-30 15:39:39 +03:00
Natalia Ukhorskaya
7bb4e538a6 Use resolveAnnotations instead of getResolvedAnnotations for typeReference 2014-10-30 15:39:38 +03:00
valentin
3aadd6f880 Corrected test data bacause return inside "use { }" is now allowed 2014-10-30 12:55:54 +03:00
Valentin Kipyatkov
245e70100d Renamed parameter 2014-10-30 12:55:54 +03:00
Valentin Kipyatkov
0b4c7588da Java to Kotlin action: no infinite recursion for symlinks + more efficient update() 2014-10-30 12:55:53 +03:00
Valentin Kipyatkov
448d444b2d J2K: replaced IntermediateResult with function 2014-10-30 12:55:53 +03:00
Valentin Kipyatkov
2e0ccf6984 J2K: fixed usage processing scheme to cover exotic case with anonymous class 2014-10-30 12:55:52 +03:00
Valentin Kipyatkov
7de15ec2a8 J2K: singletons are back 2014-10-30 12:55:52 +03:00
Valentin Kipyatkov
567bb6fd1a Renamed LazyElement -> DeferredElement 2014-10-30 12:55:51 +03:00
Valentin Kipyatkov
17622f8259 J2K: correct mutable/non-mutable types for overrides of Kotlin methods 2014-10-30 12:55:51 +03:00
Valentin Kipyatkov
0092c952ef Minor 2014-10-30 12:55:51 +03:00
Valentin Kipyatkov
899a051a8f J2K: fixed assertion 2014-10-30 12:55:50 +03:00
Valentin Kipyatkov
7e147d28c2 J2K converter: automatic generation of 'open' modifier for classes and methods 2014-10-30 12:55:50 +03:00
Valentin Kipyatkov
39cea5999c J2K: renamed Field to Property 2014-10-30 12:55:49 +03:00
Valentin Kipyatkov
3f6cebbc28 J2K converter testing: added dumping of errors into multifile tests too 2014-10-30 12:55:49 +03:00
Valentin Kipyatkov
82fc0ee394 Java to Kotlin converter tests: added check for errors in result file 2014-10-30 12:55:48 +03:00
Valentin Kipyatkov
389b14f44f KT-6120 Java to Kotlin converter can generate mutable collection types in case if collection write methods used
#KT-6120 Fixed
2014-10-30 12:55:48 +03:00
Valentin Kipyatkov
1af63cb3be Java to Kotlin converter: preparing to support Mutability 2014-10-30 12:55:47 +03:00
Valentin Kipyatkov
3217981a62 Disable Java To Kotlin action when not java file selected 2014-10-30 12:55:47 +03:00
Valentin Kipyatkov
d67e99d40a Fixed KT-6110 J2K converter: do not replace accessors implementing interface with property
#KT-6110
2014-10-30 12:55:47 +03:00
Valentin Kipyatkov
927fe9d2cb JavaToKotlinAction converts all files at once with cross usage processing 2014-10-30 12:55:46 +03:00
Valentin Kipyatkov
f100015e58 JavaToKotlinAction refactorings + minor fixes in the logic 2014-10-30 12:55:46 +03:00
Valentin Kipyatkov
41cb97ac61 Converted JavaToKotlinAction and JavaToKotlinActionUtil into Kotlin and merged into one class 2014-10-30 12:55:45 +03:00
Valentin Kipyatkov
3d6da9104c J2K: memory optimization 2014-10-30 12:55:45 +03:00
Valentin Kipyatkov
abf537e348 J2K: conversion with usage processing across multiple converted files works in tests (but not in real life yet) 2014-10-30 12:55:45 +03:00
Valentin Kipyatkov
41c7ec8285 J2K: processing usages of get/set methods in the code being converted when converting them into property 2014-10-30 12:55:43 +03:00
Valentin Kipyatkov
3b51858ed9 Removed workaround for compiler bug which has been fixed 2014-10-30 12:55:43 +03:00
Valentin Kipyatkov
e81631a3af J2K: refactored code to make createDefaultCodeConverter() private 2014-10-30 12:55:42 +03:00
Valentin Kipyatkov
7941314c60 J2K: fixed conversion of default parameter values and annotation arguments 2014-10-30 12:55:42 +03:00
Valentin Kipyatkov
7762d4e7c6 J2K: fixed conversion of base class constructor arguments 2014-10-30 12:55:42 +03:00
Valentin Kipyatkov
9ac23cd657 J2K: checked that field name change is correctly handled for usages in other converted classes as well 2014-10-30 12:55:41 +03:00
Valentin Kipyatkov
030faa4630 Big refactoring in j2k converter to support java&kotlin code updating to reflect changes in declarations produced by conversion (work in progress but all tests pass) 2014-10-30 12:55:41 +03:00
Valentin Kipyatkov
16f117571f Minor 2014-10-30 12:55:40 +03:00
Valentin Kipyatkov
95bf9e3c1c Repackaging 2014-10-30 12:55:40 +03:00
Valentin Kipyatkov
f5e9230a04 Renamed ReferenceSearcherImpl to IdeaReferenceSearcher 2014-10-30 12:55:39 +03:00
Zalim Bashorov
9e11b40fe1 Add the support suppressWarnings, verbose and version in build tools. 2014-10-29 23:09:07 +03:00
Andrey Breslav
70db76b219 Typo fixed in a diagnostic message 2014-10-29 18:43:48 +03:00
Natalia Ukhorskaya
8deef10292 Fix android tests 2014-10-29 17:31:14 +03:00
Natalia Ukhorskaya
75a8699467 Minor: fix warnings 2014-10-29 17:10:27 +03:00
Natalia Ukhorskaya
c4ba32a8cc Can't use a qualified name of an annotation class in an annotation parameter
#KT-6151 Fixed
2014-10-29 17:10:25 +03:00
Michael Bogdanov
8e93719e9d Fix test data for android tests 2014-10-29 17:04:10 +03:00
Alexey Sedunov
cede5ac58b Create From Usage: Fix type substitution for no-receiver calls 2014-10-28 19:15:06 +03:00
Alexey Sedunov
abbbd198fd Create From Usage: Use supplied type arguments to infer function type parameters 2014-10-28 19:15:05 +03:00
Alexey Sedunov
a13f334df2 Find Usages: Restrict search scope for private class members
#KT-6124 Fixed
2014-10-28 19:15:03 +03:00
Alexey Sedunov
a2930a581f Additional Resolve: Use descriptor of constructor instead of class when resolving primary constructor annotations
#KT-6099
2014-10-28 19:15:02 +03:00
Michael Bogdanov
d0f6f03380 Fixes for call site finally generation before non-local returns 2014-10-28 19:15:00 +03:00
Michael Bogdanov
dd8c3f0e49 Fixes for inline fun finally block generation before lambda non-local returns 2014-10-28 19:14:52 +03:00
Michael Bogdanov
25d7c9f20a Enabled disabled non-local returns in stdlib 2014-10-28 19:14:14 +03:00
Valentin Kipyatkov
11fd8fe392 Convert to expression body: fixed type selection for public override 2014-10-28 15:40:11 +03:00
Nikolay Krasko
d1fe9b71ef Make line break before '}' optional
#KT-6142 Fixed
2014-10-28 01:50:51 +04:00
Nikolay Krasko
0cd95b5514 Formatter: empty lines between declarations 2014-10-28 01:50:50 +04:00
Nikolay Krasko
6090eb5563 Refactoring: move method to rules 2014-10-28 01:50:50 +04:00
Nikolay Krasko
5d094415ce Allow access to home kotlin project dir in convert tests 2014-10-28 01:50:49 +04:00
Alexander Udalov
35e956609a Rewrite mutable collection stub method generation
The main problem of the previous approach was that we were only generating
erased method signatures, which was incorrect in case a class also had a member
from another supertype with the same signature as the substituted one from the
collection. Javac issues compilation errors when compiling Java code against
such classes.

Also all the needed method stub signatures were hardcoded in
generateBuiltInMethodStubs() and the case of MutableListIterator was missing
2014-10-27 17:17:31 +03:00
Alexander Udalov
1fc9c58b24 Minor, update outdated deprecation comment 2014-10-27 17:17:27 +03:00
Alexander Udalov
685a1c38e2 Fix indent in built-in sources 2014-10-27 17:17:26 +03:00
Alexey Tsvetkov
fb8918bbe6 JS backend: removed adding '$' to label suffix 2014-10-27 15:58:49 +03:00
Alexey Tsvetkov
78e12f7cfa JS backend minor: removed license from test cases 2014-10-27 15:58:49 +03:00
Nikolay Krasko
8d86951a3b Refactoring: junit.framework.Assert -> org.junit.Assert 2014-10-27 12:47:43 +04:00
Nikolay Krasko
863ef64c61 Replace http://teamcity.jetbrains.com to https 2014-10-24 16:24:53 +04:00
Natalia Ukhorskaya
7d106ee8b5 Debugger tests: do not create breakpoints for FakeLightClassForFileOfPackage because we create them for KotlinLightClassForPackage 2014-10-24 15:59:40 +04:00
Natalia Ukhorskaya
d9ac8155da Debugger: wrong stepping through the loop with continue label
#KT-5776 Fixed
 #KT-5664 Fixed
2014-10-24 15:59:39 +04:00
Natalia Ukhorskaya
ffba1b6fa0 Debugger tests: render line properly 2014-10-24 15:59:38 +04:00
Natalia Ukhorskaya
3900ee34ae Debugger tests: move stepping tests 2014-10-24 15:59:37 +04:00
Natalia Ukhorskaya
cce22c0df9 Debugger: implement getSourcePosition for fields 2014-10-24 15:59:36 +04:00
Nikolay Krasko
29d73b9302 Don't activate getPresentation() method from parser tests
Calling this method from frontend tests caches empty presenters
in KeyedExtensionCollector that makes plugins tests fail.
2014-10-24 15:54:00 +04:00
Valentin Kipyatkov
304c826b47 Fixed KT-6128 Code completion does not work inside function literal if it's dependant on declarations below
#KT-6128 Fixed
2014-10-24 15:14:26 +04:00
Valentin Kipyatkov
357ea7a995 Added JetCallableDeclaration.getColon() 2014-10-24 14:19:41 +04:00
Valentin Kipyatkov
d13fd19a63 Added feature to "Convert to expression body" intention: selection for easier explicit type removal 2014-10-24 14:19:41 +04:00
Nikolay Krasko
ea69f5a9a6 Fix for KT-6106: Using platformStatic crashes intellisense (but not Compiler)
#KT-6106 Fixed
2014-10-24 10:04:43 +04:00
Alexander Udalov
c50ca3ab86 Fix empty stack trace in assertion for platform typed expression 2014-10-23 18:32:47 +04:00
Alexey Sedunov
27977cda23 Move: Test data addendum 2014-10-22 21:07:10 +04:00
Alexey Sedunov
07dfde4d2d Add comment 2014-10-22 21:07:09 +04:00
Alexey Sedunov
f7ef1c8d4d Add alternative constructor 2014-10-22 21:07:08 +04:00
Alexey Sedunov
c0901ec8a6 Improve assertion message 2014-10-22 21:07:07 +04:00
Alexey Sedunov
d5e80cae1b Remove unused property 2014-10-22 21:07:06 +04:00
Alexey Sedunov
5b3a4ed7e0 Make JetOperationExpression an inheritor of JetExpression 2014-10-22 21:07:05 +04:00
Alexander Udalov
8c87b242b3 Regenerate tests 2014-10-22 20:49:35 +04:00
Pavel V. Talanov
a65f0d3b2a Use PsiElement#getResolveScope() instead of custom helper
Fix extensions and types completion completion in code fragments in context of library source files
Also affects completion in files not in our project (not tested)
2014-10-22 18:56:33 +04:00
Pavel V. Talanov
db8d1b58b8 Debugger: log error on evaluating fragment with non-kotlin context 2014-10-22 18:56:32 +04:00
Pavel V. Talanov
c3efe1b9b7 Extract attachment helper to a separate file
Improve logic for a nonphysical file
2014-10-22 18:56:32 +04:00
Pavel V. Talanov
5806a66cf9 JetPositionManager: restrict scope of type mapper 2014-10-22 18:56:31 +04:00
Pavel V. Talanov
f2018a8764 Minor: extract function 2014-10-22 18:56:31 +04:00
Pavel V. Talanov
11b18c2817 Minor: rename 2014-10-22 18:56:30 +04:00
Pavel V. Talanov
0070377f2a KotlinCacheService: Correctly deal with code fragments in getLazyResolveSession()
Fix completion in code fragments in context of library source
2014-10-22 18:56:30 +04:00
Pavel V. Talanov
e88db57214 Test completion for code fragments in context of library source 2014-10-22 18:56:29 +04:00
Pavel V. Talanov
a0ad05983a KotlinCacheService: Correctly deal with code fragments in getAnalysisResults()
Fix evaluate expression for breakpoints in library source
2014-10-22 18:56:29 +04:00
Pavel V. Talanov
8d9f17d09d Reconfigure KotlinDebuggerTestCase
It is hiding a problem: evaluate expression fails in libraries
2014-10-22 18:56:28 +04:00
Pavel V. Talanov
e9fe66b8e4 Assert that extra files passed to analysis are in the same module 2014-10-22 18:56:28 +04:00
Andrey Breslav
d4d909de5f Flexible types supported in Extract Function when used from debugger/evaluate expression 2014-10-22 18:56:27 +04:00
Alexey Sedunov
925177f3d8 Move: Fix rebinding of references to singleton members and Java statics
#KT-6082 Fixed
2014-10-22 18:43:14 +04:00
Alexey Sedunov
bc7ae4186b Move: Do not rebind references to the declaration under move 2014-10-22 18:42:59 +04:00
Alexey Sedunov
b2588f610a Create From Usage ("set" operation): Support expressions of the form a[i]++ 2014-10-22 18:42:58 +04:00
Alexey Sedunov
b5e1fe613c Extract Function: Take duplicates into account when choosing placement of extracted function
#KT-5916 Fixed
2014-10-22 18:42:57 +04:00
Alexey Sedunov
c492ffee08 PSI Pattern Matching: Prefer strongly matched children over weakly matched parents 2014-10-22 18:42:55 +04:00
Alexey Sedunov
40da4bd423 Extract Function: Do not allow property extraction if return type is Unit
#KT-6017 Fixed
2014-10-22 18:42:55 +04:00
Alexey Sedunov
f5f1aec47b Create From Usage: Add support of get/set functions in property delegates
#KT-5977 Fixed
2014-10-22 18:42:54 +04:00
Alexey Sedunov
d4a9b922e5 Create From Usage: Fix template insertion when target container is not empty 2014-10-22 18:42:52 +04:00
Alexey Sedunov
07a2a16232 Type-related quick fixes: Render types using fully qualified names 2014-10-22 18:42:51 +04:00
Michael Bogdanov
b212fbd0b5 Remove empty try catch nodes from inlined code 2014-10-22 18:31:11 +04:00
Nikolay Krasko
f50d8c0731 Add explicit type to prevent compile error 2014-10-22 18:18:10 +04:00
Nikolay Krasko
1a7fd756e5 Check that removing open brace is out-of-block change 2014-10-22 18:18:10 +04:00
Nikolay Krasko
798a6bf689 Temp workaround: force out-of-block modification for properties with nullable types
Initializers for properties with nullable types are analyzed with binding context common for all declarations.
This can cause invalid elements are left in the cache guarded with out-of-block  modification tracker. This workaround forces increment for such cases.
2014-10-22 18:18:09 +04:00
Nikolay Krasko
5cdd5f580d Rewrite out-of-block modifier increment algorithm
1. Search the top-level function or property (only they can produce blocks that won't affect other declarations)
    2. Check if current position is hidden by this declaration

    O^2 behaviour is removed
2014-10-22 18:18:09 +04:00
Nikolay Krasko
40bd9fbdf3 Refactoring: move functions 2014-10-22 18:18:08 +04:00
Nikolay Krasko
0862eead00 Rename file: JetCodeBlockModificationListener -> KotlinCodeBlockModificationListener 2014-10-22 18:18:07 +04:00
Nikolay Krasko
474bc536d6 Rewrite to Kotlin: JetCodeBlockModificationListener 2014-10-22 18:18:07 +04:00
Nikolay Krasko
7b3d96e9e9 Rewrite to Kotlin: rename file 2014-10-22 18:18:06 +04:00
Nikolay Krasko
6b605ec4f9 Rewrite to kotlin: JetModifiableBlockHelper 2014-10-22 18:18:05 +04:00
Nikolay Krasko
565612bc19 Take all responsibility for updating trackers, stop delegating it to Java-plugin code 2014-10-22 18:18:05 +04:00
Nikolay Krasko
a988415e22 Add file text to assert message 2014-10-22 18:18:04 +04:00
Nikolay Krasko
0844a11549 Make out-of-block test functional 2014-10-22 18:18:03 +04:00
Nikolay Krasko
b58c5f7df4 Don't spam warning when file is empty
IDEA produces such files when class file had been removed from jar but indexes haven't been not fully reconstructed yet.
2014-10-22 18:18:03 +04:00
Natalia Ukhorskaya
40bb8968cc Run J2KConverter tests in webDemo mode 2014-10-22 17:30:48 +04:00
Natalia Ukhorskaya
9e19546ba8 J2K: add default implementation for NullableNotNullManager 2014-10-22 17:30:47 +04:00
Valentin Kipyatkov
82d5e044c7 Corrected test 2014-10-22 17:08:43 +04:00
Valentin Kipyatkov
34d4477a12 Dropped test that cannot work anymore 2014-10-22 17:05:49 +04:00
Valentin Kipyatkov
23c5ad78b5 Regenerated tests 2014-10-22 15:51:28 +04:00
Valentin Kipyatkov
dcfeb5829a Minor 2014-10-22 15:49:13 +04:00
Valentin Kipyatkov
0384e3d323 No filtering by visibility filter twice 2014-10-22 15:49:13 +04:00
Valentin Kipyatkov
1f548875c6 Hopefully fixed KT-4339 Auto-import suggestion doesn't go away for a long time
#KT-4339 Fixed
2014-10-22 15:49:13 +04:00
Valentin Kipyatkov
762dc31e98 More consistent API in psi 2014-10-22 15:49:13 +04:00
Valentin Kipyatkov
4fd417d419 Fixing code completion in function literal parameters
#KT-4047 Fixed
 #KT-5877 Fixed
2014-10-22 15:49:12 +04:00
Valentin Kipyatkov
59b66e7579 Fixed KT-6074 Package facade classes are shown in completion in kotlin files
#KT-6074 Fixed
2014-10-22 15:48:53 +04:00
Valentin Kipyatkov
d8dbc46867 Fixed KT-6075 Qualified name inserted when completing class with class object
#KT-6075 Fixed
2014-10-22 15:48:35 +04:00
Valentin Kipyatkov
3a2a7427e7 Fixed caret position for KT-5906 Smart completion of anonymous object should preselect single method body
#KT-5906 Fixed
2014-10-22 15:48:34 +04:00
Valentin Kipyatkov
7f55c0626f Fixed KT-6033 Smart completion: wrong replacement range by Tab for item with all arguments at once
#KT-6033 Fixed
2014-10-22 15:48:34 +04:00
Valentin Kipyatkov
a84488f59a Fixed KT-5985 Smart completion does not insert comma for constructor of nested data class
#KT-5985 Fixed
2014-10-22 15:48:17 +04:00
Valentin Kipyatkov
f64f08c9b6 Checked that KT-5984 has been fixed already 2014-10-22 15:48:00 +04:00
Valentin Kipyatkov
af883d9165 Ordering items in smart completion for 'it' 2014-10-22 15:47:47 +04:00
Valentin Kipyatkov
f5f5b514d4 Ordering items in smart completion for nullable 2014-10-22 15:47:33 +04:00
Valentin Kipyatkov
4068879d84 Ordering items in smart completion for boolean 2014-10-22 15:47:17 +04:00
Valentin Kipyatkov
9cf50154d2 Ordering items in smart completion for function type 2014-10-22 15:46:56 +04:00
Valentin Kipyatkov
65c30902e7 KT-6028 Smart completion items priority
#KT-6028 Fixed
2014-10-22 15:45:16 +04:00
Valentin Kipyatkov
e6dbfac232 Fixed smart completion of functions with "::"
#KT-6073 Fixed
2014-10-22 15:42:36 +04:00
Valentin Kipyatkov
f2a83cdf29 No need to filter by visibility in LookupElementsCollector anymore 2014-10-22 15:40:21 +04:00
Valentin Kipyatkov
042e446694 Refactored TipsManager to filter by visibility 2014-10-22 15:40:21 +04:00
Valentin Kipyatkov
13d9fd083c Auto-import fix also honors visibility 2014-10-22 15:40:20 +04:00
Valentin Kipyatkov
0a24dca821 Minor refactoring of KotlinIndicesHelper 2014-10-22 15:40:20 +04:00
Valentin Kipyatkov
1f632daf85 Code completion to filter out non-imported declarations by visibility 2014-10-22 15:40:20 +04:00
Valentin Kipyatkov
b6d4de7046 Optimization in smart completion 2014-10-22 15:40:20 +04:00
Valentin Kipyatkov
86a9f47f6c Fixed KT-6056 Smart completion does not filter out inaccessible declarations
#KT-6056
2014-10-22 15:40:20 +04:00
Alexander Udalov
fb5806f5fb Fix inheritance from mutable Java collections
Don't use CodegenUtil#getDeclaredFunctionByRawSignature because it's incorrect
in case of platform types. Instead use JetTypeMapper to find JVM signatures of
methods which are callable on the current class

 #KT-6042 Fixed
2014-10-22 10:51:14 +04:00
Alexander Udalov
07374b5638 Drop temporary hack, enums are comparable now 2014-10-22 10:49:33 +04:00
Alexander Udalov
23c1eea7d8 Disable codegen test on Android
Can't import from enum there because a package directive is appended to the
beginning of the file in Android tests, invalidating import statements
2014-10-22 10:42:24 +04:00
Natalia Ukhorskaya
7200f3cf31 Merge pull request #521 from ronshapiro/patch-1
Correct Android variant compile task name
2014-10-22 10:30:22 +04:00
Andrey Breslav
7ed7f020d3 Generation of ++ and += fixed for platform types 2014-10-22 00:41:20 +04:00
Andrey Breslav
d28c96837e Compilation errors fixed 2014-10-22 00:41:20 +04:00
Andrey Breslav
a14eefcea3 KT-6077 Compiler does not issue error on unsafe access to ArrayList with nullable values
#KT-6077 Fixed
2014-10-22 00:41:20 +04:00
Andrey Breslav
7b89771953 KT-6059 Regression: irrelevant compiler error on trait inheritance (worked in M8)
#KT-6059 Fixed
2014-10-22 00:41:19 +04:00
Andrey Breslav
d9f5bd013b Clean up declarations of runReadAction() etc 2014-10-22 00:41:19 +04:00
Andrey Breslav
9bd3ac26e3 toString() for easier debugging 2014-10-22 00:41:19 +04:00
Andrey Breslav
b5f89c661a DescriptorRenderer can now render flexible types for code (i.e. ft<L, U>) 2014-10-22 00:41:19 +04:00
Andrey Breslav
0e42de4e99 CHECK_TYPES injected through imports 2014-10-22 00:41:19 +04:00
Andrey Breslav
71d9ad5e8b Removing the static import that caused exception on compilation 2014-10-22 00:41:18 +04:00
Andrey Breslav
f06e5581aa Support creating flexible types in tests
Flexible types can not be created in normal user code, but if there's a special classifier `kotlin.internal.flexible.ft` with two type parameters,
its occurrences are replaced by flexible types, e.g. `ft<Int, Int?>` becomes `Int!`
2014-10-22 00:41:18 +04:00
Ron Shapiro
1ab0edb84c Correct Android variant compile task name
Corrects 'compiledebugKotlin' to 'compileDebugKotlin'
2014-10-21 16:40:06 -04:00
Zalim Bashorov
8067a9ad56 Added regression tests for KT-2474 Range lacks reverse() in JavaScript backend
#KT-2474 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov
66519d9973 Added regression tests for KT-1906 Support invoke() convention is js-backend (including classes implementing Function trait)
#KT-1906 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov
f3d9d21757 Added regression tests for KT-3518 Null pointer during null comparison in JS Backend. 2014-10-21 22:46:09 +04:00
Nikolay Krasko
2e3c0505cd Update to EAP 139.144.2 2014-10-21 19:45:27 +04:00
Zalim Bashorov
b3e34cc2b4 Minor: added regression tests for downTo.
Adopted tests from patch attached to KT-2586.
2014-10-21 18:25:17 +04:00
Zalim Bashorov
fedbe26480 Minor: added regression tests for KT-4235
#KT-4235 Obsolete
2014-10-21 18:25:16 +04:00
Zalim Bashorov
335771d580 JS lib: provide Kotlin object as parameter of IIFE. 2014-10-21 14:49:00 +04:00
Zalim Bashorov
98d62283c7 JS lib: simplify DefaultPrimitiveHashSet. 2014-10-21 14:49:00 +04:00
Michael Bogdanov
6eaa6201f0 Test for obsolete KT-6020: Type inference failed on property reference of generic class
#KT-6020 Can't Reproduce
2014-10-21 09:47:17 +04:00
Michael Bogdanov
da20845e9c Support non standart java source root configuration in gradle plugin
#KT-6051 Fixed
2014-10-21 09:46:59 +04:00
Alexander Udalov
3a8ad45dec Append newline to EOF for .txt test data files
Reverts and fixes 102f0d3
2014-10-21 03:18:27 +04:00
Alexander Udalov
6e5647bb67 Append newline at EOF when creating file in JetTestUtils 2014-10-21 03:17:44 +04:00
Alexander Udalov
102f0d3470 Regenerate .txt testData
Add newline to EOF, trim trailing spaces
2014-10-21 00:16:08 +04:00
Alexander Udalov
51fd654802 Regenerate injectors and keyword strings
After recent changes to Printer
2014-10-21 00:16:08 +04:00
Alexander Udalov
f8be39b26b Regenerate tests
After recent changes to Printer and TestGenerator
2014-10-21 00:16:08 +04:00
Alexander Udalov
b9836afb49 Reorder imports in test generator
To make IDEA's Optimize Imports action a no-op on most of the generated tests
2014-10-21 00:16:07 +04:00
Alexander Udalov
bc9aa9e34f Don't output trailing spaces in Printer
Also don't output trailing empty lines in TestGenerator
2014-10-21 00:16:07 +04:00
Alexander Udalov
4d9ef1042d Prohibit 'override' on classes and all modality on objects
#KT-3464 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov
093dedcd85 Minor, don't call Type.getObjectType on array 2014-10-21 00:16:07 +04:00
Alexander Udalov
ae401cac0f Prohibit type parameters for enum classes
#KT-5696 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov
63366042ed Fix incorrect "senseless null in when" on nullable type 2014-10-21 00:16:07 +04:00
Alexander Udalov
fe59dc27b3 Make 'when' on nullable enums exhaustive if 'null' entry is present
#KT-2902 Fixed
2014-10-21 00:16:06 +04:00
Alexander Udalov
91105b8183 Minor, fix some warnings in DeclarationsChecker 2014-10-21 00:16:06 +04:00
Alexander Udalov
c071ac854e Prohibit all modifiers for enum entries
#KT-2679 Fixed
2014-10-21 00:16:06 +04:00
Alexey Tsvetkov
1f87bea78f JS backend: added support for nested labels with the same name
#KT-5891 fixed
2014-10-20 19:51:35 +04:00
Alexey Tsvetkov
09c98226c8 JS backend: added tests for labels 2014-10-20 19:51:35 +04:00
Alexey Tsvetkov
0bc05135d8 JS test minor: renamed InlineTestUtils to DirectiveTestUtils 2014-10-20 19:51:35 +04:00
Alexey Tsvetkov
6d16d06120 JS test: extracted test with ast access and directives 2014-10-20 19:51:34 +04:00
Valentin Kipyatkov
f00823c7bf Fixed NPE 2014-10-20 18:50:37 +04:00
Evgeny Gerashchenko
b9a4ea80c5 Optimized imports. Fixed build. 2014-10-20 17:57:44 +04:00
Valentin Kipyatkov
cb00e729ad Optimization to not optimize imports on completion of class name if we do not insert any import 2014-10-20 14:49:49 +04:00
Svetlana Isakova
68e2e21fb9 Refactoring: inlined 'collectSmartCastReceiverValues' 2014-10-18 11:06:53 +04:00
Svetlana Isakova
4a1a95ea36 Rename: casted -> cast 2014-10-18 11:06:53 +04:00
Svetlana Isakova
595b3ffe23 KT-6026 Exception on instantiating a nested class in an anonymous object
#KT-6026 Fixed
2014-10-18 11:06:53 +04:00
Svetlana Isakova
c0c9552f4c KT-5971 Missing error when fun argument is safe call
#KT-5971 Fixed
2014-10-18 11:06:53 +04:00
Svetlana Isakova
c339df65a9 Small refactoring in CandidateResolver 2014-10-18 11:06:52 +04:00
Svetlana Isakova
a47729c626 KT-5455 Need warning about redundant type cast
#KT-5455 Fixed
2014-10-18 11:06:52 +04:00
Svetlana Isakova
b20327770b KT-5854 Incorrect 'Nested class should be qualified'
#KT-5854 Fixed
2014-10-18 11:06:52 +04:00
Svetlana Isakova
29fa87ee7c Slightly reduce number of candidates in task prioritizer
return only extensions (functions) when we expecting extensions (not all functions);
  for properties it's not that easy: they may have extension function types, and we want to avoid early computing of deferred types
  rename: getNonMembersByName -> getExtensionsByName

Report NO_RECEIVER_ALLOWED for '42.(f)()' where f: () -> Unit in TracingStrategyForInvoke
(we don't store candidates for such 'invoke' functions any more)
2014-10-18 11:06:52 +04:00
Svetlana Isakova
c0eb894bd9 Rename: NO_RECEIVER_ADMITTED -> NO_RECEIVER_ALLOWED 2014-10-18 11:06:51 +04:00
Svetlana Isakova
cd3dc5998f Rewrote CallableDescriptorCollectors to Kotlin 2014-10-18 11:06:51 +04:00
Svetlana Isakova
dfd88b8f24 Rename CallableDescriptorCollectors.java to CallableDescriptorCollectors.kt 2014-10-18 11:06:51 +04:00
Alexander Udalov
6ddc063a76 Regenerate test data on enums
Now they have final equals, hashCode and compareTo
2014-10-17 21:27:24 +04:00
Alexander Udalov
624e507ec2 Make enum classes comparable
#KT-3727 Fixed
2014-10-17 21:27:23 +04:00
Alexander Udalov
02861308bc Add toString() to kotlin.Enum
Overridable because it is in java.lang.Enum
2014-10-17 21:27:23 +04:00
Alexander Udalov
66a7a58313 Prohibit to override equals/hashCode in enums
#KT-5721 Fixed
2014-10-17 21:27:22 +04:00
Alexander Udalov
6ec71b3fd1 Generate lambdas in enum entry super calls
#KT-4423 Fixed
2014-10-17 21:27:22 +04:00
Alexander Udalov
1edaf43051 Fix Double and Float equality/hashCode in data classes
#KT-5818 Fixed
2014-10-17 21:27:22 +04:00
Alexander Udalov
f632a34959 Delete unused JavaSignatureFormatter 2014-10-17 21:27:21 +04:00
Alexander Udalov
d3e3039eb2 Add tests for obsolete "nested class is inaccessible"
#KT-3535 Obsolete
 #KT-3647 Obsolete
 #KT-3731 Obsolete
2014-10-17 21:27:21 +04:00
Alexey Sedunov
0def7d4b4e JetFileReferenceResolver: Stabilize reference order 2014-10-17 17:34:04 +04:00
Alexey Sedunov
80321b610a Use QUALIFIER info in JetFileReferenceResolver 2014-10-17 17:34:02 +04:00
Alexey Sedunov
f3a219f062 Shorten References: Extract common superclass for type- and expression-processing visitors 2014-10-17 17:33:48 +04:00
Alexey Sedunov
f7e947e912 Shorten References: Simplify shortening of qualified expressions 2014-10-17 13:30:19 +04:00
Natalia Ukhorskaya
be73ec2cc9 KotlinEvaluateExpressionTestGenerated:testSimple: add comment 2014-10-17 11:46:25 +04:00
Natalia Ukhorskaya
6bf0152f6d Fix KotlinEvaluateExpressionTestGenerated:testSimple 2014-10-17 10:37:54 +04:00
Denis Zharkov
ec63394121 Check that boxing instruction is simple call
like T.valueOf(unboxType(T))

 #KT-6047 fixed
2014-10-17 01:22:25 +04:00
Michael Nedzelsky
34269e1a3e JS backend: fix KT-6037 (default arguments in simple function with expression as body)
#KT-6037 Fixed
2014-10-17 00:46:05 +04:00
Evgeny Gerashchenko
954a011721 Added incremental cache format versioning. 2014-10-16 22:01:45 +04:00
Evgeny Gerashchenko
0eda00e2df Rearranged code in abstract incremental compilation test. 2014-10-16 22:01:44 +04:00
Evgeny Gerashchenko
f63f1274cd Changed shortcuts for "Show expression type".
Using same shortcuts as in Scala.
2014-10-16 19:17:09 +04:00
Alexey Tsvetkov
5fb5cea4a3 JS inline: fixed bug with simple return inline function, when result is not used.
When function body can be expression
(contains only one statement, and it's return),
 result was saved to resultExpr, not body.

 But when result was not used, resultExpr was not
 used then.

 Fixed by checking, that result is used in first place.
2014-10-16 17:16:10 +04:00
Alexey Tsvetkov
be82d4c661 JS backend: increment counter for fresh names 2014-10-16 17:16:10 +04:00
Alexander Udalov
f0169f4181 Regenerate tests 2014-10-16 17:10:33 +04:00
Alexander Udalov
6698e0ecc9 Add test for outdated smart cast with elvis issue
#KT-5335 Obsolete
2014-10-16 16:38:11 +04:00
Alexander Udalov
6387076efe Uncomment previously failing code in J2K after fixing KT-5343 2014-10-16 16:38:04 +04:00
Alexander Udalov
159878e09d Pass correct outer instance in complex case of inheritance
#KT-5343 Fixed
2014-10-16 16:16:55 +04:00
Alexander Udalov
61674fb3d9 Don't put outer instance twice for anonymous object extending inner
#KT-5343 In Progress
2014-10-16 16:16:54 +04:00
Alexander Udalov
7315146753 Fix and refactor ExpressionCodegen#pushClosureOnStack
- change Closure parameter to ClassDescriptor, load closure in the beginning
- invert and rename boolean parameter, also use it only to prevent pushing
  dispatch receiver (not the extension receiver) onto the stack because the
  only non-trivial usage of it is preceded by manual handling of the dispatch
  (not extension) receiver. This fixes innerOfLocalCaptureExtensionReceiver.kt
2014-10-16 16:16:54 +04:00
Valentin Kipyatkov
79123d6bb6 Minor 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
6b163bca8a Keyword completion uses simple prefix matching only 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
1e5ea703b5 Added a test 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
0da62a8815 Keyword completion: added missing 'out' keyword 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
6dc17e5a03 Minor refactoring in keyword completion 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
96a5e573c3 Fix in keyword completion 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
8e1a89230e Keyword correction: smaller file text 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
f7dc0fca74 Keyword correction: more correct behavior + smaller file text 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
525a1cc3c6 Fixed tests 2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
d65d3b9068 Checked that KT-2795 has been fixed
#KT-2795 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov
9663fac5b1 Checked that KT-2832 has been fixed
#KT-2832 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov
50e1ec9c4f Fixed KT-5809 Code completion after "?." should not include keywords
#KT-5809 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov
549171d043 Completely rewritten keyword completion implementation using another approach
#KT-2816 Fixed
2014-10-16 15:14:21 +04:00
Natalia Ukhorskaya
6a4fe52e51 Fix Android tests 2014-10-16 14:31:57 +04:00
Andrey Breslav
a128b94e2e Typo fixed: "cast", not "casted" 2014-10-16 14:10:14 +04:00
Andrey Breslav
9feebb1dc6 "typedef" replaced with "typeAlias" in the grammar 2014-10-16 14:10:02 +04:00
Nikolay Krasko
4cb276c47f More information about context for assert 2014-10-16 13:01:37 +04:00
Nikolay Krasko
501bb398d4 Update to Idea 139.69.2 2014-10-16 13:01:36 +04:00
Evgeny Gerashchenko
1a3750f31b Stabilized order of static accessors. 2014-10-15 20:38:16 +04:00
Evgeny Gerashchenko
84c7b05781 Stabilized order of methods inherited by delegation. 2014-10-15 20:38:16 +04:00
Evgeny Gerashchenko
db45f4a062 Fixed hot swap when closure captures variables
Stabilized order of synthetic constructor parameters in anonymous class.

 #KT-5440 fixed
2014-10-15 20:33:17 +04:00
Valentin Kipyatkov
afa59a616c More tests 2014-10-15 17:30:33 +04:00
Valentin Kipyatkov
2365db1367 Fixed KT-6011 Smart completion works for argument of wrong method
#KT-6011 Fixed
2014-10-15 17:30:33 +04:00
Alexey Sedunov
b18b888161 PSI Pattern Matching: Fix matching of !!
#KT-6021 Fixed
2014-10-15 15:41:47 +04:00
Alexey Kudravtsev
6f5a2172ac moved more find usages-related stuff to idea-analysis for upsource 2014-10-15 15:11:49 +04:00
Natalia Ukhorskaya
fff8bfff5f Debugger: do not throw exception on getting source position for Kotlin object 2014-10-15 14:09:55 +04:00
Andrey Breslav
3453809b4b Defining flexible type semantic equality through subtyping 2014-10-15 14:07:55 +04:00
Andrey Breslav
f41a8d2c00 Render "<" properly in HTML 2014-10-15 14:07:54 +04:00
Andrey Breslav
2bf6db003a Error message corrected: packages can't be nested any more 2014-10-15 12:22:35 +04:00
Andrey Breslav
391b57077b KT-5976 Parser recovery is poor on object with parameters
#KT-5976 Fixed
2014-10-15 12:22:35 +04:00
Andrey Breslav
d25a858214 "typealias" escaped in DOM API generator 2014-10-15 12:22:33 +04:00
Evgeny Gerashchenko
cb9a55b375 Minor. Storing valOrVar in constructor to avoid bad action text for outdated quick fix. 2014-10-15 11:51:02 +04:00
Evgeny Gerashchenko
fbcfed6757 Fixed EA-57220. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko
b653598df2 Fixed EA-61504. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko
0d17a71ffa Minor. Renamed class. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko
ef93a71e78 Made "Remove val/var from parameter" quick fix local. 2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko
7a6429e35e Removed live templates completion contributor.
LT are added to completion on IDEA side.

Fixed EA-52890.
2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko
745a7333b1 Fixed EA-50672. 2014-10-15 11:51:00 +04:00
Evgeny Gerashchenko
05677e26a4 Fixed EA-54056. 2014-10-15 11:51:00 +04:00
Evgeny Gerashchenko
4fe11f0998 Clarified assertion. Just in case. 2014-10-15 11:51:00 +04:00
Evgeny Gerashchenko
e1cf002c30 Clarified assertion which should be fixed on IDEA side. 2014-10-15 11:51:00 +04:00
Evgeny Gerashchenko
e9880e6787 Clarified assertion for EA-50536. 2014-10-15 11:50:59 +04:00
Evgeny Gerashchenko
a759fc2454 Added test for EA-53340. 2014-10-15 11:50:59 +04:00
Evgeny Gerashchenko
7229df26ab Project settings: navigation to EA problems. 2014-10-15 11:50:59 +04:00
Evgeny Gerashchenko
73f3db5cf8 Clarified assertion for EA-50657. 2014-10-15 11:50:59 +04:00
Natalia Ukhorskaya
a0e518870d Fix Android tests 2014-10-15 09:54:29 +04:00
Natalia Ukhorskaya
0a9adbb777 Do not try to use index in JetPositionManager in dumpMode
EA-58536 Fixed
2014-10-15 09:54:28 +04:00
Valentin Kipyatkov
3b85839bf3 Refactored StatementVisitor to StatementConverter (similar to ExpressionConverter before) + renamed ExpressionVisitor 2014-10-14 21:23:24 +04:00
Valentin Kipyatkov
a84b32af98 KT-5492 J2K: convert field with getter/setter to property
#KT-5492 Fixed
2014-10-14 21:23:24 +04:00
Valentin Kipyatkov
129c592581 J2K converter: refactored code moving code for converting class body into separate class 2014-10-14 21:19:48 +04:00
Valentin Kipyatkov
a7a1227390 Converter should not fail completely if some error occured in the after conversion pass 2014-10-14 21:19:48 +04:00
Valentin Kipyatkov
5008682bef Better diagnostic for Element has no prototype error 2014-10-14 21:19:10 +04:00
Valentin Kipyatkov
0213d37d82 More correct line breaks counting in converter 2014-10-14 21:19:10 +04:00
Valentin Kipyatkov
c8da4d90e9 J2K: minor fix 2014-10-14 21:19:10 +04:00
Valentin Kipyatkov
a08373fec6 Minor code corrections after review 2014-10-14 21:19:10 +04:00
Zalim Bashorov
f0078b5e0f JS lib: export Kotlin object when it possible.
It allows use kotlin.js on node.js without modifications.
2014-10-14 18:02:28 +04:00
Zalim Bashorov
55c19a632a JS lib: introduced different output strategies, and chose them depending of environment.
#KT-2994 Fixed
2014-10-14 18:02:28 +04:00
Pavel V. Talanov
40e1292e9a Do not create junit configuration in dumb mode 2014-10-14 17:39:42 +04:00
Pavel V. Talanov
f3b9ab9329 Minor: Log and create attachment on AssertionError in KotlinSignature line markers 2014-10-14 17:37:12 +04:00
Michael Nedzelsky
e73866040d JS backend: correct hierarchy for collections in kotlin_lib.js, maps.js 2014-10-14 16:46:01 +04:00
Michael Nedzelsky
229c92e6b8 JS backend: add files to jslib_files.xml 2014-10-14 16:45:59 +04:00
Michael Nedzelsky
aa13a67371 JS backend: remove Iterable from FAKE_CLASS list, remove Iterator from StandardClasses 2014-10-14 16:45:57 +04:00
Michael Nedzelsky
edac2dd3bd JS backend: tests for KT-2468 2014-10-14 16:45:54 +04:00
Valentin Kipyatkov
cff0c35987 Checked that KT-3596 is not reproducible 2014-10-14 16:08:17 +04:00
Valentin Kipyatkov
e1a84802f2 Minor 2014-10-14 16:08:17 +04:00
Valentin Kipyatkov
c61ee18c03 Removed some more stuff from ImportInsertHelper 2014-10-14 16:08:17 +04:00
Valentin Kipyatkov
6d69608feb Refactored completion tests to not set/restore auto-complete settings in 2 different places 2014-10-14 16:08:17 +04:00
Valentin Kipyatkov
043c65b1d4 Removed method which is not needed anymore 2014-10-14 16:08:17 +04:00
Valentin Kipyatkov
503a8deef1 Fixed bug in reference shortening + fixed test data for completion tests 2014-10-14 16:08:16 +04:00
Valentin Kipyatkov
d8b962c7f3 Completion: the same universal insertion handler is used for java classes too 2014-10-14 16:08:16 +04:00
Valentin Kipyatkov
38a5b988f0 One more class rename 2014-10-14 16:08:16 +04:00
Valentin Kipyatkov
a5223d8a38 Class renames 2014-10-14 16:08:16 +04:00
Valentin Kipyatkov
f9bf214526 Code completion: avoid duplication of elements for java classes 2014-10-14 15:47:45 +04:00
Valentin Kipyatkov
eabcbb00ab KT-5876 Code completion should never auto-insert item which requires adding import
#KT-5876 Fixed
2014-10-14 15:47:45 +04:00
Valentin Kipyatkov
a124827c4e Fixed KT-5611 Completion doesn't include not imported extensions for implicit receiver
#KT-5611 Fixed
2014-10-14 15:47:44 +04:00
Alexey Kudravtsev
22c80d2694 moved structure view to to idea-analysis to make available in upsource 2014-10-14 15:42:50 +04:00
Nikolay Krasko
c5852152b2 Don't ruin highlighting if there's no descriptor in resolve session
#EA-61683 Fixed
2014-10-14 15:38:27 +04:00
Andrey Breslav
b1e452b568 type unescaped in *.kt files 2014-10-14 13:02:13 +04:00
Andrey Breslav
56d1979d9b File names fixed according to f202ad9f98 2014-10-14 13:02:06 +04:00
Alexey Sedunov
2b43aad4f9 Create From Usage: Fix rendering of nullable types 2014-10-14 01:59:54 +04:00
Alexey Sedunov
ff082be524 File Move: Fix update of extension references. Reuse MoveKotlinTopLevelDeclarationsProcessor 2014-10-14 01:59:53 +04:00
Alexey Sedunov
dc62d167ad Add user-data delegate for non-nullable properties 2014-10-14 01:59:52 +04:00
Alexey Sedunov
0d220c68ea Find Usages: Fix reference check for the case of multiple resolve results 2014-10-14 01:59:51 +04:00
Alexey Sedunov
f0a0df94b5 Create From Usage: Add support of property delegates 2014-10-14 01:59:50 +04:00
Alexey Sedunov
2e6d4b3501 Create From Usage: Support EXPRESSION_EXPECTED_PACKAGE_FOUND diagnostic 2014-10-14 01:59:49 +04:00
Alexey Sedunov
c73c581b11 Call Resolver: Report UNRESOLVED_REFERENCE instead of EXPRESSION_EXPECTED_PACKAGE_FOUND when callee expession is resolved to package 2014-10-14 01:59:48 +04:00
Alexey Sedunov
77a5ddbcd0 Create From Usage: Do not suggest Java classes as receiver type candidates (for now) 2014-10-14 01:59:47 +04:00
Alexey Sedunov
0dafcb6728 Create From Usage: Generate type parameters (if any) for all callable declarations 2014-10-14 01:59:46 +04:00
Alexey Sedunov
9206b571f4 Create From Usage: Always try to shorten return type reference if there is one 2014-10-14 01:59:45 +04:00
Alexey Sedunov
497e4fab79 Create From Usage: Generate Unit-typed declaration if result is unused
#KT-5903 Fixed
2014-10-14 01:59:44 +04:00
Alexey Sedunov
a3a0edca58 Pseudocode: Drop CompilationErrorInstruction 2014-10-14 01:59:43 +04:00
Alexey Sedunov
a56c54371e Pseudocode: Generate instructions for unresolved array assignments 2014-10-14 01:59:42 +04:00
Nikolay Krasko
b06b3ab4c4 Insert empty lines after functions and properties (KT-4002)
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
Nikolay Krasko
22d33a5afa Data class copy method invocation gives errors in IDE when some optional parameters specified (KT-5975)
#KT-5975 Fixed
2014-10-14 00:39:22 +04:00
Zalim Bashorov
f202ad9f98 Stdlib: run all stdlib tests with JS backend(as possible). 2014-10-13 21:25:56 +04:00
Zalim Bashorov
f20ee6df4b JS backend: fixes in ranges:
* map all number ranges and progressions;
* add missed hashCode and static EMPTY to Range implementations;
* add missed hashCode and equals to Progression implementations;
* fix type of start and end in CharRange and CharProgression.
2014-10-13 21:25:56 +04:00
Zalim Bashorov
8bd6acec5d JS stdlib: drop wrong annotations in javautilCollectionsCode.kt and fix Collections.reverse. 2014-10-13 21:25:56 +04:00
Zalim Bashorov
e54c838482 JS backend: temporary fix for CharSequence.get 2014-10-13 21:25:56 +04:00
Zalim Bashorov
64044800c9 JS stdlib: fix bug with using "__proto__" as element of DefaultPrimitiveHashSet. 2014-10-13 21:25:56 +04:00
Zalim Bashorov
49e2262ca7 JS tests: fixed waiting to finish qunit tests in SeleniumTest. 2014-10-13 21:25:56 +04:00
Zalim Bashorov
2d634931f6 JS backend: use 0 as init value when calculating hashCode in data classes as in JVM backend. 2014-10-13 21:25:56 +04:00
Zalim Bashorov
ae39524a95 JS backend: compile primitive iterators from builtins as part of stdlib. 2014-10-13 21:25:55 +04:00
Zalim Bashorov
ecb955f5b3 Stdlib: split OrderingJVM.kt to common and jvm parts 2014-10-13 21:25:55 +04:00
Zalim Bashorov
88f9621b45 Minor: update junit to 4.11 2014-10-13 21:25:55 +04:00
Zalim Bashorov
1b2aa205ec Introduce assertNotEquals 2014-10-13 21:25:55 +04:00
Zalim Bashorov
b086a2b7a5 Extract some closure-compiler arguments to separate property and change warning level to "default" 2014-10-13 21:25:55 +04:00
Pavel V. Talanov
c1f8db5962 Fix MutableDiagnosticsTest#testCaching()
Sadly relying on implementation details
2014-10-13 19:48:57 +04:00
Michael Nedzelsky
df8232c555 JS backend: minor: refactor ClassTranslator 2014-10-13 19:25:06 +04:00
Michael Nedzelsky
ab6eff5a5b JS backend: minor: remove ArrayList(Collection) from bridges/_commonFiles/javautil.kt 2014-10-13 19:25:02 +04:00
Michael Nedzelsky
aa3d0fe1d7 minor: rename TargetBackend enum values 2014-10-13 19:24:59 +04:00
Alexey Kudravtsev
869487ac82 moved to idea-analysis to make available in upsource 2014-10-13 18:33:37 +04:00
Alexey Kudravtsev
ef34875061 added sources to kotlin-upsource 2014-10-13 18:30:47 +04:00
Michael Nedzelsky
a63bbf317d JS backend: translate 0L, 1L and -1L to Kotlin.Long constants 2014-10-13 17:51:48 +04:00
Michael Nedzelsky
e5c77d1242 JS backend: minor: move constant to Namer 2014-10-13 17:51:45 +04:00
Pavel V. Talanov
ee33c09714 Android: navigate to resource
Implementation mostly copied from android plugin
 #KT-5596 Fixed
2014-10-13 16:46:55 +04:00
Andrey Breslav
838ef11f1c Test data fixed: after "type" is no longer a keyword 2014-10-13 16:42:03 +04:00
Andrey Breslav
34a98f2563 Minor. Compilation fixed 2014-10-13 16:02:39 +04:00
Andrey Breslav
f202a5c31d KT-4524 Generate implementations fails on functions with default values
#KT-4524 Fixed
2014-10-13 15:43:03 +04:00
Andrey Breslav
cc68ed894b "type" is not a keyword anymore ("typealias" reserved instead) 2014-10-13 15:41:13 +04:00
Andrey Breslav
b20439027c Advancing ABI version
Related changes:
 - serialization of flexible types supported
 - Intrinsics.checkExpressionValueIsNotNull() added
2014-10-13 15:38:23 +04:00
Andrey Breslav
4a132599fd getAllOverriddenDescriptors() moved to DescriptorUtils 2014-10-13 15:38:22 +04:00
Andrey Breslav
f7ccfafd1c Minor. [platformStatic] used 2014-10-13 15:38:21 +04:00
Andrey Breslav
f1675a9162 Minor. Getters replaced by properties 2014-10-13 15:38:21 +04:00
Andrey Breslav
8e8f41e228 Minor. Improved usability of CustomTypeVariable API 2014-10-13 15:38:20 +04:00
Andrey Breslav
070a7d4d72 Serialization of flexible types supported 2014-10-13 15:38:20 +04:00
Andrey Breslav
e76df4db11 Rendering fixed across the idea module 2014-10-13 15:38:19 +04:00
Andrey Breslav
9fb09e62af toString() on nullables fixed 2014-10-13 15:38:19 +04:00
Andrey Breslav
619df3a53e Use semantic equality in Create From Usage 2014-10-13 15:38:18 +04:00
Andrey Breslav
8eb57f5a75 Parser recovers on platform types notation:
- Foo!
- Array<(out) Foo>!
- (Mutable)List<Foo>!
2014-10-13 15:38:18 +04:00
Andrey Breslav
21d31a1a4f An option to enable assertions in the Bytecode toolwindow 2014-10-13 15:38:17 +04:00
Andrey Breslav
1214bef3e8 Always create a missing txt file, even if the test itself fails before 2014-10-13 15:38:17 +04:00
Andrey Breslav
890ef7a8ae Choosing a best fit when getting multiple exact bounds for a type variable 2014-10-13 15:38:16 +04:00
Andrey Breslav
d74b27335e RemoveExplicitTypeArguments fixed: platform types approximated before comparison 2014-10-13 15:38:16 +04:00
Andrey Breslav
94f4ddb762 IDE TypeUtils moved to idea-analysis 2014-10-13 15:38:15 +04:00
Andrey Breslav
e418a763db Fix JetType.equals(): flexible types are not equal to non-flexible ones, when we store them in a HashSet 2014-10-13 15:38:15 +04:00
Andrey Breslav
5be4dda58b Unit obtained through a generic substitution should not be mapped to VOID 2014-10-13 15:38:14 +04:00
Andrey Breslav
f5aed51fd0 TypeUtils.containsSpecialType() fixed to account for flexible types 2014-10-13 15:38:14 +04:00
Andrey Breslav
a737352b5d Assertions when approximating platform types in delegation by expression 2014-10-13 15:38:13 +04:00
Andrey Breslav
f1c66fa6b0 Assertions on approximation of platform types to non-null types
- for most expressions (ExpressionCodegen.genQualified)
2014-10-13 15:38:13 +04:00
Andrey Breslav
3d5d3e00e3 Minor. @TestDataFlie added for naviagtion 2014-10-13 15:38:12 +04:00
Andrey Breslav
57bffaf8fa All JetType subinterfaces migrated to capabilities 2014-10-13 15:38:12 +04:00
Andrey Breslav
013dd7261e Extensible specificity expressed as a type capability 2014-10-13 15:38:11 +04:00
Andrey Breslav
4b24c96cca Type capabilities introduced to facilitate extensibility of the type representation
This approach: returning adapter objects by class is crucial, because it is delegation-proof.
Simply extending interfaces in particular implementations fails when we wrap types in DelegatedType subclasses
2014-10-13 15:38:11 +04:00
Andrey Breslav
6564231040 Descriptor test data for diagnostic tests fixed 2014-10-13 15:38:10 +04:00
Andrey Breslav
25efd6684f Missing test data generated 2014-10-13 15:38:10 +04:00
Andrey Breslav
52ed640a2b Visibility fixed 2014-10-13 15:38:09 +04:00
Andrey Breslav
aea978cf90 Do not render type arguments as outermost 2014-10-13 15:38:09 +04:00
Andrey Breslav
fd3f929a11 Guessing class ids for external annotations 2014-10-13 15:38:08 +04:00
Andrey Breslav
fe2fb60daf Approximating flexible types in descriptor renderer 2014-10-13 15:38:07 +04:00
Andrey Breslav
40932f84c8 isFlexible() turned into a method in JetType
Otherwise delegated types were never recognized as flexible
2014-10-13 15:38:07 +04:00
Andrey Breslav
91b0b83ec3 Java declaration annotations are treated as type annotations
This is needed, for example, to approximate flexible types correctly when rendering them in the code
2014-10-13 15:38:06 +04:00
Andrey Breslav
bd21e487fc Unused class removed 2014-10-13 15:38:06 +04:00
Andrey Breslav
d25a76e044 Disabling @KotlinSignature checks in PLATFORM_TYPES mode 2014-10-13 15:38:05 +04:00
Andrey Breslav
ea3215b361 Massive test data update for compiledJava 2014-10-13 15:38:05 +04:00
Andrey Breslav
0b6a4df4f4 The case of Integer.getInteger("1", 2) fixed (was: OVERLOAD_RESOLUTION_AMBIGUITY) 2014-10-13 15:38:04 +04:00
Andrey Breslav
837353d9fd Skip alternative signatures in PLATFORM_TYPES mode, but use parameter names 2014-10-13 15:38:03 +04:00
Andrey Breslav
50aa918791 Failing test for type inference 2014-10-13 15:38:02 +04:00
Andrey Breslav
f5cc3e1a92 Use TypeUtils.isNullableType() in codegen 2014-10-13 15:38:02 +04:00
Andrey Breslav
1dbfe5483a Fix isNullableType() to always consider flexible types, even if they contain type parameters 2014-10-13 15:38:01 +04:00
Andrey Breslav
107480657a Spec document added 2014-10-13 15:38:00 +04:00
Andrey Breslav
d1214d2368 Another TypeUtils.isNullableType() introduced 2014-10-13 15:38:00 +04:00
Andrey Breslav
12d18533e8 Recursion depth in CommonSupertypes is bounded by maxDepth + 3 2014-10-13 15:37:59 +04:00
Andrey Breslav
364a7a6574 Do not overuse makeNullableAsSpecified in TypeSubstitutor 2014-10-13 15:37:59 +04:00
Andrey Breslav
920769d36d Fold standard flexible types in shortNames mode 2014-10-13 15:37:58 +04:00
Andrey Breslav
220c360081 Null-aware types introduced
Flexible types should drive their own conversions to nullable/not-null
2014-10-13 15:37:58 +04:00
Andrey Breslav
969beb7898 Account for substitutions of one variable for another (it must remain a variable) 2014-10-13 15:37:57 +04:00
Andrey Breslav
bdbd469aad Do not wrap flexible types into Nullable/NotNull types 2014-10-13 15:37:57 +04:00
Andrey Breslav
141e731f39 Constraint Foo on T! should be turned into Foo! on T 2014-10-13 15:37:56 +04:00
Andrey Breslav
6cb1d2e3f7 Lower bound must be a subtype of the upper bound.
The change in CommonSupertypes:

 We used to say that commonSupertype(Inv<A>, Inv<B>) = Inv<in Intersect(A, B)). This is counter-intuitive, should be Inv<out commonSupertype(A, B)>
2014-10-13 15:37:56 +04:00
Andrey Breslav
e232697da1 CommonSupertypes support for flexible types 2014-10-13 15:37:55 +04:00
Andrey Breslav
583694a450 Flexible types for primitive arrays 2014-10-13 15:37:54 +04:00
Andrey Breslav
8134d097e3 Another portion of test data fixed 2014-10-13 15:37:54 +04:00
Andrey Breslav
a3d9ff65aa Wrong "USELESS_ELVIS" fixed 2014-10-13 15:37:54 +04:00
Andrey Breslav
c3c72fc528 Switching off propagation of types and KotlinSignatures for platform types 2014-10-13 15:37:53 +04:00
Andrey Breslav
fefadaa171 Rendering platform type for java.util.Map.Entry as kotlin.(Mutable)Map.(Mutable)Entry 2014-10-13 15:37:53 +04:00
Andrey Breslav
dd2e95b3bc Substitution implemented for flexible occurrences of Java type parameters 2014-10-13 15:37:52 +04:00
Andrey Breslav
bf53222bd9 Flexible types in SAM conversions 2014-10-13 15:37:51 +04:00
Andrey Breslav
2529bb24d1 Don't create flexible types for ".class" expressions in annotation arguments 2014-10-13 15:37:51 +04:00
Andrey Breslav
c699fa96d9 Make not-null compile-time constants non-flexible 2014-10-13 15:37:51 +04:00
Andrey Breslav
867956729b Don't create platform types for annotation members 2014-10-13 15:37:50 +04:00
Andrey Breslav
bdf7e924b5 Rendering flexible types with "!" and optional parts 2014-10-13 15:37:50 +04:00
Andrey Breslav
c2a03d60f0 Better support for forced resolve while debugging 2014-10-13 15:37:49 +04:00
Andrey Breslav
b4f26bde44 Support forced resolve for lazy flexible types 2014-10-13 15:37:49 +04:00
Andrey Breslav
549df3c0eb Equality for flexible types 2014-10-13 15:37:48 +04:00
Andrey Breslav
a39d2bc24f Failing test isolated 2014-10-13 15:37:48 +04:00
Andrey Breslav
b665a1998b Supertypes should not be flexible 2014-10-13 15:37:47 +04:00
Andrey Breslav
0cbbb6a0db Test data fixed 2014-10-13 15:37:47 +04:00
Andrey Breslav
195274370f Fix the case of safe call and elvis operators: flexible types may be nullable 2014-10-13 15:37:46 +04:00
Andrey Breslav
45c1fa3741 Support flexible types in DataFlowValues 2014-10-13 15:37:46 +04:00
Andrey Breslav
f7de0e274c TypeSubstitutor respects flexible types 2014-10-13 15:37:45 +04:00
Andrey Breslav
f11095b1d0 Minor. DelegatingFlexibleType moved to top level 2014-10-13 15:37:45 +04:00
Andrey Breslav
687fdce30a Support flexible types in TypeCheckingProcedure 2014-10-13 15:37:44 +04:00
Andrey Breslav
a2f8def1e8 Tests for Java method calls 2014-10-13 15:37:44 +04:00
Andrey Breslav
6c50e1b237 Render flexible types in debug mode 2014-10-13 15:37:43 +04:00
Andrey Breslav
90e4b09272 Fix compilation errors 2014-10-13 15:37:43 +04:00
Andrey Breslav
e268e74fa3 Flexible types added to JDR
So far they act exactly like inflexible ones
2014-10-13 15:37:42 +04:00
Andrey Breslav
ad8de070fa A flag in the JDR to govern usage of platform types 2014-10-13 15:37:42 +04:00
Michael Bogdanov
a88e9666e4 As designed KT-5930: Wrong execution order in case of extension function
#KT-5930 As Designed
2014-10-13 11:31:15 +04:00
Michael Bogdanov
5abc2dac4e Generate labeled statements as statements 2014-10-13 11:31:15 +04:00
Michael Bogdanov
9d72036ba5 Fix for KT-5995: Labeled val causes an exception from the back-end
#KT-5995 Fixed
2014-10-13 11:30:28 +04:00
Michael Bogdanov
860544d299 Obsolete KT-5685: VerifyError: Bad local variable type for class with inline method and optional parameters
#KT-5685 Obsolete
2014-10-11 13:53:43 +04:00
Michael Bogdanov
605c9f48b4 Added inline annotation check on local funs 2014-10-11 13:53:43 +04:00
Michael Bogdanov
2a1520228e Support inheritance from java 8 interfaces
#KT-5969 In Progress
2014-10-11 13:53:43 +04:00
Andrey Breslav
3613fb746c Readme.md: Broken links fixed 2014-10-10 23:03:38 +04:00
Pavel V. Talanov
ebbd08a546 Respect resolve scope when adapting java types completion
Do not suggest classes from unrelated modules
2014-10-10 21:14:30 +04:00
Pavel V. Talanov
b6d76157c4 Respect source/test roots when building scope in CompletionSession 2014-10-10 21:14:29 +04:00
Pavel V. Talanov
2ded7bae73 Test abstract override in enum class 2014-10-10 18:19:57 +04:00
Pavel V. Talanov
b2c288b62a Test super calls in enum literals 2014-10-10 18:12:56 +04:00
Pavel V. Talanov
8e6618920d Minor: rename test data file 2014-10-10 18:05:36 +04:00
Pavel V. Talanov
bb5998048f Test code generation for enum deriving from a trait 2014-10-10 17:43:33 +04:00
Pavel V. Talanov
c04b52561e "abstract" modifier on enum class is an error
#KT-3454 Fixed
2014-10-10 17:43:32 +04:00
Pavel V. Talanov
6eae62c235 Do not report NON_FINAL_MEMBER_IN_FINAL_CLASS on open members in enum classes 2014-10-10 17:43:32 +04:00
Pavel V. Talanov
4136c80358 Do not report ABSTRACT_MEMBER_NOT_IMPLEMENTED on enum classes
Partial fix of KT-3454
2014-10-10 17:43:31 +04:00
Pavel V. Talanov
e703de5796 Minor: add diagnostic test for entries in enum with abstract members 2014-10-10 17:43:31 +04:00
Michael Nedzelsky
12e76f3d04 JS backend: test for KT-2901: nullable type in string template 2014-10-10 17:04:18 +04:00
Pavel V. Talanov
e7cd4bf6cf Implement modificationTracker for CompositeDiagnostics
#KT-5981 Fixed
2014-10-10 16:46:05 +04:00
Evgeny Gerashchenko
75853e3aad Saving only class files into incremental cache.
Fixed exception for JS modules.
2014-10-10 16:24:03 +04:00
Evgeny Gerashchenko
fa70192f75 Added test for EA-49318. 2014-10-10 16:00:27 +04:00
Evgeny Gerashchenko
ad1b460bea Clarified assert for EA-45243. 2014-10-10 16:00:26 +04:00
Evgeny Gerashchenko
27238a470a Minor. Removed redundant cast. 2014-10-10 16:00:26 +04:00
Evgeny Gerashchenko
9829fd83a0 Fixed EA-45529. 2014-10-10 16:00:26 +04:00
Evgeny Gerashchenko
0137b7ec3c Clarified assertion for EA-45529. 2014-10-10 16:00:25 +04:00
Evgeny Gerashchenko
38514673bf Clarified assertion for EA-53060. 2014-10-10 16:00:25 +04:00
Evgeny Gerashchenko
556b76d9a4 Made it possible to patch IDEA by adding class to idea_runner module.
See confluence page for details: http://confluence.jetbrains.com/display/JET/How+to+patch+IDEA+for+Kotlin
2014-10-10 16:00:24 +04:00
Nikolay Krasko
9cdea0479c Update to IDEA 139.1.20 2014-10-10 12:56:53 +04:00
Pavel V. Talanov
2fc2c73374 Test mutable diagnostics 2014-10-09 20:32:56 +04:00
Pavel V. Talanov
19ec9f9eda Introduce MutableDiagnosticsWithSuppression and use it in BindingTrace implementations
Exposes the fact that Diagnostics is in fact a mutable entity with readonly API
Update readonly view when diagnostics are modified
Allows to avoid recreating DiagnosticsWithSuppression every time getDiagnostics() is called in DelegatingBindingTrace
  which led to severe performance issues for large files with lots of diagnostics
2014-10-09 20:32:55 +04:00
Pavel V. Talanov
d7c06f0527 Default implementations for some functions in Diagnostics 2014-10-09 20:32:54 +04:00
Pavel V. Talanov
b98f000c29 Prevent external change in SimpleDiagnostics and convert to Kotlin 2014-10-09 20:32:54 +04:00
Pavel V. Talanov
ec077d5f8f Minor: rename DiagnosticHolder -> DiagnosticSink 2014-10-09 20:32:53 +04:00
Michael Nedzelsky
e5bbc2a0d8 JS backend: support for Throwable.getMessage 2014-10-09 19:32:00 +04:00
Alexey Tsvetkov
5649797461 JS backend: catch fix refactoring 2014-10-09 19:31:57 +04:00
Michael Nedzelsky
787b8f72c5 JS backend: fix KT-5603 (Multiple catch): support for multiply catch clauses 2014-10-09 19:31:54 +04:00
Michael Nedzelsky
b15963d3fb JS backend: fix KT-5603 (Multiple catch): add tests 2014-10-09 19:31:51 +04:00
Natalia Ukhorskaya
1ce3ddaa82 Minor add message for class cast
EA-59672
2014-10-09 19:18:25 +04:00
Natalia Ukhorskaya
da96385f00 J2K: initialize NotNullManager 2014-10-09 19:18:23 +04:00
Natalia Ukhorskaya
141c88aaa9 Make ReferenceSearcher a parameter for JavaToKotlinConverter 2014-10-09 19:18:21 +04:00
Natalia Ukhorskaya
db86ade5fb Evaluate expression: add readAction during file analysis 2014-10-09 19:17:24 +04:00
Natalia Ukhorskaya
1055aa86aa Debugger tests: do not check breakpoint line and file extension for JDK classes 2014-10-09 19:17:23 +04:00
Michael Bogdanov
1944f75802 Skip default methods on single abstract method search
Fix for KT-4886: SAM conversion doesn't work for interfaces with default methods

  #KT-4886 Fixed
2014-10-09 17:15:46 +04:00
Nikolay Krasko
062dda89ea Add dumb mode for building run configuration
#EA-61442
2014-10-09 15:21:15 +04:00
Natalia Ukhorskaya
f9f4aefb2a Evaluate expression: check for errors before running extract function for code fragment 2014-10-09 13:48:39 +04:00
Natalia Ukhorskaya
410d5deb1c Evaluate expression: add runAction EA-61399 Fixed 2014-10-09 13:48:37 +04:00
Natalia Ukhorskaya
e613e3523e Minor: fix warnings 2014-10-09 13:46:23 +04:00
Natalia Ukhorskaya
e125375654 Evaluate expression: change message when extracted function is null 2014-10-09 13:46:22 +04:00
Natalia Ukhorskaya
f5c08c4868 Evaluate expression: add message for multiple output error from extract function 2014-10-09 13:46:21 +04:00
Natalia Ukhorskaya
f45baa9dbe Fix EA-60953 - NPE: CodeInsightUtils.findElementsOfClassInRange 2014-10-09 13:46:20 +04:00
Michael Bogdanov
d4307c69d2 Fix for KT-4301: Too many StringBuilders on string concatenations
#KT-4301 Fixed
2014-10-09 12:23:06 +04:00
Michael Bogdanov
4a078c1143 Temporary disable local fun inlining (it's not supported now) 2014-10-09 10:38:14 +04:00
Nikolay Krasko
ecb293bd6c Add context information about assert (EA-60850) 2014-10-09 02:28:48 +04:00
Nikolay Krasko
4b197aafa4 Abandon storing BindingContext in JetFunctionPsiElementCellRenderer
#EA-61357 Fixed
2014-10-09 02:28:47 +04:00
Nikolay Krasko
1143db85f1 Refactoring: move method to utility and don't create intermediate kotlin scope 2014-10-09 02:28:47 +04:00
Nikolay Krasko
3ea2d420b2 Refactoring: rename methods 2014-10-09 02:28:46 +04:00
Nikolay Krasko
6c9538b040 Share check "is file under source roots" 2014-10-09 02:28:45 +04:00
Nikolay Krasko
3e4888afa7 Refactoring: remove usages with default value from overload 2014-10-09 02:28:45 +04:00
Nikolay Krasko
7bf84ec84c Refactoring: rename method and hide information about gradle 2014-10-09 02:28:44 +04:00
Nikolay Krasko
a7fbc1bc6c Always check kotlin file is in correct source root for gradle modules 2014-10-09 02:28:44 +04:00
Nikolay Krasko
a29773597e Convert to Kotlin 2014-10-09 02:28:43 +04:00
Nikolay Krasko
b172709008 Refactoring: move file 2014-10-09 02:28:42 +04:00
Nikolay Krasko
e85b36cdff Store resolution context for light classes to prevent back-end fail 2014-10-09 02:28:41 +04:00
Nikolay Krasko
ad6a0c4b72 Add information about declaration 2014-10-09 02:28:41 +04:00
Nikolay Krasko
50265c311e Don't do resolve for files not under sorce roots 2014-10-09 02:28:40 +04:00
Evgeny Gerashchenko
181b10103f Incremental compilation checkbox in settings.
Old setting via VM option is automatically migrated to "new style".
2014-10-08 20:09:18 +04:00
Evgeny Gerashchenko
514a41ac77 Minor. Moved dialog title from code to GUI settings. 2014-10-08 17:22:31 +04:00
Evgeny Gerashchenko
e554c9f53d Converted CompilerSettings to Kotlin. 2014-10-08 17:22:31 +04:00
Zalim Bashorov
c7e0e3d391 Replace js.translator with js.frontend in dependencies of idea module and remove js.translator from KotlinPlugin artifact. 2014-10-08 15:55:06 +04:00
Zalim Bashorov
401d9ac831 Minor: add js.inliner sources to kotlin-for-upsource-sources.jar 2014-10-08 15:54:49 +04:00
Valentin Kipyatkov
05aaea48e9 Added API in PSI to add/remove modifiers and refactored quickfixes to use it 2014-10-08 15:41:48 +04:00
Valentin Kipyatkov
12b7d218b7 Simplified quickfix code 2014-10-08 15:41:48 +04:00
Valentin Kipyatkov
93efcd637e JetParameter made JetCallableDeclaration 2014-10-08 15:41:47 +04:00
Valentin Kipyatkov
852fc8bc5d More renames of TypeRef to TypeReference 2014-10-08 15:41:47 +04:00
Valentin Kipyatkov
31ebee81f0 JetVariableDeclaration made JetCallableDeclaration and renamed getTypeRef/setTypeRef, getReturnTypeRef/setReturnTypeRef to getTypeReference/setTypeReference 2014-10-08 15:41:47 +04:00
Valentin Kipyatkov
c42b7b1780 Minor refactorings in ChangeMemberFunctionSignatureFix 2014-10-08 15:41:47 +04:00
Valentin Kipyatkov
b26e6665b0 JetChangeFunctionSignatureAction made nested class of quickfix class (and it does not need to be QuestionAction!) 2014-10-08 15:41:47 +04:00
Valentin Kipyatkov
61221382b5 Inlined CodeInsightUtils.createFunctionSignatureStringFromDescriptor() 2014-10-08 15:41:46 +04:00
Valentin Kipyatkov
b5722c9470 More correct code for adding type specification to function declaration with no parameter list 2014-10-08 15:41:46 +04:00
Valentin Kipyatkov
cc3ca57b75 Minor code editings 2014-10-08 15:41:46 +04:00
Michael Bogdanov
41c4c3befd Fix test data for KT-3285 2014-10-08 09:34:50 +04:00
nik
11d02e5485 use standard UnsupportedOperationException instead of NotImplementedException from internal packages 2014-10-07 20:57:47 +04:00
Evgeny Gerashchenko
b80f82dffd Fixed filename case. 2014-10-07 20:57:05 +04:00
Pavel V. Talanov
33cdefffe3 Do not log ProcessCanceledException in copy paste reference processor
It is rethrown and leads to inability to copy code

 #KT-5426
2014-10-07 19:28:49 +04:00
Michael Bogdanov
f8052817a8 Rollback some changes in MutableClosure 2014-10-07 18:43:29 +04:00
Ilya Ryzhenkov
759e42188b Update TeamCity links to https, replace link to confluence with link to kotlinlang.org. 2014-10-07 17:59:02 +04:00
Evgeny Gerashchenko
b062548392 Expanded and simplified test for generating bridges in sam conversions. 2014-10-07 17:48:17 +04:00
Ilya Ryzhenkov
72f96cd55c Generate bridges when creating SAM wrapper not from closure. 2014-10-07 17:48:17 +04:00
Michael Bogdanov
6bcb2e9001 Temporary fix for KT-5912
#KT-5912 Fixed
2014-10-07 17:48:17 +04:00
Michael Bogdanov
6b336be10c Obsolete KT-1776: Can't resolve members of auto-casted "this" in extension without typing "this" explicitly
#KT-1776 Obsolete
2014-10-07 17:21:11 +04:00
Michael Bogdanov
278e682595 Obsolete KT-3285: "A receiver of type ... is required" when using extension functions
#KT-5467 Obsolete
2014-10-07 17:21:11 +04:00
Michael Bogdanov
bb3f1f1fb7 Fix for KT-5467: JVM codegen doesn't support capture of many extension receivers
#KT-5467 Fixed
2014-10-07 17:21:10 +04:00
Michael Bogdanov
c3cfe33b64 Fix for KT-5495: Support method implementations in local traits
#KT-5495 Fixed
2014-10-07 17:21:10 +04:00
Michael Bogdanov
212d3da950 Fix for KT-5937: Receiver of javaClass-property hasn't been generated
#KT-5937 Fixed
2014-10-07 17:21:10 +04:00
Pavel V. Talanov
1e9718f55b Do not try to copy references in dumb mode
#KT-4766 Fixed
2014-10-07 16:43:32 +04:00
Zalim Bashorov
23fa0ba6ab Refactoring kotlin-maven-plugin:
* cleanup KotlinCompileMojoBase moved JVM specific things to KotlinCompileMojo;
* add support noInline in JS.
2014-10-07 16:32:07 +04:00
Zalim Bashorov
d986b0e565 Ant buildtools: added base class for Kotlin compiler ant tasks.
As side effect:
 - used cli compiler in both ant tasks.
 - got the ability to use custom args in JS ant task too.
2014-10-07 16:32:07 +04:00
Nikolay Krasko
dc97cdb51c Fix test 2014-10-07 13:34:55 +04:00
Natalia Ukhorskaya
1904955c82 Android support: implement extension for OutputParser 2014-10-07 12:15:52 +04:00
Natalia Ukhorskaya
824d79c934 Android-support: implement OutputParser 2014-10-07 12:15:52 +04:00
Natalia Ukhorskaya
ffe8ae3840 kotlin-gradle-plugin: change output format 2014-10-07 12:15:51 +04:00
Natalia Ukhorskaya
dd0642e0fc Add module for kotlin-android-plugin and optional dependency on android plugin 2014-10-07 12:15:50 +04:00
Michael Bogdanov
d0d207f387 Fix for KT-3584: Wrong bytecode generated for local class with default parameters and captured local val
#KT-3584 Fixed
2014-10-07 10:13:53 +04:00
Michael Bogdanov
989cae9f1f Fix for KT-4357: Compiler error with infix call to Array.get
#KT-4357 Fixed
2014-10-07 10:13:53 +04:00
Michael Bogdanov
7be48c7336 Support move on depth 2 2014-10-07 10:13:52 +04:00
Michael Bogdanov
e6c98078b3 Fixes for KT-4733 UnsupportedOperationException: don't know how to move type J to top of stack; KT-3430 VerifyError on a safe call to a primitive value
#KT-4733 Fixed
  #KT-3430 Fixed
2014-10-07 10:13:52 +04:00
Michael Nedzelsky
8cafea9f5a JS backend: add generateTraitMethods into ClassTranslator 2014-10-07 08:37:35 +04:00
Michael Nedzelsky
6d1b89bba3 JS backend: support for bridge methods 2014-10-07 08:37:27 +04:00
Michael Nedzelsky
541786a4db JS backend: extract generateDelegateCall from DelegationTranslator into utils 2014-10-07 08:37:23 +04:00
Michael Nedzelsky
df15e4767b extract getTraitMethods from ImplementationBodyGen to CodegenUtil 2014-10-07 08:37:20 +04:00
Michael Nedzelsky
0c3a7a9d99 add more tests for bridge methods (fake override) 2014-10-07 08:37:18 +04:00
Michael Nedzelsky
2db1d128a0 JS backend: add ArrayList(Collection) into javautilCode.kt 2014-10-07 08:37:01 +04:00
Michael Nedzelsky
1e02064a5b JS backend: add javauitl.kt to bridges/_commonFiles 2014-10-07 08:36:54 +04:00
Michael Nedzelsky
04d8960a3d JS backend: add BridgeTestGenerated 2014-10-07 08:36:50 +04:00
Michael Nedzelsky
0dd17535d6 JS backend: add TARGET_BACKEND: ONLY_JVM for some tests for bridge methods 2014-10-07 08:36:46 +04:00
Michael Nedzelsky
bdc4d14f33 JS backend: improve test generator, support for backend header in test files 2014-10-07 08:36:43 +04:00
Michael Nedzelsky
03f673d6cf JS backend: add NotNull and Nullable annotations 2014-10-07 08:36:27 +04:00
Michael Nedzelsky
6f1d362917 JS backend: add getPackageName to BasicTest, checkBlackBox to SingleFileTranslationTest 2014-10-07 08:36:22 +04:00
Michael Nedzelsky
b84e5969e2 JS backend: fix get mangling name for generic methods with multiply upper bounds 2014-10-07 08:36:18 +04:00
Zalim Bashorov
9fabdf4587 JS backend: mangling functions for extension properties. 2014-10-06 23:18:54 +04:00
Zalim Bashorov
9b04e3e3fe JS backend: use all generic parameters in mangling 2014-10-06 23:18:54 +04:00
Zalim Bashorov
10a9c0a434 JS backend: move mangling functions to separate util class. 2014-10-06 23:18:53 +04:00
Zalim Bashorov
b5ee5877ce JS backend: kotlin_lib_compiled -> stdlib. 2014-10-06 23:18:53 +04:00
Zalim Bashorov
eec4bc7e04 Minor: fix compilation in IDEA 2014-10-06 23:18:53 +04:00
Zalim Bashorov
8f6b12d296 Fixed maven build 2014-10-06 23:18:53 +04:00
Zalim Bashorov
5a63e34c19 JS tests: fix testData files 2014-10-06 23:18:53 +04:00
Zalim Bashorov
9ac193407b Fixed JS test runner: save only stdlib module from run to run. 2014-10-06 23:18:53 +04:00
Zalim Bashorov
25172d797e JS tests: disable Rhino optimization by default. 2014-10-06 23:18:52 +04:00
Zalim Bashorov
20f20f9441 JS tests: refactored StdLibTestBase and derived classes. 2014-10-06 23:18:52 +04:00
Zalim Bashorov
b72b036bdb JS tests: refactored BasicTest class. 2014-10-06 23:18:52 +04:00
Zalim Bashorov
c8278fd887 JS backend: refactor Configs. 2014-10-06 23:18:52 +04:00
Zalim Bashorov
dd1fffae40 Minor in JS tests: load and cache kotlin_lib_compiled.js 2014-10-06 23:18:52 +04:00
Zalim Bashorov
ce4bbb906b JS tests: disabled linter. 2014-10-06 23:18:51 +04:00
Zalim Bashorov
36bad02e67 Minor in JS tests: cleanup RhinoFunctionResultChecker and dependent classes. 2014-10-06 23:18:51 +04:00
Zalim Bashorov
9290c3aad7 JS tests: HACK for use JsTestsAsserter in JS tests 2014-10-06 23:18:51 +04:00
Zalim Bashorov
7a51ef5723 Stdlib: fix build -- use named object instead of instance of Any because Any not mapped yet in JS backend. 2014-10-06 23:18:51 +04:00
Zalim Bashorov
c142253fb9 JS stdlib: droped unnecessary jutilCode.kt 2014-10-06 23:18:51 +04:00
Zalim Bashorov
9827a5a21d Minor in JS stdlib: fix annotations.kt 2014-10-06 23:18:51 +04:00
Zalim Bashorov
23151936b6 JS stdlib: added volatile and synchronized. 2014-10-06 23:18:50 +04:00
Zalim Bashorov
80294f53ad JS stdlib: drop TuplesCode.kt -- switch to use tuples from stdlib. 2014-10-06 23:18:50 +04:00
Zalim Bashorov
0cac7c32b6 Stdlib: Deprecated.kt splitted to common and jvm parts. 2014-10-06 23:18:50 +04:00
Zalim Bashorov
3bc80a6d05 Stdlib: Char.kt splitted to common and jvm parts. 2014-10-06 23:18:50 +04:00
Zalim Bashorov
d7dfbe40a4 Stdlib: moved CharSequence.size and String.size to StringJVM.kt because they are intrinsic in JS. 2014-10-06 23:18:50 +04:00
Zalim Bashorov
4ba4484683 Stdlib: moved setOf and linkedListOf from JUtilJVM.kt to JUtil.kt. 2014-10-06 23:18:49 +04:00
Zalim Bashorov
5b80eef381 Added ant step for compilation Kotlin stdlib to JS. 2014-10-06 23:18:49 +04:00
Valentin Kipyatkov
5ae756addb Quickfix to correct signature of method with 'override' to not include 'override' in signature text 2014-10-06 21:26:55 +04:00
Valentin Kipyatkov
317607db70 Corrected quickfix to correct signature of method with 'override' to:
- not loose annotations and other stuff
  - not include visibility modifiers into the name and into the code generated
2014-10-06 21:26:55 +04:00
Valentin Kipyatkov
89ea4d5a85 More quickfixes to use API for setting type ref 2014-10-06 21:26:55 +04:00
Valentin Kipyatkov
d876e85eb2 Added API for changing type ref for function/variable and refactored code in some quickfixes to use it 2014-10-06 21:26:55 +04:00
Valentin Kipyatkov
2036b87ccf Deleted strange unused method 2014-10-06 21:26:55 +04:00
Evgeny Gerashchenko
6e8002138e Made Kotlin available for IDEA 140.* (trunk after 14.0) 2014-10-06 20:03:58 +04:00
Evgeny Gerashchenko
dd0436cd3a Updated base URL for jb_update_continuous_local.
It wasn't updated on time when Kotlin was transferred from IDEA 13 to 14.
2014-10-06 19:17:31 +04:00
Nikolay Krasko
44b8e22bef More tests for generating methods from different caret positions 2014-10-06 17:53:10 +04:00
Nikolay Krasko
3c6566c1b1 Auto generate "after"-file if it's not present 2014-10-06 17:53:08 +04:00
Nikolay Krasko
60a7a57e65 Auto insert caret and selection to "after" file 2014-10-06 17:53:07 +04:00
Nikolay Krasko
27b654cc50 Refactoring: rename and make public 2014-10-06 17:53:05 +04:00
Nikolay Krasko
c05d30de38 Refactoring: extract method 2014-10-06 17:53:03 +04:00
Nikolay Krasko
774af134fa Move caret to generated element and add selection 2014-10-06 17:53:02 +04:00
Nikolay Krasko
a50720d74d Remove rest of whitespace on override or implement to insert generated at caret offset 2014-10-06 17:53:00 +04:00
Nikolay Krasko
03d1c64d27 KT-5103 No delegated members in Override/Implement
#KT-5103 Fixed
2014-10-06 17:52:41 +04:00
Nikolay Krasko
a0404b11b0 Refactoring: use resolve session instead of binding context 2014-10-06 17:52:33 +04:00
Nikolay Krasko
c80cdb4790 getContainingFile() and getProject() have to be executed under read lock 2014-10-06 15:27:01 +04:00
Alexey Sedunov
74242a5fd9 Move: Updated test data (functions/properties are not imported by default) 2014-10-06 14:23:50 +04:00
Alexey Sedunov
1353e7f56b Find Usages: Disable by-convention search of invoke(). Improve scanner
accuracy when indexing possible references to component functions
2014-10-06 14:23:49 +04:00
Pavel V. Talanov
5e6619e368 Increase LibraryModificationTracker when external annotations are changed
Library cache is dropped when there are changes to external annotations
2014-10-03 21:35:11 +04:00
Pavel V. Talanov
95302fd540 Fix not generating KotlinLightField for OBJECT$ and INSTANCE$ fields
Fix navigation from Java to such fields
Fix TODO in converter
2014-10-03 21:35:06 +04:00
Pavel V. Talanov
b2ec5e1ec4 Test reference resolve from Java to Kotlin
Cases cover the most basic features
Sadly it was missing before
2014-10-03 21:35:00 +04:00
Pavel V. Talanov
af963ea244 Fix being unable to find declaration for substituted callable from library
#KT-5900 Fixed
#KT-5901 Fixed
2014-10-03 21:33:18 +04:00
Pavel V. Talanov
8f52f71378 Remove warn on performing analysis from dispatch thread
This is outdated since lazy resolve can be called from dispatch thread (Intentions do it)
2014-10-03 21:33:18 +04:00
Pavel V. Talanov
8db599c68a Convert Java file to Kotlin: do not ask whether to backup files
Do not backup files

 #KT-5530 Fixed
2014-10-03 21:33:17 +04:00
Alexey Sedunov
be2713b59c Minor: Rename CreateFunctionFromUsageFix -> CreateCallableFromUsageFix 2014-10-03 20:18:45 +04:00
Alexey Sedunov
ae7c5e1323 Create From Usage: Do not fail on qualifier receiver when it doesn't have type 2014-10-03 20:18:44 +04:00
Alexey Sedunov
b680b74ecb Create From Usage: Do not suggest list of type candidates when there is at most one 2014-10-03 20:18:43 +04:00
Alexey Sedunov
5ade563902 Create From Usage: Join local "vars" with their initializers 2014-10-03 20:18:43 +04:00
Alexey Sedunov
865c793561 Create From Usage: Do not suggest "val" for references used as assignment left-hand side 2014-10-03 20:18:42 +04:00
Alexey Sedunov
58126b28ca Create From Usage: Quick-fix for properties 2014-10-03 20:18:41 +04:00
Alexey Sedunov
8386bcd4e0 Create Local Variable From Usage: Support lambdas 2014-10-03 20:18:39 +04:00
Alexey Sedunov
6ad2157806 Create From Usage: Quick-fix for value parameters 2014-10-03 20:18:39 +04:00
Alexey Sedunov
73fc984c4c Change Signature: Fix detection of conflicts in generic classes 2014-10-03 20:18:37 +04:00
Michael Bogdanov
609caa8159 Clean 2014-10-03 17:24:15 +04:00
Michael Bogdanov
15043b3c6d Fixes for KT-4991: Prefix/postfix expressions resolved to local extensions are not supported in codegen;
KT-4989: Verify error on local functions and extensions;
KT-4987: NegativeArraySizeException on local extension convention function on nullable Int

  #KT-4991 Fixed
  #KT-4989 Fixed
  #KT-4987 Fixed
2014-10-03 17:24:14 +04:00
Michael Bogdanov
0c11ca680e Fix for KT-3969: Codegen fails on unary calls with default arguments
#KT-3969 Fixed
2014-10-03 17:24:14 +04:00
Alexey Tsvetkov
d61352c8f3 JS inline: assignment binary operation is not side-effect free 2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
a795ee6218 JS backend minor: added @NotNull annotation to JsBinaryOperation's getOp() 2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
8a607ce9be Minor test: added config argument 2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
436fc33e84 Minor testData: fixed -Xno-inline option at extraHelp.out 2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
48bd71e0b6 JS inline minor: removed unused parameter 2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
f022cd6281 JS backend: restored old label naming strategy 2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
886ae36e1f JS backend: removed nullable parameters
Since JsScope declareName() parameter became NotNull
2014-10-03 14:23:57 +04:00
Alexey Tsvetkov
0eedb0dc6b JS backend: added @NotNull annotation to JsNameRef's getIdent() and constructor parameters 2014-10-03 14:23:56 +04:00
Alexey Tsvetkov
89d74d94c9 JS backend: added @NotNull annotation to JsName's getIdent() 2014-10-03 14:23:56 +04:00
Zalim Bashorov
3b9232e8d4 Drop extra fields which covered by metadata: hasDefaultValue from JsParameter. 2014-10-03 14:23:56 +04:00
Zalim Bashorov
aa6ab1ffee Drop extra fields which covered by metadata: isLocal from JsFunction. 2014-10-03 14:23:56 +04:00
Zalim Bashorov
afdec6ecc4 Drop extra fields which covered by metadata: inlineStrategy from JsInvocation. 2014-10-03 14:23:56 +04:00
Zalim Bashorov
b5ab6cbad0 Drop extra fields which covered by metadata: staticRef from JsName. 2014-10-03 14:23:56 +04:00
Zalim Bashorov
d16ddd081a JS backend: copy metdata when copy node. 2014-10-03 14:23:56 +04:00
Zalim Bashorov
1c5338ccf7 JS backend: added the ability to add metadata to js nodes. 2014-10-03 14:23:55 +04:00
Zalim Bashorov
03539c1945 Minor: removed unused ChameleonJsExpression. 2014-10-03 14:23:55 +04:00
Zalim Bashorov
4816e391ff Minor in JS backend: moved js.inliner to "compiler/js" group and added descriptors to its dependencies. 2014-10-03 14:23:55 +04:00
Alexey Tsvetkov
d3fce0d0ec JS inline return statements after top return 2014-10-03 14:23:55 +04:00
Alexey Tsvetkov
7a8ba9c733 JS backend refactor: refactored LiteralFunctionTranslator after code review 2014-10-03 14:23:55 +04:00
Alexey Tsvetkov
c47732e7eb JS inline minor: optimized imports 2014-10-03 14:23:55 +04:00
Alexey Tsvetkov
64982aa72e JS backend minor: made CALL_FUNCTION constant public 2014-10-03 14:23:54 +04:00
Alexey Tsvetkov
d6f8aa6f03 JS backend minor: made undefined expression static field 2014-10-03 14:23:54 +04:00
Alexey Tsvetkov
fb475775c9 JS inline minor: inlined doDirectInline() 2014-10-03 14:23:54 +04:00
Alexey Tsvetkov
6018b103cc JS inline refactor: splitted Renaming.kt 2014-10-03 14:23:54 +04:00
Alexey Tsvetkov
17a78dd522 JS inline refactor: moved invocation and function utils to separate files 2014-10-03 14:23:54 +04:00
Alexey Tsvetkov
7fbed5ee86 JS inline refactor: extracted flattenStatement() function 2014-10-03 14:23:54 +04:00
Alexey Tsvetkov
80eca3e49e JS inline refactor: refactored clean utils after code review 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov
1ad090e3a7 JS inline refactor: moved contexts to 'context' package 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov
cd9349deb7 JS inline refactor: moved JS AST collecting utils to 'collectors' package 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov
86c253ef6d JS inline refactor: moved JS AST modifying utils to 'rewriters' package 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov
d3a8f78a88 JS inline minor: moved JsInliningContext definition to the bottom of JsInliner 2014-10-03 14:23:53 +04:00
Zalim Bashorov
0e075c7d5f JS backend: added the ability to turn off the inline optimization. 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov
338789664c JS inline: use inlined function name for inline labels 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov
cbb9e9c40e JS inline: inline simple-return functions directly 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
da817e7ed2 JS inline: use dfs processing order, as it is independent of declaration order 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
a5688440a1 JS inline: added inline recursion exception 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
5aaa186180 JS inline: remove unused function literals and local functions 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
ec6108ee05 JS inline: remove unused local function instances 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
7f98ceb427 JS inline: common reference utilities for cleaning up after inline 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
ddb3157a58 JS inline: added collections utils 2014-10-03 14:23:52 +04:00
Alexey Tsvetkov
c78169d236 JS inline: support inline local functions 2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
1dafa79eaf JS inline: prevent inliner from inlining multiple subexpressions at once 2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
87d108e75e JS inline: default parameter processing for inlined functions
When function is inlined initializers
for default parameters can be:
1. removed  if argument is not `void 0`
2. expanded otherwise
2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
1f68b43558 JS inline: support inline extension functions 2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
78e7b9c32b JS inline: replace returns with result variable assignment and break 2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
667a22f84e JS inline: alias arguments and local variables 2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
49718f143b JS inline: create JsInliningContext per function processed by JsInliner 2014-10-03 14:23:51 +04:00
Alexey Tsvetkov
0151b7a2d1 JS inline: added inlining context utilities 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
f29816f19c JS inline: added invocation utils 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
1aa55f3e54 JS inline: run JsInliner after AST is built 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
3c4125c233 JS inline: inline function calls 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
3c7677e73e JS inline: collect defined functions 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
2e38833367 JS inline: save static ref to JsFunction in JsName 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
e4cd733879 JS inline: added JsInliner 2014-10-03 14:23:50 +04:00
Alexey Tsvetkov
60271201fc JS inline: added FunctionInlineMutator 2014-10-03 14:23:49 +04:00
Alexey Tsvetkov
2c443532c5 JS inline: added InlineableResult 2014-10-03 14:23:49 +04:00
Alexey Tsvetkov
3cdae252ef JS inline: save inline status during translation 2014-10-03 14:23:49 +04:00
Alexey Tsvetkov
efac671ae6 JS inline: removed legacy inline logic 2014-10-03 14:23:49 +04:00
Alexey Tsvetkov
f076ab8f54 JS backend: added deepCopy() method to JS AST nodes 2014-10-03 14:23:49 +04:00
Alexey Tsvetkov
b880775de5 JS backend: removed JsBlock toString() truncation
Truncation complicates debugging.
Some inline tests depend on functions strings  comparison.
2014-10-03 14:23:49 +04:00
Alexey Tsvetkov
28b3ed67c1 JS backend: made JsScope hasOwnName method public 2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
2b6045af0f JS backend: made JsBlock statements list modifieable
Inliner should be able to add statements of inline function to JsBlock
2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
53fe237499 JS backend: made JsInvocation arguments modifieable 2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
96e5985ca9 JS backend: added NotNull annotation 2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
d27b7b793f JS backend: break label should be JsNameRef, not String
The reason is to make it easier to distinguish
between different break labels (that's valid on same level).
JsNameRefs can be distinguished by their JsName.
2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
915f8734c5 JS backend: added visitors with context 2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
15e963de25 JS test: turn rhino optimization off for stdlib tests 2014-10-03 14:23:48 +04:00
Alexey Tsvetkov
3f2d4b31be JS test: added inline tests 2014-10-03 14:23:47 +04:00
Alexey Tsvetkov
987708680f JS test: JS AST access from tests 2014-10-03 14:23:47 +04:00
Alexey Tsvetkov
1dcc096753 JS test: removed legacy inline tests 2014-10-03 14:23:47 +04:00
Alexey Tsvetkov
0484df00c3 JS test: added test utils 2014-10-03 14:23:47 +04:00
Alexey Tsvetkov
a26e77fd93 JS inline: new module 2014-10-03 14:23:47 +04:00
Nikolay Krasko
555119f59a Exceptions during 'compute' in storage manager must be processed with exception strategy
#KT-5134 Fixed
2014-10-02 23:37:49 +04:00
Valentin Kipyatkov
bbc2d30f60 KT-4849 'Join lines' should remove braces from single-statement block
#KT-4849 Fixed
2014-10-02 18:26:07 +04:00
Valentin Kipyatkov
53983774d0 Moved and renamed class + added check for JetFile 2014-10-02 18:26:07 +04:00
Valentin Kipyatkov
593e93b88b Moved code from DeclarationUtils and refactored code 2014-10-02 18:26:07 +04:00
Valentin Kipyatkov
d71c481606 Moved test data 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov
8cb631d6f8 Better way of changing property intiailizer used 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov
c0db84331e Fixed bug in join lines 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov
c6f10ea219 Moved some code from DeclarationUtils to JetDeclarationJoinLinesHandler and refactored it 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov
879f0d201e Converted JetDeclarationJoinLinesHandler to Kotlin 2014-10-02 18:26:06 +04:00
Evgeny Gerashchenko
c7633a5266 Added workaround for auto-ungzipping when downloading in Ant 1.9.4. 2014-10-02 11:48:09 +04:00
Evgeny Gerashchenko
498d1d5cf8 Updating regexp for finding URL of IDEA EAP. 2014-10-02 11:48:09 +04:00
Svetlana Isakova
ce01c61811 Rename: auto cast -> smart cast 2014-10-01 18:52:52 +04:00
Svetlana Isakova
20f3403c80 Rename: this object, receiver argument -> dispatch receiver, extension receiver 2014-10-01 18:52:51 +04:00
Svetlana Isakova
1d2d2f4845 KT-5873 Exception in ArgumentMatchImpl on smart completion
#KT-5873 Fixed
2014-10-01 18:52:51 +04:00
Nikolay Krasko
f0e7435254 A better heuristics is declaration implemented or overriden 2014-10-01 18:05:46 +04:00
Nikolay Krasko
bb7b4daef6 Drop isOverridableHeuristic and use isOverridable from utils instead 2014-10-01 18:05:45 +04:00
Nikolay Krasko
f76025710e Rewrite to Kotlin: overridden properties markers tooltip and navigation 2014-10-01 18:05:43 +04:00
Nikolay Krasko
bc5f28d9fd Refactoring: rename KotlinLightMethodFromTrait -> KotlinLightMethodForTraitFakeOverride 2014-10-01 18:05:38 +04:00
Nikolay Krasko
5c6d74af7d Test for "Incorrect override icon shown for overloaded methods" (KT-4428)
#KT-4428 Fixed
2014-10-01 18:03:02 +04:00
Nikolay Krasko
9de0e8c9fd Refactoring: rename file 2014-10-01 18:03:01 +04:00
Nikolay Krasko
54b2e994e1 Refactoring: move utils methods 2014-10-01 18:02:59 +04:00
Nikolay Krasko
260f9fb634 Rewrite to Kotlin: rewrite methods for markers on overridden declarations 2014-10-01 18:02:58 +04:00
Nikolay Krasko
7bf622dd26 Rewrite to Kotlin: super navigation markers methods 2014-10-01 18:02:57 +04:00
Nikolay Krasko
f7edd5abe7 Show all line markers in slow pass as they all require resolve 2014-10-01 18:02:55 +04:00
Nikolay Krasko
236cdc7d82 Filter synthetic trait overrides for "overriding" markers too 2014-10-01 18:02:54 +04:00
Nikolay Krasko
897ebd0347 Linemarker tests 2014-10-01 18:02:52 +04:00
Nikolay Krasko
8ada9b68b0 Add special class for getting methods from traits 2014-10-01 18:02:31 +04:00
Nikolay Krasko
35c67734d3 Force function render use short qualified names 2014-10-01 17:58:58 +04:00
Nikolay Krasko
6aa5e53a00 Fix navigate to super declaration line marker tooltip
Don't show overridden function signature each time, show only where it's declared
2014-10-01 17:58:56 +04:00
Nikolay Krasko
6a714436f2 Make testable navigation from line markers for super declarations 2014-10-01 17:58:55 +04:00
Nikolay Krasko
7c0acd9da5 Navigate to sources from markers not to decompiled classes 2014-10-01 17:58:53 +04:00
Nikolay Krasko
dfe3062340 Auto insert acual line markers for failed tests 2014-10-01 17:58:52 +04:00
Nikolay Krasko
2d54139018 Refactoring: move method to utils 2014-10-01 17:58:51 +04:00
Nikolay Krasko
72c7d22d5f Rewrite to Kotlin: DescriptorToDeclarationUtil 2014-10-01 17:58:49 +04:00
Zalim Bashorov
9eb1a38a25 Don't rewrite testData file if content not changed, it's for windows family.
And improved some error messages.
2014-10-01 15:35:40 +04:00
Pavel V. Talanov
92faee3fd7 Do not reuse other caches when analyzing synthetic files inside libraries classes
This is no longer correct since libraries have dependencies
2014-09-30 21:59:02 +04:00
Pavel V. Talanov
b7dbd7a68d Minor: readable toString for LibraryInfo and LibrarySourceInfo 2014-09-30 21:59:01 +04:00
Pavel V. Talanov
a8d77887af Introduce HighlightingWithDependentLibrariesTest
This tests that LibraryInfo dependencies affect source files highlighting
2014-09-30 21:59:01 +04:00
Pavel V. Talanov
e25cbcd961 Test for LibraryInfo dependencies 2014-09-30 21:59:00 +04:00
Pavel V. Talanov
23a45ae689 Provide heuristic dependencies for LibraryInfo
This is not and cannot be (with current IDEA model) accurate
For now we use the following approximation:
    If a module dependends on library 'a' and among module's dependencies (including this module)
	there is a module that depends on library 'b' then
	we assume that library 'a' depends on library 'b'
2014-09-30 21:59:00 +04:00
Pavel V. Talanov
691068c0c2 Implement LibraryDependenciesCache 2014-09-30 21:58:59 +04:00
Nikolay Krasko
f7c1802fb7 Can't call Kotlin built-in Throwable 2014-09-30 20:44:57 +04:00
Alexey Sedunov
4ca39e8f9a Create From Usage: Quick-fix for local variables 2014-09-30 19:55:46 +04:00
Alexey Sedunov
e85d34b445 Create From Usage: Add ability to select val/var when creating property 2014-09-30 19:55:45 +04:00
Alexey Sedunov
e9b16f3e1b Create Function From Usage: Use Any if error type is inferred 2014-09-30 19:55:44 +04:00
Alexey Sedunov
854962a139 Create Function From Usage: Fix availability condition 2014-09-30 19:55:43 +04:00
Alexey Sedunov
a6ba3a569d Create From Usage: Move "Create function"-related tests to separate directory 2014-09-30 19:55:43 +04:00
Alexey Sedunov
0f43d4d07c Create From Usage: Move callable builder to separate package 2014-09-30 19:55:41 +04:00
Alexey Sedunov
be211d7cda Create From Usage: Generalize function builder for both functions and properties 2014-09-30 19:55:40 +04:00
Natalia Ukhorskaya
9032a6166e Fix Android tests 2014-09-30 17:48:40 +04:00
Valentin Kipyatkov
35ebbab733 Fixed smart completion not working when parameter has default value 2014-09-30 15:29:10 +04:00
Valentin Kipyatkov
267aabae12 Smart completion: multiple arguments at once 2014-09-30 15:29:10 +04:00
Natalia Ukhorskaya
a04efad059 Fix error message for missing propertyDelegated method in IDE 2014-09-30 15:00:30 +04:00
Natalia Ukhorskaya
6179b4889b Debugger: fix className for properties in class objects 2014-09-30 15:00:29 +04:00
Natalia Ukhorskaya
4994e771d0 Evaluate expression: support EE for shared vars 2014-09-30 15:00:28 +04:00
Natalia Ukhorskaya
8ad18df3fa Evaluate expression: switch off breakpoints during eval4j run 2014-09-30 15:00:27 +04:00
Nikolay Krasko
e1c7ad50d6 More changes after replacing config directory
- Plugin auto-enable script updated
 - Don't drop configured folder in update-dependencies
 - Drop test config and system folders in update-dependencies
2014-09-30 13:02:02 +04:00
Alexey Tsvetkov
0af291091e KT-5673: always write val property to backing field 2014-09-29 21:35:30 +04:00
Alexey Tsvetkov
b70466f9f3 KT-5673: added tests 2014-09-29 21:35:30 +04:00
Alexey Tsvetkov
ed14f86957 KT-4773: use receiver for delegated extension property 2014-09-29 21:35:30 +04:00
Alexey Tsvetkov
3424142b65 KT-4773: added tests 2014-09-29 21:35:30 +04:00
Alexey Tsvetkov
f8968c2f77 JS backend minor: added @NotNull annotation to getArguments() 2014-09-29 21:35:30 +04:00
Zalim Bashorov
916cfb7051 Regenerate testData for reservedWords after take was fixed. 2014-09-29 19:47:49 +04:00
Zalim Bashorov
2352085391 Improve testData generator for reserved words.
Cashing iterator in CyclicStream.
Detect generating unexpected testdata file(e.g. may caused because of bug in stdlib).
2014-09-29 19:47:49 +04:00
Michael Nedzelsky
098b4c170f JS backend: fix KT-4297 PrimitiveHashMap returns wrong keys (string instead of original type) 2014-09-29 17:46:33 +04:00
Denis Zharkov
f1d9d11590 Store stack values before inlines. #KT-5634 Fixed
Inlining code violates JIT assumptions for OSR in Java 8 in case of
starting with non-empty and containing cycles.

Fix is to mark each inlined block with markers and then store/restore
stack state before and after inlined body.
2014-09-29 17:16:58 +04:00
Michael Bogdanov
469db95662 Inline markers added 2014-09-29 17:16:57 +04:00
Nikolay Krasko
e035fc3219 Minor: fix some dictionary suggestions 2014-09-29 14:03:09 +04:00
Nikolay Krasko
b79b7554ff Refactoring: move application utility methods from refactoring utility to common place 2014-09-29 14:03:02 +04:00
Nikolay Krasko
89f0c8dc87 Rewrite ApplicationUtils.java to Kotlin 2014-09-29 13:55:47 +04:00
Nikolay Krasko
0a97469ff4 Make special config folder for IDEA to keep separate settings for tests 2014-09-29 13:55:46 +04:00
Alexey Sedunov
ff29e581db Create Function From Usage: Add empty lines when inserting new function 2014-09-29 01:27:28 +04:00
Alexey Sedunov
afd8809ff5 Create Function From Usage: Wrap build() function in try-finally 2014-09-29 01:27:26 +04:00
Alexey Sedunov
6043c6d0a7 Create Function From Usage: Quick-fix for functions invoked via call expressions 2014-09-29 01:27:25 +04:00
Alexey Sedunov
22e3557895 Extract utility functions from ExtractKotlinFunctionHandler 2014-09-29 01:27:24 +04:00
Alexey Sedunov
67df2b448f Create Function From Usage: Quick-fix for invoke convention 2014-09-29 01:27:23 +04:00
Alexey Sedunov
cf59af6c7a Create Function From Usage: Quick-fix for unary operations 2014-09-29 01:27:22 +04:00
Alexey Sedunov
0582cf5db1 Create Function From Usage: Quick-fix for binary operations 2014-09-29 01:27:20 +04:00
Alexey Sedunov
ae69bea543 Create Function From Usage: Refactor the function builder 2014-09-29 01:27:19 +04:00
Alexey Sedunov
d9318fdc57 Create Function From Usage: Make ClassCandidateListCellRenderer nested class 2014-09-29 01:27:18 +04:00
Alexey Sedunov
06ab4e1c9a Name Validator: Add filtering to collecting validator 2014-09-29 01:27:17 +04:00
Alexey Sedunov
2c3f0f8c29 Name Validator: Translate JetNameValidator to Kotlin 2014-09-29 01:27:16 +04:00
Alexey Sedunov
8ec2b5a973 Name Validator: Remove unused fields and parameters 2014-09-29 01:27:15 +04:00
Alexey Sedunov
5d7a07456d Create Function From Usage: Move type utilities to separate file 2014-09-29 01:27:14 +04:00
Alexey Sedunov
34632f46f6 Create Function From Usage: Translate ClassCandidateListCellRenderer to Kotlin 2014-09-29 01:27:13 +04:00
Alexey Sedunov
d1e43d6482 Create Function From Usage: Move "Create function from usage"-related classes to separate package 2014-09-29 01:27:12 +04:00
Alexey Sedunov
08e3a6a9de Create Function From Usage: Move action factories to top level 2014-09-29 01:27:11 +04:00
Alexey Sedunov
9573c739ea Create From Usage: Move classes to separate package 2014-09-29 01:27:10 +04:00
Alexey Sedunov
23ea43fde5 Create From Usage: Translate base class to Kotlin 2014-09-29 01:27:09 +04:00
Michael Nedzelsky
9d49089041 JS backend: tests for char type 2014-09-28 19:51:58 +04:00
Michael Nedzelsky
6aff9803c4 JS backend: support for char type 2014-09-28 19:51:54 +04:00
Michael Nedzelsky
2e4e5c5d1d JS backend: tests for Long type support 2014-09-28 19:51:51 +04:00
Michael Nedzelsky
dca6e31519 JS backend: add support for Long type 2014-09-28 19:51:48 +04:00
Michael Nedzelsky
d1d722546e JS backend: prepare long.js for use in translator 2014-09-28 19:51:43 +04:00
Michael Nedzelsky
f42d7319a5 JS backend: original long.js from closure-library 2014-09-28 19:51:40 +04:00
Nikolay Krasko
1239d37cb9 Update to EAP 138.2458.8 2014-09-27 18:18:49 +04:00
Pavel V. Talanov
54799b1a34 Internal visibility works the same as public
Fix test data
This change is needed to preserve old behaviour for M9
isFriend() utilities become unused after this change
2014-09-26 22:06:32 +04:00
Alexander Udalov
cd0551078c Support static method references
#KT-5123 Fixed
2014-09-26 18:48:43 +04:00
Alexander Udalov
19497262b3 Don't lookup built-in classes by invalid names
#KT-5869 Fixed
2014-09-26 18:48:43 +04:00
Pavel V. Talanov
2227b87ca3 Do not store psi in CopiedCode
It is transferable and can exist even if project is closed
2014-09-26 18:21:12 +04:00
Pavel V. Talanov
ec7d294fcc Minor: remove some redundant not null assertions from Kotlin code 2014-09-26 18:21:12 +04:00
Pavel V. Talanov
477378fab7 Minor: convert CopiedCode to Kotlin 2014-09-26 18:21:11 +04:00
Pavel V. Talanov
f292c554cb Cache result of getAllPossiblePackageClasses()
Move this utility from IDELightClassGenerationSupport to PackageIndexUtil
2014-09-26 18:21:11 +04:00
Pavel V. Talanov
9219616bb8 Minor: rename and refactor PackageIndexUtil#containsAny() 2014-09-26 18:21:10 +04:00
Pavel V. Talanov
4370577457 Minor: Convert PackageIndexUtil to Kotlin 2014-09-26 18:21:10 +04:00
Pavel V. Talanov
649a6f12bb Compute builtins directory url only once 2014-09-26 18:21:09 +04:00
Pavel V. Talanov
6127af97a5 Manually implement scopes for ModuleSourceInfo
This allows for a faster contains(VirtualFile) check
2014-09-26 18:21:09 +04:00
Michael Bogdanov
b3e075173b KT-5863: Inlined try/catch/finally block with non-local return doesn't work properly
#KT-5863 Fixed
2014-09-26 17:08:58 +04:00
Ilya Ryzhenkov
bf368b2bc2 Restore accidentally removed String.getBytes() and mark as deprecated (discouraged). 2014-09-26 16:28:08 +04:00
Valentin Kipyatkov
028520956f Fixed tests 2014-09-26 15:20:46 +04:00
Denis Zharkov
da159c1e53 Simple version of redundant GOTO's removing 2014-09-26 12:37:33 +04:00
Denis Zharkov
e1c2fbaec0 Minor refactoring: use array of MethodTransformers
instead of delegation
2014-09-26 12:37:32 +04:00
Denis Zharkov
35cda83c8f Refined merging logic #KT-5844 Fixed
If merging primitives of different integral types (e.g. I and Z) return
INT.
Else return UNINITIALIZED_VALUE
2014-09-26 12:37:04 +04:00
Alexander Udalov
96308aa14e Increase ABI version
After changes to package part names and top level closure names
2014-09-26 10:23:21 +04:00
Alexander Udalov
80a7c64369 Prepend zeros to package part hash code 2014-09-26 10:23:14 +04:00
Alexander Udalov
e2273a3d85 Update JetExceptionFilter behavior for top level closures
Now JetExceptionFilter can determine the source file looking at the class FQ
name for sure
2014-09-26 10:22:28 +04:00
Alexander Udalov
43c26d0947 Update JetExceptionFilter to the latest API, fix warnings 2014-09-26 10:22:28 +04:00
Alexander Udalov
8f92141137 Minor, exclude tinyApp test classes output from IDEA indices 2014-09-26 10:22:28 +04:00
Alexander Udalov
49e5b950ce Workaround package part hash codes in tests on JetPositionManager 2014-09-26 10:22:27 +04:00
Alexander Udalov
b5832d2656 Refactor and generate tests on JetPositionManager 2014-09-26 10:22:27 +04:00
Alexander Udalov
9f7979d0ce Workaround package part hash codes in OuterClassGenTest 2014-09-26 10:22:26 +04:00
Alexander Udalov
4d055d5ab4 Check header on package part classes in MethodInliner 2014-09-26 10:22:26 +04:00
Alexander Udalov
c30aa7db84 Include package part name to top level closure names
#KT-4234 Fixed
 #KT-4496 Fixed
2014-09-26 10:22:25 +04:00
Alexander Udalov
7b374b9509 Refactor CodegenBinding
- store source element in synthetic descriptor for easier debugging and lesser
  amount of needed method parameters everywhere
- simplify methods which calculate necessary information for MutableClosure
2014-09-26 10:22:24 +04:00
Alexander Udalov
7d6da551d1 Minor, inline one of CodegenBinding#registerClassNameForScript 2014-09-26 10:22:24 +04:00
Alexander Udalov
4194f1c418 Minor, simplify old code in ImplementationBodyCodegen 2014-09-26 10:22:24 +04:00
Alexander Udalov
2ba9856a85 Calculate inner class access flags accurately 2014-09-26 10:22:23 +04:00
Alexander Udalov
806d79caba Minor, strip package name from class for script
This is done to be able to construct a FqName of this class. Currently it's not
possible because the name contains '/' and FqName validation fails.

This name is only used for debugging and even the ClassDescriptor is used only
as a key in binding context to store the internal name of the script class
2014-09-26 10:22:23 +04:00
Alexander Udalov
4cb9fbc026 Move CodegenBinding#computeAsmType() to JetTypeMapper, make private 2014-09-26 10:22:23 +04:00
Alexander Udalov
232ab0b065 Refactor when by enum switch codegen
Invoke getAsmType() later, not in the process of annotating the file
2014-09-26 10:22:22 +04:00
Alexander Udalov
d4a845da01 Refactor CodegenBinding#getAsmType()
- make it return the ASM_TYPE slice value and assert it is there
- move all the computation to the separate method "computeAsmType"
- only call getAsmType() in those places where the type must be recorded at
  slice ASM_TYPE, otherwise call JetTypeMapper#mapType(), which will check the
  slice and call computeAsmType
2014-09-26 10:22:22 +04:00
Alexander Udalov
c1125402bd Store FqName in LightClassDataForKotlinClass rather than a String
It was also mistakenly named "jvmInternalName" while in fact it was holding the
result of Type#getClassName() which is not an internal name
2014-09-26 10:22:21 +04:00
Alexander Udalov
c57441b51b Use '$' instead of '-' in package part class names
Otherwise some tools break (e.g. CheckMethodAdapter in ASM, used in generic
signature writer) because they expect class names to be Java identifiers.

Some tests fixed, some will be fixed in future commits
2014-09-26 10:22:20 +04:00
Alexander Udalov
e3876624d8 Minor improvements to inline tests 2014-09-26 10:22:19 +04:00
Ilya Ryzhenkov
fabdc1fd32 Add Typography constants. 2014-09-26 01:55:08 +04:00
Ilya Ryzhenkov
350d446031 Make UTF-8 default for delegated java.lang.util functions. Convert getBytes() to toByteArray() to make it clear of copy operation. 2014-09-26 01:55:07 +04:00
Ilya Ryzhenkov
7616d3e18a Unify charset-related APIs to use Charsets.UTF_8 as default. (Manual merge of PR#491)
Minor cleanup.
2014-09-26 01:55:07 +04:00
Ilya Ryzhenkov
7c61c36746 Rename encoding to charset for consistency 2014-09-26 01:55:06 +04:00
Ilya Ryzhenkov
4cdcadef9f Add 6 standard charsets. 2014-09-26 01:55:06 +04:00
Ilya Ryzhenkov
ea8977c5b5 Minor: code formatting 2014-09-26 01:55:05 +04:00
Ilya Ryzhenkov
3e4cc87c87 Add more tests on streams and move relevant code from old iterators tests. 2014-09-26 01:33:51 +04:00
Ilya Ryzhenkov
c5c1ecf6c0 Improve Streams implementation for performance and validity (based on JMH research) 2014-09-26 01:33:51 +04:00
Zalim Bashorov
5a5c4145f2 JS backend: added tests for reserved words. 2014-09-26 00:57:09 +04:00
Zalim Bashorov
e91e724469 JS backend: mangling JS reserved words. 2014-09-26 00:57:09 +04:00
Zalim Bashorov
ef60a7f776 JS backend: fixed crash when use lambda or local function inside enum method. 2014-09-26 00:57:09 +04:00
Ilya Ryzhenkov
878ebb9575 Add ProGuard exceptions for dokka using Grammar-Kit. 2014-09-25 21:38:32 +04:00
Evgeny Gerashchenko
d44926ffde Made some navigation tests independent on stdlib. 2014-09-25 17:38:15 +04:00
Alexander Udalov
e53aca5496 Minor, fix warnings and formatting 2014-09-25 17:14:59 +04:00
Denis Zharkov
de6a5dd6dc fix KT-5866. Moved classes into inlines package
Also copy-pasted static-initializer of asm.Frame.OPCODES
 because it package-protected
2014-09-25 17:14:59 +04:00
valentin
6e7e13d320 Fixed KT-5826 Keyword completion shouldn't kick in in comments
#KT-5826 Fixed
2014-09-25 17:10:28 +04:00
valentin
b4909cc849 Smart completion: item preference by name works for more cases 2014-09-25 17:10:27 +04:00
Valentin Kipyatkov
0462d152eb Smart completion: prefer items matching by name 2014-09-25 17:10:27 +04:00
Valentin Kipyatkov
56978c4e16 Dropped unused file 2014-09-25 17:10:26 +04:00
Valentin Kipyatkov
7d6542854b Minor code refactoring 2014-09-25 17:10:26 +04:00
Valentin Kipyatkov
f4924299dd Extract method 2014-09-25 17:10:26 +04:00
Valentin Kipyatkov
19fb090f28 Do not autopopup completion in name of generic function or property too 2014-09-25 17:10:25 +04:00
Valentin Kipyatkov
e6ea0537c8 More correct completion testing + fixed small bug in keyword completion 2014-09-25 17:10:25 +04:00
Valentin Kipyatkov
afbd1aeffc KT-4027 No type name completion in an incomplete generic extension function declaration
KT-2940 No completion in the receiver type argument position

 #KT-4027 Fixed
 #KT-2940 Fixed
2014-09-25 17:10:24 +04:00
Valentin Kipyatkov
93d8791df1 No completion auto-popup after dot in float literal (but one test start to fail!) 2014-09-25 17:10:24 +04:00
Valentin Kipyatkov
3fcf0f7340 Fixed KT-5808 Code completion auto-popup does not appear after typing "?."
#KT-5808 Fixed
2014-09-25 17:10:24 +04:00
Valentin Kipyatkov
94c9338e3c Fixed KT-3807 Wrong completion for class/trait with extesion function
#KT-3807 Fixed
2014-09-25 17:10:23 +04:00
Valentin Kipyatkov
e30998d3c1 Moved an utility method 2014-09-25 17:10:23 +04:00
Valentin Kipyatkov
7df65d595c Infix calls supported in smart completion too 2014-09-25 17:10:22 +04:00
Valentin Kipyatkov
2bb553612c Dealing with infix calls in completion
#KT-4846 Fixed
2014-09-25 17:10:22 +04:00
Valentin Kipyatkov
9961a5ff16 Minor 2014-09-25 17:10:21 +04:00
Valentin Kipyatkov
16809bc1c6 Minor 2014-09-25 17:10:21 +04:00
Valentin Kipyatkov
427b3c80bc Filtered out incorrect suggestion of extension methods in smart completion 2014-09-25 17:10:21 +04:00
Valentin Kipyatkov
f43a9968ba Minor code refactorings in TipsManager 2014-09-25 17:10:20 +04:00
Valentin Kipyatkov
726f49b3f8 Converted TipsManager to Kotlin 2014-09-25 17:10:20 +04:00
Valentin Kipyatkov
34aada75eb Fixed KT-5795 Do not suggest member extension functions with wrong implicit reciever
#KT-5795 Fixed
2014-09-25 17:10:19 +04:00
Michael Nedzelsky
6ed57f5e7a JS backend: fix KT-5221 Invalid JS code generated for dec() and inc()
#KT-5221 Fixed
2014-09-25 15:12:44 +04:00
max-kammerer
86d598677d Merge pull request #506 from bintree/max-stack-calc-refining
Refining calculation of max stack size. #KT-5548 Fixed
2014-09-25 10:00:37 +04:00
Natalia Ukhorskaya
0dfc793a45 Merge pull request #515 from dmekhanikov/master
Introduce propertyDelegated method in delegates
2014-09-24 18:50:56 +04:00
Denis Zharkov
7de406991a Refining conditions if method can be optimized 2014-09-24 18:04:33 +04:00
Denis Zharkov
e32f307960 Refining calculation of max stack size. #KT-5548 Fixed
It used for inline and optimization

Added new MethodVisitor's decorator within objectweb.asm package because
there are a lot of usages of package-protected members

Large portion of MaxStackFrameSizeCalculator is carefully copy-pasted from
MethodWriter parts that are relevant to max stack size calculation
2014-09-24 18:04:33 +04:00
Ilya Ryzhenkov
c074b4317e Cleanup concurrent 2014-09-24 17:39:47 +04:00
Ilya Ryzhenkov
3ab1901f06 Rename Serializable test file 2014-09-24 17:39:47 +04:00
Ilya Ryzhenkov
7b77229638 Cleanup Serializable test 2014-09-24 17:39:47 +04:00
Ilya Ryzhenkov
a6d2624807 Cleanup test helpers. 2014-09-24 17:39:47 +04:00
Ilya Ryzhenkov
f2b9b370e1 Clean Dom and Dom tests. 2014-09-24 17:39:46 +04:00
Michael Bogdanov
cde74504d4 Test for obsolete kt5307 2014-09-24 17:12:27 +04:00
Evgeny Gerashchenko
cb58d19e29 Minor. Clarified "compiled file" as "file to compile". 2014-09-24 16:31:48 +04:00
Evgeny Gerashchenko
060796997e Fixed clearing incremental cache for removed source files.
For writing system-dependent paths were used, for deleting were system-independent. That's why cache was not cleared on Windows.
2014-09-24 16:31:48 +04:00
Evgeny Gerashchenko
f9b33c4137 Fixed opening file and not closing it.
This led to impossibility to delete file during incremental compilation.
2014-09-24 16:31:47 +04:00
Evgeny Gerashchenko
b435904d7f Fix: not loading ancestor packages from incremental cache. 2014-09-24 16:31:47 +04:00
Evgeny Gerashchenko
9af1c3e4dc Added automatic backup for debugging incremental compilation. 2014-09-24 16:31:47 +04:00
Denis Zharkov
36b50a25f9 Changed generating logic for named functions
Generate it as a sequence of statements when it's possible
2014-09-24 15:59:49 +04:00
Denis Zharkov
78cde5c740 Generate blocks-statements through CodegenStatementVisitor 2014-09-24 15:59:49 +04:00
Denis Zharkov
4ed744428b Generate substatements as statements too
Preventing pushing on stack redundant Unit instances

 #KT-5667 fixed
2014-09-24 15:51:43 +04:00
Denis Zharkov
081d2cf95c Minor, extracted generateLoopBody 2014-09-24 15:51:43 +04:00
Denis Mekhanikov
c4bfa0edca Introduce propertyDelegated method in delegates 2014-09-24 15:34:12 +04:00
Pavel V. Talanov
9e38d207f2 Add hack for failing js completion tests 2014-09-23 15:56:38 +04:00
Pavel V. Talanov
187a3f0b9f Implement separate service which tracks modification in libraries
ProjectRootModificationTracker tracks root changes but not content modification
2014-09-23 15:56:38 +04:00
Pavel V. Talanov
8a5239f794 Correctly place decompiled kotlin files under LibrarySourceInfo
This check doesn't work for java (and other) decompiled sources, but we assume that we never deal with them in this code
2014-09-23 15:56:37 +04:00
Pavel V. Talanov
8a44325327 Log when libraries cache is dropped because of ProcessCanceledException
Hope it can give insight on how often this happens
2014-09-23 15:56:37 +04:00
Pavel V. Talanov
8d89ac897a Create composite exception tracker when delegating ModuleResolverProvider
Avoid dropping delegate caches when exception (i.e. ProcessCancelled) is thrown in delegating provider
2014-09-23 15:56:36 +04:00
Pavel V. Talanov
68201c3e86 Delegate to global cache when building ModuleResolverProvider for synthetic files 2014-09-23 15:56:36 +04:00
Pavel V. Talanov
5847c3559b Implement ModuleSourceInfo.getDependentModules() 2014-09-23 15:56:35 +04:00
Pavel V. Talanov
bf546c83fb Introduce ModuleSourceInfo 2014-09-23 15:56:35 +04:00
Pavel V. Talanov
fe136b500a Libraries cache drops only on roots change 2014-09-23 15:56:34 +04:00
Pavel V. Talanov
67c9a2323c Synthetic files cache delegates to libraries cache 2014-09-23 15:56:34 +04:00
Pavel V. Talanov
8368689af8 Split global cache in KotlinCacheService into separate caches for libraries and for modules 2014-09-23 15:56:33 +04:00
Pavel V. Talanov
faa9f4bb14 Reuse both storage manager and exception tracker when delegating to ModuleResolverProvider 2014-09-23 15:56:33 +04:00
Pavel V. Talanov
c0657320f5 Allow to provide delegate ModuleResolverProvider when computing resolve sessions for bodies 2014-09-23 15:56:32 +04:00
Pavel V. Talanov
ec02734a30 Minor: extract property in KotlinResolveCache 2014-09-23 15:56:32 +04:00
Pavel V. Talanov
563119ffc7 Minor: fix typo in file name 2014-09-23 15:56:31 +04:00
Pavel V. Talanov
bb87377457 Allow to provide precomputed analyzers when creating ResolverForProject 2014-09-23 15:56:31 +04:00
Michael Nedzelsky
e6a17cbd78 JS backend: tests for KT-5772 2014-09-23 14:50:20 +04:00
Michael Nedzelsky
bdca7e0e37 JS backend: fix KT-5772 wrong code generated when <,<=,>,>= are used with explicit Comparable type
#KT-5772 Fixed
2014-09-23 14:50:17 +04:00
Michael Nedzelsky
1d71016097 JS backend: refactoring support for binary intrinsic operations 2014-09-23 14:50:15 +04:00
Michael Nedzelsky
07a4d0e77e JS backend: convert NumberConversionFIF to Kotlin 2014-09-23 14:50:13 +04:00
Michael Nedzelsky
32f391aa51 JS backend: minor improve in NamePredicate: replace list with set 2014-09-23 14:50:09 +04:00
Alexey Sedunov
a48fbacbd9 Minor: Fix warnings 2014-09-23 12:50:48 +04:00
Alexey Sedunov
da004cf104 Minor: Add @NotNull annotation 2014-09-23 12:50:47 +04:00
Alexey Sedunov
735fd6c626 Move: Fix detection of imported declarations and processing of extension usages
#KT-5787 Fixed
 #KT-4959 Fixed
2014-09-23 12:50:46 +04:00
Natalia Ukhorskaya
b14e979d70 Android tests: skip txt files in box folder 2014-09-23 10:46:40 +04:00
Natalia Ukhorskaya
2b388ed308 Evaluate Expression: fix function call from base class on object with subtype 2014-09-23 10:33:06 +04:00
Nikolay Krasko
b5f738db07 Fix test runner for the case when rerun of failed test filters out some classes completely 2014-09-22 14:02:32 +04:00
Nikolay Krasko
f178356bf0 More memory for dist task 2014-09-22 14:02:04 +04:00
Nikolay Krasko
f5ee68064f Don't generate ValueParameter annotations in light class mode 2014-09-22 14:02:02 +04:00
Michael Bogdanov
432ec31daf Support returns in nested finallies 2014-09-19 17:14:17 +04:00
max.kammerer
9564eaa6fd Support finnaly blocks from inline fun in non-local returns 2014-09-19 17:14:17 +04:00
Evgeny Gerashchenko
309329afd0 Shared incremental compilation tests. For running locally and on teamcity. 2014-09-19 16:43:00 +04:00
Alexander Udalov
90c09762e3 Find usages: only collect those descriptors which resolve to callables
Fix failing test on the buildserver
2014-09-19 16:29:00 +04:00
Alexey Sedunov
5a0b786cb9 Extract Function: Fix syntax error in test 2014-09-19 13:50:38 +04:00
Alexey Sedunov
40761dfc4c Extract Function: Generate named argument for extracted lambda (when necessary) 2014-09-19 13:50:38 +04:00
Alexey Sedunov
6a76ca1066 PSI Pattern Patching: Use precomputed context for matching of substitution parameters 2014-09-19 13:50:37 +04:00
Alexey Sedunov
98eed5cb0e Minor: Remove unused function added in earlier commit 2014-09-19 13:50:36 +04:00
Alexander Udalov
04bb43e907 Fix navigation to data class copy function 2014-09-19 11:45:22 +04:00
Nikolay Krasko
bf7a295ace Regenerate for testCompilationErrorThenFixed test 2014-09-18 20:30:35 +04:00
Nikolay Krasko
2ae1286515 Remove lazy base test - there won't be lazy and eager mode soon 2014-09-18 17:58:25 +04:00
Nikolay Krasko
fbd09911f3 Refactoring: Extract filter for skipping built-ins packages 2014-09-18 17:58:24 +04:00
Nikolay Krasko
e796f88b38 Regenerate test data with constructed descriptors for diagnostics tests 2014-09-18 17:58:23 +04:00
Nikolay Krasko
de61456725 Compare constructed descriptors in diagnostics tests 2014-09-18 17:58:20 +04:00
Evgeny Gerashchenko
2a9005b466 Fixed IAE because of compiler bug. 2014-09-18 16:50:20 +04:00
Evgeny Gerashchenko
853def0a10 Not clearing incremental cache on compilation error. 2014-09-18 16:50:20 +04:00
Zalim Bashorov
040d1693e8 Minor: revert semicolons after package declaration for java parts inside kt file. 2014-09-18 16:00:45 +04:00
Michael Nedzelsky
1b60f39959 JS backend: test for KT-4381: JS: fails to iterate over Double range
#KT-4381 obsolete
2014-09-18 15:01:11 +04:00
Alexey Sedunov
741e5f61e9 Extract Function: Implement duplicate search 2014-09-18 13:28:30 +04:00
Alexey Sedunov
03e2b4d516 PSI Pattern Matching: Add support of weak matching 2014-09-18 13:28:29 +04:00
Alexey Sedunov
07a257b1fe Drop JetPsiMatcher class and use JetPsiUnifier instead. Drop AbstractJetPsiMatcherTest 2014-09-18 13:28:28 +04:00
Alexey Sedunov
855ed81c11 Introduce Variable: Use expression unifier to find duplicates 2014-09-18 13:28:27 +04:00
Alexey Sedunov
f1c18d0e3f PSI Pattern Matching: Add equivalence tests for JetPsiUnifier 2014-09-18 13:28:26 +04:00
Alexey Sedunov
a3758f9fa3 PSI Pattern Matching: Implement expression unifier 2014-09-18 13:28:24 +04:00
Alexander Udalov
c0a8e8a4fc Fix safe call on a static method in JVM back-end
#KT-5796 Fixed
2014-09-18 11:13:30 +04:00
Alexander Udalov
9434114c45 Make DescriptorRenderer escape names with dollars and other characters
#KT-5791 Fixed
2014-09-18 10:42:48 +04:00
Alexander Udalov
483232a3e5 Minor, add test for obsolete issue
#KT-5159 Obsolete
2014-09-17 21:20:57 +04:00
Alexander Udalov
af01c0ff94 Update to IDEA EAP 138.2210 2014-09-17 21:19:09 +04:00
Zalim Bashorov
08c3bb35b2 Merge pull request #514 from chashnikov/rr/nik
JS run configuration: use default implementation of ExecutionResult instead of implementing...
2014-09-17 18:56:26 +04:00
nik
92e962eced JS run configuration: use default implementation instead of implementing interface from IDEA API to simplify code and avoid compatibility problems 2014-09-17 18:06:32 +04:00
Natalia Ukhorskaya
88a2612348 Regenerate tests 2014-09-17 14:21:34 +04:00
Natalia Ukhorskaya
3dcfae4a81 Debugger: delegated property should be visible in debugger
#KT-4699 In Progress
 #KT-3582 Fixed
2014-09-17 13:59:53 +04:00
Natalia Ukhorskaya
655682ac97 Move regression tests from stdlib to compiler
#KT-5770 FIxed
2014-09-17 13:59:52 +04:00
Valentin Kipyatkov
d5f509580f Minor fix in completion 2014-09-17 13:24:56 +04:00
Valentin Kipyatkov
a4613ec4a0 Changed completion logic: include non-imported declarations on second press even when prefix is empty 2014-09-17 13:24:56 +04:00
Valentin Kipyatkov
75f7f296aa Non-imported extension functions and properties in smart completion + adding import on completing of non-imported property 2014-09-17 13:24:56 +04:00
Zalim Bashorov
507bfe49aa Minor: "js.noImpl" -> "noImpl" 2014-09-16 19:34:57 +04:00
Zalim Bashorov
38401d04d5 Minor: made noImpl generic to avoid using in wrong context. 2014-09-16 19:32:38 +04:00
Zalim Bashorov
30208d5532 Minor: drop semicolon in package declaration everywhere. 2014-09-16 19:32:37 +04:00
Zalim Bashorov
0f136d5adc Minor in JS lib: dropped semicolon in package declarations. 2014-09-16 19:32:37 +04:00
Zalim Bashorov
b0aa3e9988 JS stdlib: fixed visibility in some declarations. 2014-09-16 19:32:37 +04:00
Zalim Bashorov
0b0e9ee244 JS stdlib: test that js library doesn't contain internal declarations. 2014-09-16 19:32:37 +04:00
Zalim Bashorov
838c384672 "js" -> "kotlin.js" 2014-09-16 19:32:37 +04:00
Zalim Bashorov
b28b0046d1 Minor: drop obsolete code. 2014-09-16 19:32:37 +04:00
Zalim Bashorov
efd4409dbf Minor: increase memory in JS backend tests. 2014-09-16 19:32:37 +04:00
Zalim Bashorov
59b83679b3 Minor in JS stdlib: made stdlib warning less -- suppressed some BASE_WITH_NULLABLE_UPPER_BOUND warnings and fix one extra out projection. 2014-09-16 18:07:37 +04:00
Zalim Bashorov
0c0d049de7 Minor in JS backend: drop unnecessary inline annotations. 2014-09-16 18:07:37 +04:00
Zalim Bashorov
0fd1b5152a Minor in JS backend: added comment for InvokeIntrinsic::bothReceivers. 2014-09-16 18:07:36 +04:00
Michael Bogdanov
a735d67e86 Check noinline annotation on non-local return processing 2014-09-16 15:33:14 +04:00
Michael Bogdanov
b763aa9995 Added platform static checker with provider implementation 2014-09-16 14:38:15 +04:00
Zalim Bashorov
9b065a89b9 JS backend: fix annotation class compilation. 2014-09-16 14:21:50 +04:00
Alexander Udalov
1905401273 Move ClassId to module descriptors, closer to other names 2014-09-16 11:36:39 +04:00
Alexander Udalov
ed92eb1d17 Minor, use another constructor of ClassId 2014-09-16 11:32:45 +04:00
Alexander Udalov
b0539ac7a4 Minor, fix old terminology mistake 2014-09-15 19:30:53 +04:00
Alexander Udalov
cfefa0c970 Convert VirtualFileKotlinClass to Kotlin 2014-09-15 19:30:53 +04:00
Alexander Udalov
940d07c81b Rename VirtualFileKotlinClass.java to .kt 2014-09-15 19:30:53 +04:00
Alexander Udalov
556e313141 Minor, improve multi-module java analysis test
- don't check supertypes for every callable in a class
- don't check methods from Any
- check that all descriptors were correctly resolved (otherwise the test
  failure error message was very cryptic)
2014-09-15 19:30:53 +04:00
Alexander Udalov
73a92c6aa9 Remove JavaClass.getAllMethods()/getAllFields()
Their behavior is different in PSI and reflection (two things that this
interface is supposed to unify), so there's no point in making it interface
methods, rather we should just walk supertype hierarchy manually

Also make JavaClassImpl.getSupertypes() invoke PsiClass.getSuperTypes(),
because it also contains java.lang.Object for interfaces, which makes
equals/hashCode/toString appear in interfaces' getAllMethods() as well
2014-09-15 19:30:53 +04:00
Alexander Udalov
f39c3041d2 Make MISSING_VAL_ON_ANNOTATION_PARAMETER error instead of warning
Annotation with a parameter that is not stored doesn't make any sense
2014-09-15 19:30:52 +04:00
Alexander Udalov
f64e633a7e Minor, add NotNull annotations to test sources 2014-09-15 19:30:52 +04:00
Alexander Udalov
3485d65d8a Remove superfluous isVararg() from JavaMethod 2014-09-15 19:30:52 +04:00
Alexander Udalov
924283d2d9 Extract JavaConstructor out of JavaMethod
Will be useful in reflection-backed implementation of Java structure, where
Constructor is not a Method and doesn't even inherit from it
2014-09-15 19:30:52 +04:00
Alexander Udalov
04ff45dee3 Drop "toClassId" in DeserializerForDecompiler 2014-09-15 19:30:51 +04:00
Alexander Udalov
7595e32bb6 Use ClassId instead of JvmClassName in KotlinJvmBinaryClass
ClassId contains exact information about origin of the class (e.g. if '$' in
the class name denotes nested classes separator or just a character in the
name)
2014-09-15 19:30:51 +04:00
Alexander Udalov
1f8b2cef52 Read InnerClasses attribute value in FileBasedKotlinClass
Resolve names mentioned in class declarations based on this information
2014-09-15 19:30:51 +04:00
Alexander Udalov
e3b01f073f Replace FqName by ClassId where possible in Java resolver 2014-09-15 19:30:51 +04:00
Alexander Udalov
9648c50ac9 Minor, refactor FileBasedKotlinClass factory method 2014-09-15 19:30:51 +04:00
Alexander Udalov
fa39bf03a0 Extract abstract FileBasedKotlinClass out of VirtualFileKotlinClass
Add another implementation of FileBasedKotlinClass which was indirectly used in
jps-plugin (LocalFileKotlinClass)
2014-09-15 19:30:51 +04:00
Alexander Udalov
f34f2e71a8 Minor, add NotNull annotations to VirtualFileKotlinClass 2014-09-15 19:30:50 +04:00
Alexander Udalov
a8c5f1bb3a Drop KotlinClassFinder#findKotlinClass(FqName)
findKotlinClass(ClassId) should be used instead
2014-09-15 19:30:50 +04:00
Alexander Udalov
422e922c36 Make JavaClassFinder accept ClassId rather than FqName
ClassId has more information about the name which will be very useful when
implementing JavaClassFinder in reflection
2014-09-15 19:30:50 +04:00
Alexander Udalov
e9ae06a53e Straighten out MemberIndex calculation in LazyJavaStaticScope
Also delete confusing "inn" function
2014-09-15 19:30:50 +04:00
Alexander Udalov
0cb7c08a7a Minor, delete unneeded underscores from parameter names 2014-09-15 19:30:50 +04:00
Alexander Udalov
bc1d59a538 Add KotlinClassFinder#findKotlinClass(ClassId)
Will be used to load nested classes correctly at runtime
2014-09-15 19:30:50 +04:00
Alexander Udalov
c854b1d713 Unextend JavaAnnotationArgumentImpl from JavaElementImpl 2014-09-15 19:30:49 +04:00
Alexander Udalov
4c51368244 Rewrite JavaAnnotationArgument interfaces and implementations to Kotlin 2014-09-15 19:30:49 +04:00
Alexander Udalov
ec02382976 Assert that reference annotation argument is always an enum value
Rename JavaReferenceAnnotationArgument on that occasion to
JavaEnumValueAnnotationArgument. Also add a test on a nested enum annotation
argument
2014-09-15 19:30:49 +04:00
Alexander Udalov
13eeb18219 Delete "idea.properties"
Apparently it was committed by mistake and never used since then
2014-09-15 19:30:49 +04:00
Alexander Udalov
3822c48f30 Include additional IDE modules to "IDE" scope
- include modules "idea-analysis" and "ide-lazy-resolve"
- exclude all files starting from "idea" such as idea.properties, ideaSDK etc.
2014-09-15 19:30:49 +04:00
Andrey Breslav
f1cf446e10 KT-5773 Smart cast doesn't work with Nothing on the rhs of "?:"
#KT-5773 FIxed
2014-09-15 18:24:13 +04:00
Alexander Udalov
3a806713fd Fix obscure typo in isEqual() in KotlinClassFileIndex 2014-09-12 21:18:24 +04:00
Alexander Udalov
8cc1a1da27 Minor, fix warnings in KotlinClassFileIndex 2014-09-12 21:18:18 +04:00
Natalia Ukhorskaya
ecaf87f51c Minor, tests: rename test directive in debugger tests 2014-09-12 17:26:33 +04:00
Natalia Ukhorskaya
e16673f50a Debugger tests: do not print line numbers in stdlib 2014-09-12 17:26:32 +04:00
Pavel V. Talanov
3eeed559b4 Use different scope in completion/autoimport if element is in production source root 2014-09-12 13:09:20 +04:00
Pavel V. Talanov
88b262faf1 Make test source module a friend of production source module 2014-09-12 13:08:31 +04:00
Pavel V. Talanov
f3a9bed14a Introduce ModuleDescriptor#isFriend(ModuleDescriptor)
Use it to allow friend modules to see internal members
2014-09-12 13:08:30 +04:00
Pavel V. Talanov
10666d777d Split ModuleSourceInfo into ModuleProductionSourceInfo and ModuleTestSourceInfo 2014-09-12 13:08:29 +04:00
Pavel V. Talanov
3e25e16599 Refactor: drop redundant abstractions in IdeaModuleInfoTest 2014-09-12 13:08:27 +04:00
Alexey Sedunov
424c086ba3 Sort list of declarations suggested for auto-import by proximity
#KT-2050 Fixed
2014-09-11 21:04:27 +04:00
Alexey Sedunov
650c9c6da5 Quick Fixes: Support "WITH_RUNTIME" directive in multi-file quick fix tests 2014-09-11 21:04:26 +04:00
Alexander Udalov
e0ee890486 Move properties of enum class object to the enum class
Similar to how it's done for usual classes
2014-09-11 17:56:43 +04:00
Alexander Udalov
81004889eb Fix initialization of object's INSTANCE$ field
Call object's constructor in <clinit> and ignore the result, but in the first
line of <init> save the current "this" to INSTANCE$

 #KT-4516 Fixed
 #KT-4543 Fixed
 #KT-5291 Fixed
 #KT-5523 Fixed
 #KT-5582 Fixed
2014-09-11 17:56:43 +04:00
Alexander Udalov
b907f35995 Minor, fix some warnings in codegen 2014-09-11 17:56:43 +04:00
Alexander Udalov
8c781e5d14 Minor, remove duplicate method in ExpressionCodegen 2014-09-11 17:56:42 +04:00
Alexander Udalov
937404239e Minor, delete unused method in DataFlowInfo 2014-09-11 17:56:27 +04:00
Nikolay Krasko
32c00a4623 Return tree structure in test view result for running single test 2014-09-11 17:45:26 +04:00
Nikolay Krasko
10fbd4a269 Test that tests are executed only once in "All Tests" 2014-09-11 15:44:59 +04:00
Nikolay Krasko
80616a1fcb Drop all inners classes if sorting is needed 2014-09-11 15:44:58 +04:00
Natalia Ukhorskaya
32f6d7feac Add test for KT-5554: coerce arrays in return
#KT-5554 Fixed
2014-09-11 15:04:46 +04:00
Natalia Ukhorskaya
e0469de5be Eval4j: fix coerce for arrays in return
#KT-5554 Fixed
2014-09-11 15:04:44 +04:00
Natalia Ukhorskaya
4667190b8c Minor: fix typo 2014-09-11 15:04:43 +04:00
Natalia Ukhorskaya
50dcef254d Debugger: get correct context for breakpoints inside lambdas 2014-09-11 15:04:41 +04:00
Natalia Ukhorskaya
a1e586cf7c Tests: extract base class 2014-09-11 15:02:59 +04:00
Nikolay Krasko
b6abd6442a Don't try to search for component function if asked completely different function 2014-09-11 12:52:57 +04:00
Nikolay Krasko
c3f44d5030 Refactoring: create DataClassUtils and move all "component" function utils there 2014-09-11 12:52:57 +04:00
Nikolay Krasko
65d358a066 Don't generate component function in lazy resolve for parameter if it has no val/var 2014-09-11 12:52:56 +04:00
Nikolay Krasko
caee19cdc7 Generate copy() in data class even if constructor is empty or not present 2014-09-11 12:52:55 +04:00
Nikolay Krasko
fa393cf4f5 Escape surrogate characters 2014-09-11 12:52:54 +04:00
Alexander Udalov
83f47412b6 Eliminate package "light" from org.jetbrains.jet.asJava
Move everything to org.jetbrains.jet.asJava because classes for some light
elements were already there
2014-09-11 10:37:48 +04:00
Alexander Udalov
50a301865f Move KotlinLightMethod and KotlinLightElement to "jet.as.java.psi" 2014-09-11 10:37:47 +04:00
Alexander Udalov
fec64b31dc Fix resolve of Kotlin enum entries from Java
#KT-5719 Fixed
2014-09-11 10:37:47 +04:00
Alexander Udalov
70561cc539 Fix resolution of Kotlin enums' values() and valueOf() from Java
Use the code from PsiClassImpl / ClsClassImpl, which for some reason is absent
in AbstractLightClass

 #KT-5591 Fixed
2014-09-11 10:37:45 +04:00
Alexander Udalov
d4b1797646 Override getText() in light classes to prevent decompiler errors on Kotlin sources
Fixes EA-58277
2014-09-11 10:37:07 +04:00
Zalim Bashorov
48de3b706d Frontend: added the support file annotations to LazyTopDownAnalyzer. 2014-09-10 22:39:12 +04:00
Zalim Bashorov
6d0bcf8b32 Frontend: added the support file annotations to TopDownAnalyzer. 2014-09-10 22:39:12 +04:00
Zalim Bashorov
486b6be32c Minor in Parser: "attribute" -> "annotation" 2014-09-10 22:39:11 +04:00
Zalim Bashorov
d71c3d6166 Minor in Parser: moved some annotation tests. 2014-09-10 22:39:11 +04:00
Zalim Bashorov
fb97b1df93 Minor in Parser: drop obsolete code. 2014-09-10 22:39:11 +04:00
Zalim Bashorov
3c60d0de93 Parser: added the support file annotations. 2014-09-10 22:39:11 +04:00
Zalim Bashorov
506610302a Parser: added the support file annotations to grammar. 2014-09-10 22:39:11 +04:00
Zalim Bashorov
771b887e9f Minor: add ".idea/shelf" to ".gitignore". 2014-09-10 22:39:10 +04:00
Michael Bogdanov
08e02f4176 Moving platformStatic annotation to kotlin.platform package 2014-09-10 17:35:59 +04:00
Andrey Breslav
b8b0316d97 Reporting ACCIDENTAL_OVERRIDE on jvm signatures that have no descriptors
(marking them SYNTHETIC)
2014-09-10 17:35:54 +04:00
Alexey Sedunov
9b7bccce22 Move: Move refactoring should correct constructor call when moving inner class
#KT-4676 Fixed
2014-09-10 16:44:51 +04:00
Alexey Sedunov
feb393e4c8 Extract Function: Merge initialized declarations on call site when possible 2014-09-10 16:44:50 +04:00
Alexey Sedunov
dd78ed6d4a Extract Function: Generate variables when boxing multiline expressions 2014-09-10 16:44:49 +04:00
Alexey Sedunov
1a63f9b815 Refactoring Util: Implement PsiElement.getLineCount() 2014-09-10 16:44:47 +04:00
Alexey Sedunov
b59da7686c Pseudocode: Fix type predicate inference for values used inside of lambda 2014-09-10 16:44:47 +04:00
Alexey Sedunov
76433571f8 Extract Function: Support multiple output values 2014-09-10 16:44:46 +04:00
Alexey Sedunov
7a15a88288 Minor: Change signature 2014-09-10 16:44:44 +04:00
Pavel V. Talanov
e6df5c4bdc KotlinSignature markers do not fail in case of enum in sources
Refactor to make all KotlinSignature intention share some logic
2014-09-10 15:20:59 +04:00
Nikolay Krasko
d32221ff4a Add sorted and filter to custom test runner 2014-09-09 23:35:16 +04:00
Alexander Udalov
55e5241158 Regenerate tests 2014-09-09 20:42:39 +04:00
Alexander Udalov
c274fc8d6d Drop outdated JVM intrinsics EnumValueOf and EnumValues 2014-09-09 20:42:39 +04:00
Alexander Udalov
25bb220223 Fix navigation on values()/valueOf() of enum classes 2014-09-09 20:42:39 +04:00
Alexander Udalov
4d212be31f Refactor QualifiedExpressionResolver
- fix return types everywhere: Collection<DeclarationDescriptor> instead of
  Collection<? extends DeclarationDescriptor>
- delete useless LookupResult.EMPTY and merge LookupResult with
  SuccessfulLookupResult
- reformat, minor inlines, etc.
2014-09-09 20:42:38 +04:00
Alexander Udalov
5b1993f62a Resolve "values" and "valueOf" in enum class object
Import enum class's static scope into its class object's member scope
2014-09-09 20:42:38 +04:00
Alexander Udalov
2f12875515 Extract "values" and "valueOf" names as static constants 2014-09-09 20:42:38 +04:00
Alexander Udalov
4bd603818a Drop LazyJavaDescriptor, JavaPackageFragmentDescriptor 2014-09-09 20:42:38 +04:00
Alexander Udalov
148d583212 Drop JavaPackageFragmentProvider 2014-09-09 20:42:38 +04:00
Alexander Udalov
3b05ec0df4 Remove duplicate code from JvmCodegenUtil 2014-09-09 20:42:37 +04:00
Alexander Udalov
d52eff0825 JS: update support of enum's values() and valueOf() 2014-09-09 20:42:37 +04:00
Alexander Udalov
c5345a83c9 Minor, reuse existing method 2014-09-09 20:42:37 +04:00
Alexander Udalov
476dc78c16 Refine getClassObjectDescriptor()'s type
This reverts commit db3e5ed678.
2014-09-09 20:42:37 +04:00
Alexander Udalov
b52f337f7f Drop enum class object hack
Place valueOf() and values() into the static scope of the corresponding enum
class

 #KT-5580 Fixed
 #KT-2410 Fixed
2014-09-09 20:42:37 +04:00
Alexander Udalov
bb54825fac Fix incorrect test data for wrong KotlinSignature CLI test
Classes from the root package cannot be referenced from a non-root package
2014-09-09 20:42:36 +04:00
Alexander Udalov
8ccca1781d Support static class scope in frontend, JVM codegen and IDE 2014-09-09 20:42:36 +04:00
Alexander Udalov
cb81023469 Minor, fix warnings and formatting in QualifiedExpressionResolver 2014-09-09 20:42:36 +04:00
Alexander Udalov
76986f850f Drop outdated code in JDR related to static class members 2014-09-09 20:42:36 +04:00
Alexander Udalov
bcfb5f3b09 Rewrite Java resolve to use static class scope instead of synthesized packages
#KT-4149 Fixed
 #KT-4839 Fixed
2014-09-09 20:42:36 +04:00
Alexander Udalov
75df4a9ad8 Introduce ClassDescriptor#getStaticScope()
Will be used to exterminate hacks related to static Java methods in our
codebase: synthetic class object for enum, synthetic package for static members
of Java classes, etc.
2014-09-09 20:42:35 +04:00
Alexander Udalov
7ad88f7799 Minor, add test for obsolete issue
#KT-4021 Obsolete
2014-09-09 20:42:35 +04:00
Alexander Udalov
d86903ccd4 Minor, add codegen test on extension to nested class 2014-09-09 20:42:35 +04:00
Alexander Udalov
2fbba060de Minor, fix "J2K Tests" run configuration 2014-09-09 20:42:35 +04:00
Pavel V. Talanov
123b6ed529 Do not skip top level members from sources under library classes root
Fix problems with JavaScript libraries
2014-09-09 19:51:45 +04:00
Michael Bogdanov
7aaae8a2f7 Synthetic accessor refactoring: extract general interface 2014-09-09 16:28:28 +04:00
Michael Bogdanov
e26d635633 Initial implementation of platformStatic 2014-09-09 16:28:28 +04:00
Michael Bogdanov
7bbedd9685 Added platformStatic annotation 2014-09-09 16:26:15 +04:00
Michael Nedzelsky
36ada06bdb Remove SuppressWarning('NullableProblems') and change @NotNull annotation to @Nullable in DescriptorPredicate.apply method 2014-09-09 16:24:09 +04:00
Michael Nedzelsky
cc4f84ffae JS backend: fix KT-5738 JS backend: result of toByte() should be in the range of bytes
#KT-5738 Fixed
2014-09-09 16:24:06 +04:00
Michael Nedzelsky
a632e9e21d JS backend: fix KT-4601 JS: compareTo doesn't work on Numbers
#KT-4601 Fixed
2014-09-09 16:24:03 +04:00
Michael Nedzelsky
145050b3d1 JS backend: simplify conversion to int 2014-09-09 16:24:01 +04:00
Michael Nedzelsky
69a25ca92a JS backend: minor: improve call translation for constant receiver 2014-09-09 16:23:58 +04:00
Michael Nedzelsky
377f6fe4da JS backend: fix labels before for and do while loops 2014-09-09 16:23:55 +04:00
Nikolay Krasko
041d009b9a Regenerate tests 2014-09-09 14:28:24 +04:00
Nikolay Krasko
c6905b971c New runner for auto-generated test
- Run classes with inners
- Remove suite() methods in generated and prevent double test execution
2014-09-09 14:28:22 +04:00
Andrey Breslav
32c8d3a96d Tests regenerated 2014-09-08 19:57:41 +04:00
Andrey Breslav
cb07c65b7d @TestDataPath and @TestDataFile annotation added to facilitate navigation to test data 2014-09-08 19:57:40 +04:00
Alexey Sedunov
e274af7be8 Pseudocode: Filter out nulls before combining type predicates
#KT-5732 Fixed
2014-09-08 17:48:47 +04:00
Michael Nedzelsky
81c7a1b1da JS backend: return empty expression for unreachable code during translation 2014-09-08 11:30:20 +04:00
Michael Nedzelsky
6e728852d0 add BindingUtilsPackage.isUnreachableCode 2014-09-08 11:30:12 +04:00
Svetlana Isakova
f5feb3bf33 Fixed: label copies should be added to all labels 2014-09-07 01:04:01 +04:00
Svetlana Isakova
976d5ab030 Pseudocode: don't write full label name when jump on it 2014-09-07 01:04:00 +04:00
Svetlana Isakova
3a9b7bbade Improved error message for 'nested class should be qualified' 2014-09-07 01:04:00 +04:00
Svetlana Isakova
4590452b27 Added tests for KT-4870 "Change to constructor invocation" quick fix doesn't work
for local classes, objects and object expressions

 #KT-4870 Obsolete
2014-09-07 01:03:59 +04:00
Svetlana Isakova
91b0ad2023 Removed 'implicit this' from scope for member lookup 2014-09-07 01:03:59 +04:00
Svetlana Isakova
067ac5c94a Fixed one part of 'Resolution error of this type shouldn't occur for...'
Result for "IF<T>(T, T)" can be "hasUnknownParameters"
if both arguments have types 'uninferred type parameter' (incomplete resolve case),
no constraints are added to the system.
2014-09-07 01:03:58 +04:00
Svetlana Isakova
61dc110cc7 Report 'break or continue outside a loop'
for break/continue outside a loop body (e.g. in loop condition)

 #KT-5724 Fixed
2014-09-07 01:03:57 +04:00
Svetlana Isakova
0b4f313b6d Jump on 'continue' to condition entry points for all loops 2014-09-05 18:31:53 +04:00
Michael Nedzelsky
25a0854dbd fix KT-5645: 'continue' inside 'do...while' statement works as goto to the beginning of the loop (not checking loop condition)
#KT-5645 Fixed
2014-09-05 18:31:53 +04:00
Svetlana Isakova
3d7c22f242 Added exact label names for labels 2014-09-05 18:31:53 +04:00
Alexey Sedunov
ebcac73874 Find Usages: Skip overriden descriptors which have no corresponding declaration (EA-58371) 2014-09-05 17:39:56 +04:00
Alexey Sedunov
f11621615b Pseudocode: Do not generate VALUE_CONSUMER if property delegate has no value (EA-59276) 2014-09-05 17:39:54 +04:00
Alexey Sedunov
e03bae44d9 Extract Function: Support multi-declaration initializers
#KT-5613 Fixed
2014-09-05 17:39:53 +04:00
Natalia Ukhorskaya
b33e696ab7 Fix Android tests 2014-09-05 12:23:31 +04:00
21743 changed files with 595432 additions and 405817 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
.DS_Store
.idea/shelf
/android.tests.dependencies
/confluence/target
/dependencies
@@ -13,4 +14,4 @@ tmp
workspace.xml
*.versionsBackup
/idea/testData/debugger/tinyApp/classes*
/jps-plugin/testData/kannotator
/jps-plugin/testData/kannotator

17
.idea/ant.xml generated
View File

@@ -1,18 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AntConfiguration">
<buildFile url="file://$PROJECT_DIR$/grammar/buildGrammarLexer.xml" />
<buildFile url="file://$PROJECT_DIR$/compiler/frontend/buildLexer.xml" />
<buildFile url="file://$PROJECT_DIR$/build.xml">
<maximumHeapSize value="900" />
<maximumStackSize value="20" />
<antCommandLine value="-J-XX:MaxPermSize=100m" />
<maximumHeapSize value="1024" />
</buildFile>
<buildFile url="file://$PROJECT_DIR$/update_dependencies.xml" />
<buildFile url="file://$PROJECT_DIR$/TeamCityBuild.xml">
<maximumHeapSize value="512" />
</buildFile>
<buildFile url="file://$PROJECT_DIR$/pluginPublisher/TeamCityPluginPublisher.xml" />
<buildFile url="file://$PROJECT_DIR$/idea_runner/runner.xml" />
<buildFile url="file://$PROJECT_DIR$/idea-runner/runner.xml" />
<buildFile url="file://$PROJECT_DIR$/replicate_versions.xml" />
<buildFile url="file://$PROJECT_DIR$/libraries/build-docs.xml">
<maximumHeapSize value="1024" />
<properties>
<property name="dokka.path" value="../../dokka/out/artifacts" />
</properties>
</buildFile>
</component>
</project>
</project>

View File

@@ -1,9 +1,9 @@
<component name="ArtifactManager">
<artifact type="jar" name="IdeLazyResolver">
<output-path>$PROJECT_DIR$/out/artifacts/IdeLazyResolver</output-path>
<root id="archive" name="ide-lazy-resolver.jar">
<element id="module-output" name="ide-lazy-resolve" />
<element id="dir-copy" path="$PROJECT_DIR$/idea/ide-lazy-resolve" />
<output-path>$PROJECT_DIR$/out/artifacts/internal/</output-path>
<root id="archive" name="kotlin-ide-common.jar">
<element id="module-output" name="ide-common" />
<element id="dir-copy" path="$PROJECT_DIR$/idea/ide-common" />
</root>
</artifact>
</component>

View File

@@ -1,9 +1,9 @@
<component name="ArtifactManager">
<artifact type="jar" name="InjectorGenerator">
<output-path>$PROJECT_DIR$/out/artifacts/InjectorGenerator</output-path>
<output-path>$PROJECT_DIR$/out/artifacts/internal/</output-path>
<root id="archive" name="injector-generator.jar">
<element id="module-output" name="injector-generator" />
<element id="dir-copy" path="$PROJECT_DIR$/injector-generator" />
<element id="dir-copy" path="$PROJECT_DIR$/generators/injector-generator" />
</root>
</artifact>
</component>

View File

@@ -3,8 +3,7 @@
<output-path>$PROJECT_DIR$/out/artifacts/Instrumentation</output-path>
<root id="archive" name="Instrumentation.jar">
<element id="module-output" name="instrumentation" />
<element id="extracted-dir" path="$PROJECT_DIR$/ideaSDK/lib/jetbrains-asm-debug-all-4.0.jar" path-in-jar="/" />
<element id="extracted-dir" path="$PROJECT_DIR$/ideaSDK/lib/guava-17.0.jar" path-in-jar="/" />
<element id="extracted-dir" path="$PROJECT_DIR$/ideaSDK/lib/asm-all.jar" path-in-jar="/" />
</root>
</artifact>
</component>

View File

@@ -0,0 +1,20 @@
<component name="ArtifactManager">
<artifact name="KotlinAndroidExtensions">
<output-path>$PROJECT_DIR$/out/artifacts/KotlinAndroidExtensions</output-path>
<root id="root">
<element id="directory" name="lib">
<element id="archive" name="kotlin-android-extensions.jar">
<element id="module-output" name="android-idea-plugin" />
</element>
<element id="directory" name="jps">
<element id="archive" name="kotlin-android-extensions-jps.jar">
<element id="module-output" name="android-jps-plugin" />
</element>
</element>
<element id="archive" name="android-compiler-plugin.jar">
<element id="module-output" name="android-compiler-plugin" />
</element>
</element>
</root>
</artifact>
</component>

View File

@@ -1,6 +1,12 @@
<component name="ArtifactManager">
<artifact name="KotlinBarePlugin">
<output-path>$PROJECT_DIR$/out/artifacts/BareKotlin</output-path>
<properties id="ant-postprocessing">
<options enabled="true">
<file>file://$PROJECT_DIR$/idea-runner/runner.xml</file>
<target>copy-runtime-for-idea-plugin</target>
</options>
</properties>
<root id="root">
<element id="directory" name="kotlinc">
<element id="dir-copy" path="$PROJECT_DIR$/dist/kotlinc" />
@@ -10,13 +16,11 @@
<element id="module-output" name="bare-plugin" />
<element id="module-output" name="descriptor.loader.java" />
<element id="module-output" name="frontend.java" />
<element id="module-output" name="serialization.java" />
<element id="module-output" name="descriptors" />
</element>
<element id="directory" name="jps">
<element id="artifact" artifact-name="KotlinJpsPlugin" />
</element>
<element id="file-copy" path="$PROJECT_DIR$/dist/kotlinc/lib/kotlin-runtime.jar" />
</element>
</root>
</artifact>

View File

@@ -1,18 +1,24 @@
<component name="ArtifactManager">
<artifact type="jar" name="KotlinJpsPlugin">
<output-path>$PROJECT_DIR$/out/artifacts/KotlinJpsPlugin</output-path>
<properties id="ant-postprocessing">
<options enabled="true">
<file>file://$PROJECT_DIR$/idea-runner/runner.xml</file>
<target>copy-runtime-for-jps-plugin</target>
</options>
</properties>
<root id="archive" name="kotlin-jps-plugin.jar">
<element id="directory" name="META-INF">
<element id="dir-copy" path="$PROJECT_DIR$/jps-plugin/src/META-INF" />
</element>
<element id="extracted-dir" path="$PROJECT_DIR$/dependencies/cli-parser-1.1.1.jar" path-in-jar="/" />
<element id="module-output" name="cli-common" />
<element id="module-output" name="ide-compiler-runner" />
<element id="module-output" name="idea-jps-common" />
<element id="module-output" name="jps-plugin" />
<element id="module-output" name="preloader" />
<element id="module-output" name="util" />
<element id="module-output" name="util.runtime" />
<element id="file-copy" path="$PROJECT_DIR$/resources/manifest.properties" />
<element id="file-copy" path="$PROJECT_DIR$/resources/kotlinManifest.properties" />
</root>
</artifact>
</component>

View File

@@ -1,6 +1,12 @@
<component name="ArtifactManager">
<artifact name="KotlinPlugin">
<output-path>$PROJECT_DIR$/out/artifacts/Kotlin</output-path>
<properties id="ant-postprocessing">
<options enabled="true">
<file>file://$PROJECT_DIR$/idea-runner/runner.xml</file>
<target>copy-runtime-for-idea-plugin</target>
</options>
</properties>
<root id="root">
<element id="directory" name="lib">
<element id="archive" name="kotlin-plugin.jar">
@@ -10,17 +16,16 @@
<element id="module-output" name="frontend.java" />
<element id="module-output" name="descriptor.loader.java" />
<element id="module-output" name="idea" />
<element id="module-output" name="jet.as.java.psi" />
<element id="module-output" name="light-classes" />
<element id="module-output" name="util" />
<element id="module-output" name="util.runtime" />
<element id="module-output" name="j2k" />
<element id="module-output" name="js.translator" />
<element id="module-output" name="js.frontend" />
<element id="module-output" name="js.parser" />
<element id="module-output" name="cli-common" />
<element id="module-output" name="ide-compiler-runner" />
<element id="module-output" name="idea-jps-common" />
<element id="module-output" name="preloader" />
<element id="module-output" name="serialization" />
<element id="module-output" name="serialization.java" />
<element id="module-output" name="deserialization" />
<element id="module-output" name="backend-common" />
<element id="library" level="project" name="builtins" />
<element id="module-output" name="js.dart-ast" />
@@ -30,13 +35,19 @@
</element>
<element id="module-output" name="eval4j" />
<element id="module-output" name="idea-analysis" />
<element id="module-output" name="ide-lazy-resolve" />
<element id="module-output" name="ide-common" />
<element id="file-copy" path="$PROJECT_DIR$/resources/kotlinManifest.properties" />
<element id="module-output" name="kotlin-android-plugin" />
<element id="module-output" name="js.serializer" />
<element id="module-output" name="serialization" />
<element id="module-output" name="idea-completion" />
<element id="module-output" name="idea-core" />
</element>
<element id="library" level="project" name="javax.inject" />
<element id="directory" name="jps">
<element id="artifact" artifact-name="KotlinJpsPlugin" />
</element>
<element id="file-copy" path="$PROJECT_DIR$/dist/kotlinc/lib/kotlin-runtime.jar" />
<element id="library" level="project" name="markdown" />
</element>
<element id="directory" name="kotlinc">
<element id="dir-copy" path="$PROJECT_DIR$/dist/kotlinc" />

6
.idea/compiler.xml generated
View File

@@ -2,6 +2,9 @@
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<excludeFromCompile>
<directory url="file://$PROJECT_DIR$/core/reflection.jvm" includeSubdirectories="true" />
</excludeFromCompile>
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
@@ -22,5 +25,4 @@
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_STRING" value="-target 1.6" />
</component>
</project>
</project>

View File

@@ -3,9 +3,16 @@
<words>
<w>accessors</w>
<w>goto</w>
<w>gradle</w>
<w>intrinsics</w>
<w>kdoc</w>
<w>kompiler</w>
<w>memoize</w>
<w>memoized</w>
<w>multiline</w>
<w>preload</w>
<w>preloader</w>
<w>preloading</w>
<w>preprocess</w>
<w>redeclarations</w>
<w>subclassed</w>

View File

@@ -1,9 +1,14 @@
<component name="ProjectDictionaryState">
<dictionary name="valentin">
<words>
<w>funs</w>
<w>initializers</w>
<w>inserter</w>
<w>pparent</w>
<w>processings</w>
<w>rbracket</w>
<w>rparenth</w>
<w>selectioner</w>
</words>
</dictionary>
</component>

View File

@@ -402,7 +402,6 @@
</scope>
<option name="m_ignoreJavadoc" value="true" />
</inspection_tool>
<inspection_tool class="UnnecessaryInterfaceModifier" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UnnecessaryLabelOnBreakStatement" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="UnnecessaryLabelOnContinueStatement" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="UnnecessaryQualifierForThis" enabled="true" level="WARNING" enabled_by_default="true" />

21
.idea/libraries/android_plugin.xml generated Normal file
View File

@@ -0,0 +1,21 @@
<component name="libraryTable">
<library name="android-plugin">
<ANNOTATIONS>
<root url="file://$PROJECT_DIR$/annotations" />
</ANNOTATIONS>
<CLASSES>
<root url="file://$PROJECT_DIR$/ideaSDK/plugins/android/lib" />
<root url="file://$PROJECT_DIR$/ideaSDK/plugins/android/lib/jps" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/android/android/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/android/android/common/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/android/android/rt/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/android/android/jps-plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/android/android/ultimate/src" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/ideaSDK/plugins/android/lib" recursive="false" />
<jarDirectory url="file://$PROJECT_DIR$/ideaSDK/plugins/android/lib/jps" recursive="false" />
</library>
</component>

11
.idea/libraries/cli_parser.xml generated Normal file
View File

@@ -0,0 +1,11 @@
<component name="libraryTable">
<library name="cli-parser">
<CLASSES>
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/coverage_plugin.xml generated Normal file
View File

@@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="coverage-plugin">
<CLASSES>
<root url="jar://$PROJECT_DIR$/ideaSDK/plugins/coverage/lib/coverage.jar!/" />
<root url="jar://$PROJECT_DIR$/ideaSDK/plugins/coverage/lib/jacocoant.jar!/" />
<root url="jar://$PROJECT_DIR$/ideaSDK/plugins/coverage/lib/coverage-agent.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/coverage/src" />
</SOURCES>
</library>
</component>

View File

@@ -4,11 +4,11 @@
<root url="file://$PROJECT_DIR$/annotations" />
</ANNOTATIONS>
<CLASSES>
<root url="jar://$PROJECT_DIR$/dependencies/dx.jar!/" />
<root url="jar://$PROJECT_DIR$/dependencies/android-5.0/lib/dx.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/dependencies/dx-sources.jar!/" />
<root url="file://$PROJECT_DIR$/dependencies/dx-src/src" />
</SOURCES>
</library>
</component>

View File

@@ -2,6 +2,7 @@
<library name="idea-full">
<ANNOTATIONS>
<root url="file://$PROJECT_DIR$/annotations" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/" />
</ANNOTATIONS>
<CLASSES>
<root url="file://$PROJECT_DIR$/ideaSDK/lib" />
@@ -10,6 +11,7 @@
<SOURCES>
<root url="jar://$PROJECT_DIR$/dependencies/guava-17.0-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/dependencies/asm5-src.zip!/" />
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/gradle-tooling-extension-impl/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/groovy-psi/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/jetgroovy/java-production" />
@@ -18,7 +20,6 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/spellchecker/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework-java/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/util/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/RegExpSupport/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/RegExpSupport/src" />
@@ -73,6 +74,9 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/model-serialization/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/plugin-system/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/standalone-builder/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/tests/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/analysis-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/analysis-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/annotations/src" />
@@ -81,6 +85,8 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/core-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/core-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/duplicates-analysis/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/dvcs-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/dvcs-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/editor-ui-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/editor-ui-ex/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/extensions/src" />
@@ -131,6 +137,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-api/vcs-api-core/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-impl/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-log/api/src" />
@@ -178,6 +185,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/resources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/testSources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/editorconfig/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/generate-tostring/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/generate-tostring/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/git4idea/remote-servers-git/src" />
@@ -188,9 +196,9 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/git4idea/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/github/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/github/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/jps-plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/jps-plugin/testSource" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/resources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/runtime/source" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/source" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/testSource" />
@@ -212,8 +220,10 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/groovy/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/hg4idea/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/hg4idea/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/engine/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/engine/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/plugin/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-i18n/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-i18n/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/javaFX/FxBuilderEmbedder/src" />
@@ -267,9 +277,16 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/xslt-debugger/rt/impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/xslt-debugger/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/IntelliLang-python/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/course-creator/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/course-creator/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ide/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ipnb/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ipnb/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/openapi/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/pluginSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/pluginTestSrc" />
@@ -317,7 +334,6 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/xml/xml-psi-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/xml/xml-structure-view-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/xml/xml-structure-view-impl/src" />
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1-sources.jar!/" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/ideaSDK/lib" recursive="false" />
</library>

View File

@@ -2,14 +2,13 @@
<library name="intellij-core">
<ANNOTATIONS>
<root url="file://$PROJECT_DIR$/annotations" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/" />
</ANNOTATIONS>
<CLASSES>
<root url="file://$PROJECT_DIR$/ideaSDK/core" />
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/dependencies/guava-17.0-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/dependencies/asm5-src.zip!/" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/gradle-tooling-extension-impl/java-production" />
@@ -20,7 +19,6 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/spellchecker/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework-java/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/util/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/RegExpSupport/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/RegExpSupport/src" />
@@ -75,6 +73,9 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/model-serialization/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/plugin-system/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/standalone-builder/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/tests/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/analysis-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/analysis-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/annotations/src" />
@@ -83,6 +84,8 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/core-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/core-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/duplicates-analysis/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/dvcs-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/dvcs-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/editor-ui-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/editor-ui-ex/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/extensions/src" />
@@ -133,6 +136,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-api/vcs-api-core/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-impl/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-log/api/src" />
@@ -180,6 +184,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/resources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/testSources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/editorconfig/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/generate-tostring/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/generate-tostring/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/git4idea/remote-servers-git/src" />
@@ -190,9 +195,9 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/git4idea/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/github/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/github/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/jps-plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/jps-plugin/testSource" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/resources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/runtime/source" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/source" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/testSource" />
@@ -214,8 +219,10 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/groovy/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/hg4idea/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/hg4idea/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/engine/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/engine/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/plugin/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-i18n/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-i18n/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/javaFX/FxBuilderEmbedder/src" />
@@ -269,9 +276,16 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/xslt-debugger/rt/impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/xslt-debugger/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/IntelliLang-python/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/course-creator/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/course-creator/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ide/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ipnb/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ipnb/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/openapi/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/pluginSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/pluginTestSrc" />

View File

@@ -2,6 +2,7 @@
<library name="intellij-core-analysis">
<ANNOTATIONS>
<root url="file://$PROJECT_DIR$/annotations" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/" />
</ANNOTATIONS>
<CLASSES>
<root url="jar://$PROJECT_DIR$/ideaSDK/core-analysis/intellij-core-analysis.jar!/" />
@@ -9,7 +10,6 @@
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/dependencies/asm5-src.zip!/" />
<root url="jar://$PROJECT_DIR$/dependencies/cli-parser-1.1.1-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/dependencies/guava-17.0-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/gradle-tooling-extension-impl/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/groovy-psi/java-production" />
@@ -19,7 +19,6 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/spellchecker/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework-java/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework/java-production" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/testFramework/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/.jps-build-data/groovyStubs/util/java-test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/RegExpSupport/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/RegExpSupport/src" />
@@ -74,6 +73,9 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/model-serialization/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/plugin-system/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/standalone-builder/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/json/tests/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/analysis-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/analysis-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/annotations/src" />
@@ -82,6 +84,8 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/core-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/core-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/duplicates-analysis/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/dvcs-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/dvcs-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/editor-ui-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/editor-ui-ex/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/extensions/src" />
@@ -132,6 +136,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-api/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-api/vcs-api-core/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-impl/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/vcs-log/api/src" />
@@ -179,6 +184,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/resources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/eclipse/testSources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/editorconfig/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/generate-tostring/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/generate-tostring/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/git4idea/remote-servers-git/src" />
@@ -189,9 +195,9 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/git4idea/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/github/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/github/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/jps-plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/jps-plugin/testSource" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/resources" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/runtime/source" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/source" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/google-app-engine/testSource" />
@@ -213,8 +219,10 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/groovy/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/hg4idea/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/hg4idea/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/engine/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/engine/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/plugin/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-decompiler/plugin/test" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-i18n/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/java-i18n/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/javaFX/FxBuilderEmbedder/src" />
@@ -268,9 +276,16 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/xslt-debugger/rt/impl/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/xslt-debugger/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/IntelliLang-python/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/course-creator/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/course-creator/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/learn-python/tests" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/edu/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/gen" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ide/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ipnb/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/ipnb/testSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/openapi/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/pluginSrc" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/python/pluginTestSrc" />

12
.idea/libraries/intellilang_plugin.xml generated Normal file
View File

@@ -0,0 +1,12 @@
<component name="libraryTable">
<library name="intellilang-plugin">
<CLASSES>
<root url="jar://$PROJECT_DIR$/ideaSDK/plugins/IntelliLang/lib/IntelliLang.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/IntelliLang/java-support" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/plugins/IntelliLang/src" />
</SOURCES>
</library>
</component>

View File

@@ -19,6 +19,7 @@
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/jps/standalone-builder/src" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util/src" />
<root url="jar://$PROJECT_DIR$/dependencies/protobuf-java-2.5.0-sources.jar!/" />
<root url="jar://$PROJECT_DIR$/ideaSDK/sources/sources.zip!/platform/util-rt/src" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/ideaSDK/jps" recursive="false" />
</library>

View File

@@ -5,7 +5,9 @@
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-runtime-sources.jar!/" />
<root url="file://$PROJECT_DIR$/libraries/stdlib/src" />
<root url="file://$PROJECT_DIR$/core/builtins/src" />
<root url="file://$PROJECT_DIR$/core/runtime.jvm/src" />
</SOURCES>
</library>
</component>

9
.idea/libraries/markdown.xml generated Normal file
View File

@@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="markdown">
<CLASSES>
<root url="jar://$PROJECT_DIR$/dependencies/markdown.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

5
.idea/misc.xml generated
View File

@@ -51,7 +51,7 @@
<component name="ProjectResources">
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="WebServicesPlugin" addRequiredLibraries="true" />
@@ -60,5 +60,4 @@
<option name="autoscroll" value="false" />
<option name="showOnlyWarnings" value="false" />
</component>
</project>
</project>

36
.idea/modules.xml generated
View File

@@ -3,49 +3,59 @@
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Kotlin.iml" filepath="$PROJECT_DIR$/Kotlin.iml" />
<module fileurl="file://$PROJECT_DIR$/_my/_my.iml" filepath="$PROJECT_DIR$/_my/_my.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/android-compiler-plugin/android-compiler-plugin.iml" filepath="$PROJECT_DIR$/plugins/android-compiler-plugin/android-compiler-plugin.iml" group="plugins" />
<module fileurl="file://$PROJECT_DIR$/plugins/android-idea-plugin/android-idea-plugin.iml" filepath="$PROJECT_DIR$/plugins/android-idea-plugin/android-idea-plugin.iml" group="plugins" />
<module fileurl="file://$PROJECT_DIR$/plugins/android-jps-plugin/android-jps-plugin.iml" filepath="$PROJECT_DIR$/plugins/android-jps-plugin/android-jps-plugin.iml" group="plugins" />
<module fileurl="file://$PROJECT_DIR$/android-studio/android-studio.iml" filepath="$PROJECT_DIR$/android-studio/android-studio.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/compiler/android-tests/android-tests.iml" filepath="$PROJECT_DIR$/compiler/android-tests/android-tests.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/ant/ant.iml" filepath="$PROJECT_DIR$/ant/ant.iml" />
<module fileurl="file://$PROJECT_DIR$/compiler/backend/backend.iml" filepath="$PROJECT_DIR$/compiler/backend/backend.iml" group="compiler/java" />
<module fileurl="file://$PROJECT_DIR$/compiler/backend-common/backend-common.iml" filepath="$PROJECT_DIR$/compiler/backend-common/backend-common.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/jps-plugin/bare-plugin/bare-plugin.iml" filepath="$PROJECT_DIR$/jps-plugin/bare-plugin/bare-plugin.iml" group="ide/jps" />
<module fileurl="file://$PROJECT_DIR$/build-tools/build-tools.iml" filepath="$PROJECT_DIR$/build-tools/build-tools.iml" />
<module fileurl="file://$PROJECT_DIR$/core/builtins/builtins.iml" filepath="$PROJECT_DIR$/core/builtins/builtins.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/compiler/builtins-serializer/builtins-serializer.iml" filepath="$PROJECT_DIR$/compiler/builtins-serializer/builtins-serializer.iml" group="compiler/cli" />
<module fileurl="file://$PROJECT_DIR$/compiler/cli/cli.iml" filepath="$PROJECT_DIR$/compiler/cli/cli.iml" group="compiler/cli" />
<module fileurl="file://$PROJECT_DIR$/compiler/cli/cli-common/cli-common.iml" filepath="$PROJECT_DIR$/compiler/cli/cli-common/cli-common.iml" group="compiler/cli" />
<module fileurl="file://$PROJECT_DIR$/compiler/integration-tests/compiler-integration-tests.iml" filepath="$PROJECT_DIR$/compiler/integration-tests/compiler-integration-tests.iml" group="compiler/cli" />
<module fileurl="file://$PROJECT_DIR$/compiler/tests/compiler-tests.iml" filepath="$PROJECT_DIR$/compiler/tests/compiler-tests.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/core/descriptor.loader.java/descriptor.loader.java.iml" filepath="$PROJECT_DIR$/core/descriptor.loader.java/descriptor.loader.java.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/descriptors/descriptors.iml" filepath="$PROJECT_DIR$/core/descriptors/descriptors.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/descriptors.runtime/descriptors.runtime.iml" filepath="$PROJECT_DIR$/core/descriptors.runtime/descriptors.runtime.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/deserialization/deserialization.iml" filepath="$PROJECT_DIR$/core/deserialization/deserialization.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/eval4j/eval4j.iml" filepath="$PROJECT_DIR$/eval4j/eval4j.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/compiler/frontend/frontend.iml" filepath="$PROJECT_DIR$/compiler/frontend/frontend.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/compiler/frontend.java/frontend.java.iml" filepath="$PROJECT_DIR$/compiler/frontend.java/frontend.java.iml" group="compiler/java" />
<module fileurl="file://$PROJECT_DIR$/generators/generators.iml" filepath="$PROJECT_DIR$/generators/generators.iml" group="infrastructure" />
<module fileurl="file://$PROJECT_DIR$/grammar/grammar.iml" filepath="$PROJECT_DIR$/grammar/grammar.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/ide-compiler-runner/ide-compiler-runner.iml" filepath="$PROJECT_DIR$/ide-compiler-runner/ide-compiler-runner.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/ide-lazy-resolve/ide-lazy-resolve.iml" filepath="$PROJECT_DIR$/idea/ide-lazy-resolve/ide-lazy-resolve.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/ide-common/ide-common.iml" filepath="$PROJECT_DIR$/idea/ide-common/ide-common.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/idea.iml" filepath="$PROJECT_DIR$/idea/idea.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/idea-analysis/idea-analysis.iml" filepath="$PROJECT_DIR$/idea/idea-analysis/idea-analysis.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea_runner/idea_runner.iml" filepath="$PROJECT_DIR$/idea_runner/idea_runner.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/injector-generator/injector-generator.iml" filepath="$PROJECT_DIR$/injector-generator/injector-generator.iml" group="infrastructure" />
<module fileurl="file://$PROJECT_DIR$/idea/idea-completion/idea-completion.iml" filepath="$PROJECT_DIR$/idea/idea-completion/idea-completion.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/idea-core/idea-core.iml" filepath="$PROJECT_DIR$/idea/idea-core/idea-core.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/idea-jps-common/idea-jps-common.iml" filepath="$PROJECT_DIR$/idea/idea-jps-common/idea-jps-common.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea-runner/idea-runner.iml" filepath="$PROJECT_DIR$/idea-runner/idea-runner.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/idea/idea-test-framework/idea-test-framework.iml" filepath="$PROJECT_DIR$/idea/idea-test-framework/idea-test-framework.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/generators/injector-generator/injector-generator.iml" filepath="$PROJECT_DIR$/generators/injector-generator/injector-generator.iml" group="infrastructure" />
<module fileurl="file://$PROJECT_DIR$/compiler/preloader/instrumentation/instrumentation.iml" filepath="$PROJECT_DIR$/compiler/preloader/instrumentation/instrumentation.iml" group="compiler/cli" />
<module fileurl="file://$PROJECT_DIR$/j2k/j2k.iml" filepath="$PROJECT_DIR$/j2k/j2k.iml" group="j2k" />
<module fileurl="file://$PROJECT_DIR$/compiler/jet.as.java.psi/jet.as.java.psi.iml" filepath="$PROJECT_DIR$/compiler/jet.as.java.psi/jet.as.java.psi.iml" group="compiler/java" />
<module fileurl="file://$PROJECT_DIR$/compiler/java8-tests/java8-tests.iml" filepath="$PROJECT_DIR$/compiler/java8-tests/java8-tests.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/jps-plugin/jps-plugin.iml" filepath="$PROJECT_DIR$/jps-plugin/jps-plugin.iml" group="ide/jps" />
<module fileurl="file://$PROJECT_DIR$/js/js.dart-ast/js.dart-ast.iml" filepath="$PROJECT_DIR$/js/js.dart-ast/js.dart-ast.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/js/js.frontend/js.frontend.iml" filepath="$PROJECT_DIR$/js/js.frontend/js.frontend.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/js/js.inliner/js.inliner.iml" filepath="$PROJECT_DIR$/js/js.inliner/js.inliner.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/js/js.parser/js.parser.iml" filepath="$PROJECT_DIR$/js/js.parser/js.parser.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/js/js.serializer/js.serializer.iml" filepath="$PROJECT_DIR$/js/js.serializer/js.serializer.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/js/js.tests/js.tests.iml" filepath="$PROJECT_DIR$/js/js.tests/js.tests.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/js/js.translator/js.translator.iml" filepath="$PROJECT_DIR$/js/js.translator/js.translator.iml" group="compiler/js" />
<module fileurl="file://$PROJECT_DIR$/jps-plugin/kannotator-jps-plugin-test/kannotator-jps-plugin-test.iml" filepath="$PROJECT_DIR$/jps-plugin/kannotator-jps-plugin-test/kannotator-jps-plugin-test.iml" group="ide/jps" />
<module fileurl="file://$PROJECT_DIR$/idea/kotlin-android-plugin/kotlin-android-plugin.iml" filepath="$PROJECT_DIR$/idea/kotlin-android-plugin/kotlin-android-plugin.iml" group="ide" />
<module fileurl="file://$PROJECT_DIR$/compiler/light-classes/light-classes.iml" filepath="$PROJECT_DIR$/compiler/light-classes/light-classes.iml" group="compiler/java" />
<module fileurl="file://$PROJECT_DIR$/compiler/plugin-api/plugin-api.iml" filepath="$PROJECT_DIR$/compiler/plugin-api/plugin-api.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/compiler/preloader/preloader.iml" filepath="$PROJECT_DIR$/compiler/preloader/preloader.iml" group="compiler/cli" />
<module fileurl="file://$PROJECT_DIR$/core/reflection/reflection.iml" filepath="$PROJECT_DIR$/core/reflection/reflection.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/reflection.jvm/reflection.jvm.iml" filepath="$PROJECT_DIR$/core/reflection.jvm/reflection.jvm.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/runtime.jvm/runtime.jvm.iml" filepath="$PROJECT_DIR$/core/runtime.jvm/runtime.jvm.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/serialization/serialization.iml" filepath="$PROJECT_DIR$/core/serialization/serialization.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/core/serialization.java/serialization.java.iml" filepath="$PROJECT_DIR$/core/serialization.java/serialization.java.iml" group="core" />
<module fileurl="file://$PROJECT_DIR$/compiler/serialization/serialization.iml" filepath="$PROJECT_DIR$/compiler/serialization/serialization.iml" group="compiler" />
<module fileurl="file://$PROJECT_DIR$/compiler/util/util.iml" filepath="$PROJECT_DIR$/compiler/util/util.iml" />
<module fileurl="file://$PROJECT_DIR$/core/util.runtime/util.runtime.iml" filepath="$PROJECT_DIR$/core/util.runtime/util.runtime.iml" group="core" />
</modules>
</component>
</project>
</project>

View File

@@ -2,18 +2,18 @@
<configuration default="false" name="All Compiler Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="compiler-tests" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.jet" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx512m -XX:MaxPermSize=320m" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx900m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=64m" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />

View File

@@ -2,18 +2,18 @@
<configuration default="false" name="All IDEA Plugin Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="idea" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.jet" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx512m -XX:MaxPermSize=320m" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx900m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=64m" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />

View File

@@ -2,18 +2,18 @@
<configuration default="false" name="All Jvm Backend Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="compiler-tests" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.jet.codegen" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.codegen" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx512m -XX:MaxPermSize=320m" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx900m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=64m" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />

View File

@@ -2,7 +2,7 @@
<configuration default="false" name="All Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
@@ -13,7 +13,7 @@
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx900m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx900m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=64m" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />
@@ -22,7 +22,6 @@
<value defaultName="moduleWithDependencies" />
</option>
<envs>
<env name="kotlin.tests.actually.compile" value="true" />
<env name="NO_FS_ROOTS_ACCESS_CHECK" value="true" />
</envs>
<patterns />
@@ -35,6 +34,9 @@
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method />
<method>
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/build.xml" target="compiler-quick" />
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/build.xml" target="runtime" />
</method>
</configuration>
</component>

View File

@@ -2,7 +2,7 @@
<configuration default="false" name="Android Studio" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="com.intellij.idea.Main" />
<option name="VM_PARAMETERS" value="-Didea.paths.selector=AndroidStudioPreview -Didea.platform.prefix=AndroidStudio -Xmx800m -XX:ReservedCodeCacheSize=64m -XX:MaxPermSize=450m -XX:+HeapDumpOnOutOfMemoryError -ea -Didea.is.internal=true -Didea.debug.mode=true -Didea.system.path=../system -Didea.config.path=../config -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.io.useCanonCaches=false -Dplugin.path=$PROJECT_DIR$/out/artifacts/Kotlin" />
<option name="VM_PARAMETERS" value="-Didea.paths.selector=AndroidStudioPreview -Didea.platform.prefix=AndroidStudio -Xmx800m -XX:ReservedCodeCacheSize=64m -XX:MaxPermSize=450m -XX:+HeapDumpOnOutOfMemoryError -ea -Didea.is.internal=true -Didea.debug.mode=true -Didea.system.path=../system-idea -Didea.config.path=../config-idea -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.io.useCanonCaches=false -Dplugin.path=$PROJECT_DIR$/out/artifacts/Kotlin,$PROJECT_DIR$/out/artifacts/KotlinAndroidExtensions" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/android-studio/sdk/bin" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
@@ -24,6 +24,9 @@
<option name="BuildArtifacts" enabled="true">
<artifact name="KotlinPlugin" />
</option>
<option name="BuildArtifacts" enabled="true">
<artifact name="KotlinAndroidExtensions" />
</option>
</method>
</configuration>
</component>

View File

@@ -4,8 +4,8 @@
<module name="android-tests" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.jet.compiler.android" />
<option name="MAIN_CLASS_NAME" value="org.jetbrains.jet.compiler.android.AndroidRunner" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.android.tests" />
<option name="MAIN_CLASS_NAME" value="org.jetbrains.kotlin.android.tests.AndroidRunner" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx512m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing" />

View File

@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Generate Injectors" type="JetRunConfigurationType" factoryName="Kotlin">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="org.jetbrains.jet.generators.injectors.InjectorsPackage" />
<option name="MAIN_CLASS_NAME" value="org.jetbrains.kotlin.generators.injectors.InjectorsPackage" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="" />
@@ -10,7 +10,13 @@
<option name="PASS_PARENT_ENVS" value="true" />
<module name="generators" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method />
</configuration>

View File

@@ -2,11 +2,11 @@
<configuration default="false" name="Generate Tests" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.generators.tests.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.generators.tests.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<option name="MAIN_CLASS_NAME" value="org.jetbrains.jet.generators.tests.TestsPackage" />
<option name="MAIN_CLASS_NAME" value="org.jetbrains.kotlin.generators.tests.TestsPackage" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />

View File

@@ -2,7 +2,7 @@
<configuration default="false" name="IDEA" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="com.intellij.idea.Main" />
<option name="VM_PARAMETERS" value="-Xmx800m -XX:ReservedCodeCacheSize=64m -XX:MaxPermSize=450m -XX:+HeapDumpOnOutOfMemoryError -ea -Didea.is.internal=true -Didea.debug.mode=true -Didea.system.path=../system-idea -Didea.config.path=../config -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.io.useCanonCaches=false -Dplugin.path=$PROJECT_DIR$/out/artifacts/Kotlin -Dkotlin.internal.mode.enabled=true" />
<option name="VM_PARAMETERS" value="-Xmx800m -XX:ReservedCodeCacheSize=64m -XX:MaxPermSize=450m -XX:+HeapDumpOnOutOfMemoryError -ea -Didea.is.internal=true -Didea.debug.mode=true -Didea.system.path=../system-idea -Didea.config.path=../config-idea -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.io.useCanonCaches=false -Dplugin.path=$PROJECT_DIR$/out/artifacts/Kotlin,$PROJECT_DIR$/out/artifacts/KotlinAndroidExtensions -Dkotlin.internal.mode.enabled=true" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/ideaSDK/bin" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
@@ -10,7 +10,7 @@
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="idea_runner" />
<module name="idea-runner" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />
@@ -43,7 +43,10 @@
<option name="BuildArtifacts" enabled="true">
<artifact name="KotlinPlugin" />
</option>
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/idea_runner/runner.xml" target="force_enable_kotlin_plugin" />
<option name="BuildArtifacts" enabled="true">
<artifact name="KotlinAndroidExtensions" />
</option>
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/idea-runner/runner.xml" target="force-enable-kotlin-plugin" />
</method>
</configuration>
</component>

View File

@@ -2,7 +2,7 @@
<configuration default="false" name="IDEA (No ProcessCanceledException)" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="com.intellij.idea.Main" />
<option name="VM_PARAMETERS" value="-Xmx800m -XX:ReservedCodeCacheSize=64m -XX:MaxPermSize=250m -XX:+HeapDumpOnOutOfMemoryError -ea -Didea.is.internal=true -Didea.debug.mode=true -Didea.system.path=../system-idea -Didea.config.path=../config -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.io.useCanonCaches=false -Dplugin.path=$PROJECT_DIR$/out/artifacts/Kotlin -Didea.ProcessCanceledException=disabled -Dkotlin.internal.mode.enabled=true" />
<option name="VM_PARAMETERS" value="-Xmx800m -XX:ReservedCodeCacheSize=64m -XX:MaxPermSize=250m -XX:+HeapDumpOnOutOfMemoryError -ea -Didea.is.internal=true -Didea.debug.mode=true -Didea.system.path=../system-idea -Didea.config.path=../config-idea -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.io.useCanonCaches=false -Dplugin.path=$PROJECT_DIR$/out/artifacts/Kotlin,$PROJECT_DIR$/out/artifacts/KotlinAndroidExtensions -Didea.ProcessCanceledException=disabled -Dkotlin.internal.mode.enabled=true" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/ideaSDK/bin" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
@@ -10,7 +10,7 @@
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="idea_runner" />
<module name="idea-runner" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />
@@ -24,7 +24,10 @@
<option name="BuildArtifacts" enabled="true">
<artifact name="KotlinPlugin" />
</option>
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/idea_runner/runner.xml" target="force_enable_kotlin_plugin" />
<option name="BuildArtifacts" enabled="true">
<artifact name="KotlinAndroidExtensions" />
</option>
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/idea-runner/runner.xml" target="force-enable-kotlin-plugin" />
</method>
</configuration>
</component>

View File

@@ -0,0 +1,37 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Incremental Compilation Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="jps-plugin" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.jps.build" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="pattern" />
<option name="VM_PARAMETERS" value="-ea -Xmx512m -XX:MaxPermSize=320m -Dkotlin.incremental.compilation=true" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="moduleWithDependencies" />
</option>
<envs />
<patterns>
<pattern testClass="org.jetbrains.kotlin.jps.build.IncrementalJpsTestGenerated" />
<pattern testClass="org.jetbrains.kotlin.jps.build.IncrementalCacheVersionChangedTest" />
<pattern testClass="org.jetbrains.kotlin.jps.build.IncrementalConstantSearchTest" />
</patterns>
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method>
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/build.xml" target="dist-quick-compiler-only" />
</method>
</configuration>
</component>

View File

@@ -1,31 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Integration Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="compiler-integration-tests" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx350m -XX:MaxPermSize=320m" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="moduleWithDependencies" />
</option>
<envs />
<patterns />
<RunnerSettings RunnerId="Profile " />
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Run" />
<method />
</configuration>
</component>

View File

@@ -2,11 +2,11 @@
<configuration default="false" name="J2K Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="j2k-tests" />
<module name="j2k" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="" />
@@ -23,8 +23,14 @@
</option>
<envs />
<patterns />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="Profile " />
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method />
</configuration>

28
.idea/runConfigurations/Java_8_Tests.xml generated Normal file
View File

@@ -0,0 +1,28 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Java 8 Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.kotlin.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="java8-tests" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="1.8" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.codegen" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=64m" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<envs />
<patterns />
<method />
</configuration>
</component>

View File

@@ -4,11 +4,11 @@
<module name="js.tests" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.k2js.test" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.js.test" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="VM_PARAMETERS" value="-ea -XX:+HeapDumpOnOutOfMemoryError -Xmx900m -XX:MaxPermSize=320m -XX:+UseCodeCacheFlushing" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />

View File

@@ -4,7 +4,7 @@
<module name="kannotator-jps-plugin-test" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.jet.jps.build.kannotator" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.jps.build.kannotator" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />

View File

@@ -2,14 +2,14 @@
<configuration default="false" name="Smart Completion Tests" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
<pattern>
<option name="PATTERN" value="org.jetbrains.jet.completion.handlers.*" />
<option name="PATTERN" value="org.jetbrains.kotlin.completion.handlers.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<module name="idea" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jetbrains.jet.completion.handlers" />
<option name="PACKAGE_NAME" value="org.jetbrains.kotlin.completion.handlers" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="pattern" />
@@ -21,12 +21,13 @@
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<envs>
<env name="kotlin.tests.actually.compile" value="false" />
</envs>
<envs />
<patterns>
<pattern testClass="org.jetbrains.jet.completion.JvmSmartCompletionTestGenerated" />
<pattern testClass="org.jetbrains.jet.completion.handlers.SmartCompletionHandlerTestGenerated" />
<pattern testClass="org.jetbrains.kotlin.idea.completion.test.JvmSmartCompletionTestGenerated" />
<pattern testClass="org.jetbrains.kotlin.idea.completion.test.handlers.SmartCompletionHandlerTestGenerated" />
<pattern testClass="org.jetbrains.kotlin.idea.completion.test.handlers.SmartCompletionMultifileHandlerTest" />
<pattern testClass="org.jetbrains.kotlin.idea.completion.test.weighers.SmartCompletionWeigherTestGenerated" />
<pattern testClass="org.jetbrains.kotlin.idea.completion.test.MultiFileSmartCompletionTestGenerated" />
</patterns>
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />

2
.idea/scopes/IDE.xml generated
View File

@@ -1,3 +1,3 @@
<component name="DependencyValidationManager">
<scope name="IDE" pattern="idea||file[idea]:*/" />
<scope name="IDE" pattern="file[idea]:*/||file[idea-analysis]:*/||file[ide-lazy-resolve]:*/" />
</component>

4
.idea/vcs.xml generated
View File

@@ -7,6 +7,10 @@
<option name="issueRegexp" value="[A-Z]+\-\d+" />
<option name="linkRegexp" value="http://youtrack.jetbrains.com/issue/$0" />
</IssueNavigationLink>
<IssueNavigationLink>
<option name="issueRegexp" value="EA\-(\d+)" />
<option name="linkRegexp" value="http://ea.jetbrains.com/browser/ea_problems/$1" />
</IssueNavigationLink>
</list>
</option>
</component>

View File

@@ -8,7 +8,9 @@
<excludeFolder url="file://$MODULE_DIR$/android.tests.dependencies" />
<excludeFolder url="file://$MODULE_DIR$/dependencies" />
<excludeFolder url="file://$MODULE_DIR$/dist" />
<excludeFolder url="file://$MODULE_DIR$/ideaSDK/androidSDK" />
<excludeFolder url="file://$MODULE_DIR$/ideaSDK/config" />
<excludeFolder url="file://$MODULE_DIR$/ideaSDK/config-idea" />
<excludeFolder url="file://$MODULE_DIR$/ideaSDK/system" />
<excludeFolder url="file://$MODULE_DIR$/ideaSDK/system-idea" />
<excludeFolder url="file://$MODULE_DIR$/libraries/.idea" />
@@ -20,14 +22,25 @@
<excludeFolder url="file://$MODULE_DIR$/libraries/kotlin-jdbc/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/kotlin-swing/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/kunit/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/stdlib/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/stdlib/validator/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/.idea" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kdoc-maven-plugin/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kdoc/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-compiler/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-gradle-plugin-core/local-repo" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-gradle-plugin-core/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-gradle-plugin-test/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-gradle-plugin/local-repo" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-gradle-plugin/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-js-library/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-js-tests-junit/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-js-tests/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-maven-plugin-test/local-repo" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-maven-plugin-test/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-maven-plugin/local-repo" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-maven-plugin/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-reflect/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/kotlin-stdlib-gen/target" />
<excludeFolder url="file://$MODULE_DIR$/libraries/tools/runtime/target" />
</content>
@@ -35,4 +48,3 @@
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@@ -2,24 +2,24 @@
Welcome to [Kotlin](http://kotlinlang.org/)! Some handy links:
* [Getting Started Guide](http://confluence.jetbrains.net/display/Kotlin/Getting+Started)
* [Kotlin Site](http://kotlinlang.org/)
* [Getting Started Guide](http://kotlinlang.org/docs/tutorials/getting-started.html)
* [Web Demo](http://kotlin-demo.jetbrains.com/)
* [Kotlin Site](http://jetbrains.github.com/kotlin/)
* [API](http://jetbrains.github.com/kotlin/versions/snapshot/apidocs/index.html)
* [Issue Tracker](http://youtrack.jetbrains.com/issues/KT)
* [Forum](http://devnet.jetbrains.net/community/kotlin?view=discussions)
* [Kotlin Blog](http://blog.jetbrains.com/kotlin/)
* [follow Kotlin on twitter](http://twitter.com/#!/project_kotlin)
* [TeamCity CI build](http://teamcity.jetbrains.com/project.html?projectId=project67&tab=projectOverview)
* [Follow Kotlin on Twitter](http://twitter.com/#!/project_kotlin)
* [TeamCity CI build](https://teamcity.jetbrains.com/project.html?tab=projectOverview&projectId=Kotlin)
## Editing Kotlin
* [Kotlin IDEA Plugin](http://hadihariri.com/2012/02/17/the-kotlin-journey-part-i-getting-things-set-up/)
* [Kotlin IntelliJ IDEA Plugin](http://hadihariri.com/2012/02/17/the-kotlin-journey-part-i-getting-things-set-up/)
* [Kotlin TextMate Bundle](https://github.com/k33g/kotlin-textmate-bundle#readme)
## Building
To build this project, first time you try to build you need to run this (requires Apache Ant 1.8 or higher):
To build this project, first time you try to build you need to run this (requires Apache **Ant 1.8** or higher and **JDK 1.6**):
ant -f update_dependencies.xml
@@ -41,9 +41,9 @@ which will build the binaries of the compiler and put them into the 'dist' direc
from 'libraries' directory after building the compiler. Refer to `libraries/ReadMe.md` for details.
## Working with the project in IDEA
## Working with the project in IntelliJ IDEA
The [root kotlin project](https://github.com/JetBrains/kotlin) already has an IDEA project, you can just open it in IDEA.
The [root kotlin project](https://github.com/JetBrains/kotlin) already has an IntelliJ IDEA project, you can just open it in IntelliJ IDEA.
You may need to set the Project SDK (File -> Project Structure -> Project).
You may also need to add `tools.jar` to your SDK: File -> Project Structure -> SDKs -> <Your JDK> -> Classpath,
@@ -52,27 +52,27 @@ then choose the `tools.jar` in the JDK's `lib` directory.
If you are not dealing with Android, you may need to disable the Android Plugin in order to compile the project.
Since Kotlin project contains code written in Kotlin itself, you will also need a Kotlin plugin to build the project in IntelliJ IDEA.
To keep the plugin version in sync with the rest of the team and our [Continuous Integration server](http://teamcity.jetbrains.com/project.html?projectId=Kotlin&tab=projectOverview)
To keep the plugin version in sync with the rest of the team and our [Continuous Integration server](https://teamcity.jetbrains.com/project.html?projectId=Kotlin&tab=projectOverview)
you should install the according to the [instructions below](#plugin-for-contributors).
If you want to have an IDEA installation without the Kotlin plugin which is separate to your default IDEA installation which has the Kotlin
plugin [see this document](http://devnet.jetbrains.net/docs/DOC-181) which describes how to have mutliple IDEA installs using different configurations and plugin directories.
If you want to have an IntelliJ IDEA installation without the Kotlin plugin which is separate to your default IntelliJ IDEA installation which has the Kotlin
plugin [see this document](http://devnet.jetbrains.net/docs/DOC-181) which describes how to have mutliple IntelliJ IDEA installations using different configurations and plugin directories.
From this root project there are Run/Debug Configurations for running IDEA or the Compiler Tests for example; so if you want to try out the latest greatest IDEA plugin
From this root project there are Run/Debug Configurations for running IDEA or the Compiler Tests for example; so if you want to try out the latest and greatest IDEA plugin
* VCS -> Git -> Pull
* Run IDEA
* a child IDEA with the Kotlin plugin will then startup
* Run IntelliJ IDEA
* a child IntelliJ IDEA with the Kotlin plugin will then startup
* you can now open the [kotlin libraries project](https://github.com/JetBrains/kotlin/tree/master/libraries) to then work with the various kotlin libraries etc.
### <a name="pre-built-plugin"></a>Using a pre-built Kotlin IDEA plugin
### <a name="pre-built-plugin"></a>Using a pre-built Kotlin IntelliJ IDEA plugin
There are several options for getting Kotlin plugin. A stable version can be obtained as any other plugin for Intellij IDEA:
There are several options for getting Kotlin plugin. A stable version can be obtained as any other plugin for IntelliJ IDEA:
Preferences -> Plugins -> Browse Repositories -> Search with "Kotlin" string
Preferences -> Plugins -> Install JetBrains plugin... -> Search with "Kotlin" string
The most recent version of the plugin can be downloaded from the
[IDEA Plugin and Tests CI build](http://teamcity.jetbrains.com/project.html?projectId=project67&tab=projectOverview). When downloading is
[IDEA Plugin and Tests CI build](https://teamcity.jetbrains.com/project.html?projectId=project67&tab=projectOverview). When downloading is
finished you can install it with "Install plugin from disk...":
Preferences -> Plugins -> Install plugin from disk...
@@ -81,7 +81,7 @@ You can now open any Kotlin based projects.
<a name="plugin-for-contributors"></a>
**Note for contributors**: If you are planning to contribute to Kotlin project you probably want to have locally the same version of plugin that build server is using for building.
As this version is constantly moving, the best way to always be updated is to let IDEA notify you when it is time to renew you plugin.
As this version is constantly moving, the best way to always be updated is to let IntelliJ IDEA notify you when it is time to renew your plugin.
Open
@@ -89,15 +89,15 @@ Open
and add the following URL to your repositories:
http://teamcity.jetbrains.com/guestAuth/repository/download/bt345/bootstrap.tcbuildtag/updatePlugins.xml
https://teamcity.jetbrains.com/guestAuth/repository/download/bt345/bootstrap.tcbuildtag/updatePlugins.xml
Then update the list of plugins in "Browse Repositories", you'll see two versions of Kotlin there, install the one with the higher version number.
# Contributing
We love contributions! There's [lots to do on kotlin](http://youtrack.jetbrains.com/issues/KT) and on the [standard library](http://youtrack.jetbrains.com/issues/KT?q=%23%7BStandard+Library%7D+-Resolved) so why not chat with us on the [forum](http://devnet.jetbrains.net/community/kotlin?view=discussions) about what you're interested in doing?
We love contributions! There's [lots to do on Kotlin](http://youtrack.jetbrains.com/issues/KT) and on the [standard library](https://youtrack.jetbrains.com/issues/KT?q=Subtask+of%3A+KT-2554+%23Unresolved) so why not chat with us on the [forum](http://devnet.jetbrains.net/community/kotlin?view=discussions) about what you're interested in doing?
If you want to find some issues to start off with, try [this query](http://youtrack.jetbrains.com/issues?q=tag%3A+%7BUp+For+Grabs%7D) which should find all issues that marked as "up-for-grabs".
If you want to find some issues to start off with, try [this query](https://youtrack.jetbrains.com/issues?q=tag%3A+%7BUp+For+Grabs%7D+%23Unresolved) which should find all issues that marked as "up-for-grabs".
Currently only committers can assign issues to themselves so just add a comment if you're starting work on it.
@@ -110,7 +110,7 @@ Also the [JavaScript translation](https://github.com/JetBrains/kotlin/blob/maste
## If you want to work on the compiler
The Kotlin compiler is written in Java and Kotlin (we gradually migrate more and more of it to pure Kotlin). So the easiest way to work on the compiler or IDEA plugin is
The Kotlin compiler is written in Java and Kotlin (we gradually migrate more and more of it to pure Kotlin). So the easiest way to work on the compiler or IntelliJ IDEA plugin is
* download a clean [IDEA 14 EAP build](http://confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP)
* [install the Kotlin plugin](#pre-built-plugin)

View File

@@ -1,5 +1,6 @@
<project name="Jet CI Steps" default="none">
<import file="build.xml" optional="false"/>
<import file="replicate_versions.xml" optional="false"/>
<property name="build.number" value="snapshot"/>
<property name="jdk16.home" value="${java.home}"/>
@@ -12,12 +13,17 @@
<property name="plugin.xml.bk" value="${version_substitute_dir}/plugin.xml.bk"/>
<property name="plugin.xml.versioned" value="${plugin.xml}.versioned" />
<property name="compiler.version.java" value="compiler/cli/cli-common/src/org/jetbrains/jet/cli/common/KotlinVersion.java"/>
<property name="android-extensions.plugin.xml" value="plugins/android-idea-plugin/src/META-INF/plugin.xml"/>
<property name="android-extensions.plugin.xml.bk" value="${version_substitute_dir}/kotlin-android-extensions.plugin.xml.bk"/>
<property name="android-extensions.plugin.xml.versioned" value="${android-extensions.plugin.xml}.versioned" />
<property name="compiler.version.java" value="compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/KotlinVersion.java"/>
<property name="compiler.version.java.bk" value="${version_substitute_dir}/KotlinVersion.java.bk"/>
<property name="compiler.version.java.versioned" value="${compiler.version.java}.versioned" />
<property name="plugin.zip" value="${artifact.output.path}/kotlin-plugin-${build.number}.zip" />
<property name="bare.plugin.zip" value="${artifact.output.path}/kotlin-bare-plugin-${build.number}.zip" />
<property name="android-extensions.zip" value="${artifact.output.path}/kotlin-android-extensions-plugin-${build.number}.zip" />
<macrodef name="echoprop">
<attribute name="prop"/>
@@ -81,15 +87,24 @@
target.file.versioned="${plugin.xml.versioned}"
test.string="&lt;version&gt;@snapshot@&lt;/version&gt;"/>
<substituteVersionInFile
target.file="${android-extensions.plugin.xml}"
target.file.bk="${android-extensions.plugin.xml.bk}"
target.file.versioned="${android-extensions.plugin.xml.versioned}"
test.string="&lt;version&gt;@snapshot@&lt;/version&gt;"/>
<substituteVersionInFile
target.file="${compiler.version.java}"
target.file.bk="${compiler.version.java.bk}"
target.file.versioned="${compiler.version.java.versioned}"
test.string="public static final String VERSION = &quot;@snapshot@&quot;;"/>
<replicateIdeaVersion target.file="${android-extensions.plugin.xml}" />
</target>
<target name="revertTemplateFiles">
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true"/>
<copy file="${android-extensions.plugin.xml.bk}" tofile="${android-extensions.plugin.xml}" overwrite="true"/>
<copy file="${compiler.version.java.bk}" tofile="${compiler.version.java}" overwrite="true"/>
<delete dir="${version_substitute_dir}" quiet="true"/>
@@ -114,9 +129,31 @@
<zipPlugin filename="${plugin.zip}" dir="Kotlin"/>
<zipPlugin filename="${bare.plugin.zip}" dir="BareKotlin"/>
<zip destfile="${android-extensions.zip}">
<zipfileset prefix="KotlinAndroidExtensions" dir="${artifact.output.path}/KotlinAndroidExtensions" />
</zip>
<delete dir="${artifact.output.path}/KotlinAndroidExtensions" quiet="true"/>
</target>
<target name="post_build" depends="zipArtifacts, revertTemplateFiles"/>
<macrodef name="print-statistic">
<attribute name="key"/>
<attribute name="value"/>
<sequential>
<echo message="##teamcity[buildStatisticValue key='@{key}' value='@{value}']"/>
</sequential>
</macrodef>
<target name="printStatistics">
<length file="${kotlin-home}/lib/kotlin-runtime.jar" property="runtime.jar.size"/>
<print-statistic key="kotlin-runtime.jar size" value="${runtime.jar.size}"/>
<length file="${kotlin-home}/lib/kotlin-reflect.jar" property="reflect.jar.size"/>
<print-statistic key="kotlin-reflect.jar size" value="${reflect.jar.size}"/>
</target>
<target name="post_build" depends="zipArtifacts, revertTemplateFiles, printStatistics"/>
<target name="none">
<fail message="Either specify pre_build or post_build"/>

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="intellij-core" level="project" />
<orderEntry type="module" module-name="frontend" />
<orderEntry type="library" name="idea-full" level="project" />
<orderEntry type="module" module-name="compiler-tests" />
</component>
</module>

File diff suppressed because it is too large Load Diff

View File

@@ -1,651 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.PsiElement;
import com.intellij.lang.ASTNode;
import kt.KotlinParserDefinition;
import generated.psi.impl.*;
public interface KotlinTypes {
IElementType ADDITIVE_EXPRESSION_PLUS = KotlinParserDefinition.createType("ADDITIVE_EXPRESSION_PLUS");
IElementType ADDITIVE_OPERATION = KotlinParserDefinition.createType("ADDITIVE_OPERATION");
IElementType AND_OPERATION = KotlinParserDefinition.createType("AND_OPERATION");
IElementType ANNOTATED_EXPRESSION = KotlinParserDefinition.createType("ANNOTATED_EXPRESSION");
IElementType ANNOTATIONS = KotlinParserDefinition.createType("ANNOTATIONS");
IElementType ANNOTATION_ENTRY = KotlinParserDefinition.createType("ANNOTATION_ENTRY");
IElementType ANONYMOUS_INITIALIZER = KotlinParserDefinition.createType("ANONYMOUS_INITIALIZER");
IElementType ARRAY_ACCESS = KotlinParserDefinition.createType("ARRAY_ACCESS");
IElementType ASSIGNMENT_EXPRESSION = KotlinParserDefinition.createType("ASSIGNMENT_EXPRESSION");
IElementType ASSIGNMENT_OPERATOR = KotlinParserDefinition.createType("ASSIGNMENT_OPERATOR");
IElementType ASTERISK = KotlinParserDefinition.createType("ASTERISK");
IElementType ATOMIC_PACKAGE = KotlinParserDefinition.createType("ATOMIC_PACKAGE");
IElementType BINARY_CONSTANT = KotlinParserDefinition.createType("BINARY_CONSTANT");
IElementType BLOCK = KotlinParserDefinition.createType("BLOCK");
IElementType BODY = KotlinParserDefinition.createType("BODY");
IElementType CALLABLE_REFERENCE = KotlinParserDefinition.createType("CALLABLE_REFERENCE");
IElementType CALL_SUFFIX = KotlinParserDefinition.createType("CALL_SUFFIX");
IElementType CATCH_BLOCK = KotlinParserDefinition.createType("CATCH_BLOCK");
IElementType CHARACTER_CONSTANT = KotlinParserDefinition.createType("CHARACTER_CONSTANT");
IElementType CLASS_BODY = KotlinParserDefinition.createType("CLASS_BODY");
IElementType CLASS_DECLARATION = KotlinParserDefinition.createType("CLASS_DECLARATION");
IElementType CLASS_DECLARATION_LOCAL = KotlinParserDefinition.createType("CLASS_DECLARATION_LOCAL");
IElementType CLASS_OBJECT = KotlinParserDefinition.createType("CLASS_OBJECT");
IElementType COMPARISON_EXPRESSION = KotlinParserDefinition.createType("COMPARISON_EXPRESSION");
IElementType COMPARISON_OPERATION = KotlinParserDefinition.createType("COMPARISON_OPERATION");
IElementType CONDITION = KotlinParserDefinition.createType("CONDITION");
IElementType CONJUNCTION_PLUS = KotlinParserDefinition.createType("CONJUNCTION_PLUS");
IElementType CONSTRUCTOR_CALLEE = KotlinParserDefinition.createType("CONSTRUCTOR_CALLEE");
IElementType DELEGATION_SPECIFIER_EXT = KotlinParserDefinition.createType("DELEGATION_SPECIFIER_EXT");
IElementType DELEGATOR_SUPER_CALL = KotlinParserDefinition.createType("DELEGATOR_SUPER_CALL");
IElementType DELEGATOR_SUPER_CLASS = KotlinParserDefinition.createType("DELEGATOR_SUPER_CLASS");
IElementType DISJUNCTION_PLUS = KotlinParserDefinition.createType("DISJUNCTION_PLUS");
IElementType DOT_IDENTIFIER = KotlinParserDefinition.createType("DOT_IDENTIFIER");
IElementType DOT_QUALIFIED_EXPRESSION = KotlinParserDefinition.createType("DOT_QUALIFIED_EXPRESSION");
IElementType DO_WHILE_LOOP = KotlinParserDefinition.createType("DO_WHILE_LOOP");
IElementType ELSE_EXPRESSION = KotlinParserDefinition.createType("ELSE_EXPRESSION");
IElementType ELVIS_ACCESS_EXPRESSION = KotlinParserDefinition.createType("ELVIS_ACCESS_EXPRESSION");
IElementType ELVIS_OPERATION = KotlinParserDefinition.createType("ELVIS_OPERATION");
IElementType ENUM_CLASS_BODY = KotlinParserDefinition.createType("ENUM_CLASS_BODY");
IElementType ENUM_ENTRY = KotlinParserDefinition.createType("ENUM_ENTRY");
IElementType EQUALITY_COMPARISON_EXPRESSION = KotlinParserDefinition.createType("EQUALITY_COMPARISON_EXPRESSION");
IElementType EQUALITY_OPERATION = KotlinParserDefinition.createType("EQUALITY_OPERATION");
IElementType EXPLICIT_DELEGATION = KotlinParserDefinition.createType("EXPLICIT_DELEGATION");
IElementType FIELD_IDENTIFIER_REFERENCE = KotlinParserDefinition.createType("FIELD_IDENTIFIER_REFERENCE");
IElementType FINALLY_BLOCK = KotlinParserDefinition.createType("FINALLY_BLOCK");
IElementType FLOAT_CONSTANT = KotlinParserDefinition.createType("FLOAT_CONSTANT");
IElementType FOR_LOOP = KotlinParserDefinition.createType("FOR_LOOP");
IElementType FOR_VALUE_PARAMETER = KotlinParserDefinition.createType("FOR_VALUE_PARAMETER");
IElementType FUNCTION = KotlinParserDefinition.createType("FUNCTION");
IElementType FUNCTION_LITERAL = KotlinParserDefinition.createType("FUNCTION_LITERAL");
IElementType FUNCTION_LITERAL_ARGUMENT = KotlinParserDefinition.createType("FUNCTION_LITERAL_ARGUMENT");
IElementType FUNCTION_LITERAL_EXPRESSION = KotlinParserDefinition.createType("FUNCTION_LITERAL_EXPRESSION");
IElementType FUNCTION_LITERAL_VALUE_PARAMETER_LIST_1 = KotlinParserDefinition.createType("FUNCTION_LITERAL_VALUE_PARAMETER_LIST_1");
IElementType FUNCTION_LITERAL_VALUE_PARAMETER_LIST_2 = KotlinParserDefinition.createType("FUNCTION_LITERAL_VALUE_PARAMETER_LIST_2");
IElementType FUNCTION_PARAMETER = KotlinParserDefinition.createType("FUNCTION_PARAMETER");
IElementType FUNCTION_TYPE = KotlinParserDefinition.createType("FUNCTION_TYPE");
IElementType FUNCTION_TYPE_RECEIVER = KotlinParserDefinition.createType("FUNCTION_TYPE_RECEIVER");
IElementType FUNCTION_TYPE_RECEIVER_REFERENCE = KotlinParserDefinition.createType("FUNCTION_TYPE_RECEIVER_REFERENCE");
IElementType GETTER = KotlinParserDefinition.createType("GETTER");
IElementType IF_EXPRESSION = KotlinParserDefinition.createType("IF_EXPRESSION");
IElementType IMPORT_DIRECTIVE = KotlinParserDefinition.createType("IMPORT_DIRECTIVE");
IElementType IMPORT_LIST = KotlinParserDefinition.createType("IMPORT_LIST");
IElementType INDICES = KotlinParserDefinition.createType("INDICES");
IElementType INFIX_FUNCTION_CALL_PLUS = KotlinParserDefinition.createType("INFIX_FUNCTION_CALL_PLUS");
IElementType INITIALIZER_EXT = KotlinParserDefinition.createType("INITIALIZER_EXT");
IElementType INTEGER_CONSTANT = KotlinParserDefinition.createType("INTEGER_CONSTANT");
IElementType IN_OPERATION = KotlinParserDefinition.createType("IN_OPERATION");
IElementType IS_OPERATION = KotlinParserDefinition.createType("IS_OPERATION");
IElementType JUMP_BREAK = KotlinParserDefinition.createType("JUMP_BREAK");
IElementType JUMP_CONTINUE = KotlinParserDefinition.createType("JUMP_CONTINUE");
IElementType JUMP_RETURN = KotlinParserDefinition.createType("JUMP_RETURN");
IElementType JUMP_THROW = KotlinParserDefinition.createType("JUMP_THROW");
IElementType LABEL = KotlinParserDefinition.createType("LABEL");
IElementType LABEL_EXPRESSION = KotlinParserDefinition.createType("LABEL_EXPRESSION");
IElementType LABEL_LABEL = KotlinParserDefinition.createType("LABEL_LABEL");
IElementType LEFT_FUNCTION_TYPE = KotlinParserDefinition.createType("LEFT_FUNCTION_TYPE");
IElementType LITERAL_STRING_TEMPLATE_ENTRY = KotlinParserDefinition.createType("LITERAL_STRING_TEMPLATE_ENTRY");
IElementType LONG_ANNOTATION = KotlinParserDefinition.createType("LONG_ANNOTATION");
IElementType LONG_TEMPLATE = KotlinParserDefinition.createType("LONG_TEMPLATE");
IElementType LOOP_RANGE = KotlinParserDefinition.createType("LOOP_RANGE");
IElementType MODIFIER_LIST = KotlinParserDefinition.createType("MODIFIER_LIST");
IElementType MULTIPLE_VARIABLE_DECLARATIONS = KotlinParserDefinition.createType("MULTIPLE_VARIABLE_DECLARATIONS");
IElementType MULTIPLICATIVE_EXPRESSION_PLUS = KotlinParserDefinition.createType("MULTIPLICATIVE_EXPRESSION_PLUS");
IElementType MULTIPLICATIVE_OPERATION = KotlinParserDefinition.createType("MULTIPLICATIVE_OPERATION");
IElementType NAMED_INFIX_FIRST = KotlinParserDefinition.createType("NAMED_INFIX_FIRST");
IElementType NAMED_INFIX_PLUS = KotlinParserDefinition.createType("NAMED_INFIX_PLUS");
IElementType NULL = KotlinParserDefinition.createType("NULL");
IElementType NULLABLE_TYPE = KotlinParserDefinition.createType("NULLABLE_TYPE");
IElementType OBJECT = KotlinParserDefinition.createType("OBJECT");
IElementType OBJECT_DECLARATION = KotlinParserDefinition.createType("OBJECT_DECLARATION");
IElementType OBJECT_DECLARATION_NAME = KotlinParserDefinition.createType("OBJECT_DECLARATION_NAME");
IElementType OBJECT_LITERAL = KotlinParserDefinition.createType("OBJECT_LITERAL");
IElementType OBJECT_NAME = KotlinParserDefinition.createType("OBJECT_NAME");
IElementType OBJECT_UNNAMED = KotlinParserDefinition.createType("OBJECT_UNNAMED");
IElementType OR_OPERATION = KotlinParserDefinition.createType("OR_OPERATION");
IElementType PACKAGE_DIRECTIVE = KotlinParserDefinition.createType("PACKAGE_DIRECTIVE");
IElementType PACKAGE_HEADER = KotlinParserDefinition.createType("PACKAGE_HEADER");
IElementType PARAMETER = KotlinParserDefinition.createType("PARAMETER");
IElementType PARAMETER_OR_MODIFIER_TYPE = KotlinParserDefinition.createType("PARAMETER_OR_MODIFIER_TYPE");
IElementType PARENTHESIZED_EXPRESSION = KotlinParserDefinition.createType("PARENTHESIZED_EXPRESSION");
IElementType PLUS_PLUS_AND_OTHERS_EXPRESSION = KotlinParserDefinition.createType("PLUS_PLUS_AND_OTHERS_EXPRESSION");
IElementType PLUS_PLUS_AND_OTHERS_OPERATION = KotlinParserDefinition.createType("PLUS_PLUS_AND_OTHERS_OPERATION");
IElementType PREFIX_OPERATION = KotlinParserDefinition.createType("PREFIX_OPERATION");
IElementType PREFIX_OPERATION_EXPRESSION = KotlinParserDefinition.createType("PREFIX_OPERATION_EXPRESSION");
IElementType PRIMARY_CONSTRUCTOR_MODIFIER_LIST = KotlinParserDefinition.createType("PRIMARY_CONSTRUCTOR_MODIFIER_LIST");
IElementType PROPERTY = KotlinParserDefinition.createType("PROPERTY");
IElementType PROPERTY_DELEGATE = KotlinParserDefinition.createType("PROPERTY_DELEGATE");
IElementType PROPERTY_LOCAL = KotlinParserDefinition.createType("PROPERTY_LOCAL");
IElementType RANGE_EXPRESSION_PLUS = KotlinParserDefinition.createType("RANGE_EXPRESSION_PLUS");
IElementType RANGE_OPERATION = KotlinParserDefinition.createType("RANGE_OPERATION");
IElementType REFERENCE_EXPRESSION = KotlinParserDefinition.createType("REFERENCE_EXPRESSION");
IElementType SAFE_ACCESS_EXPRESSION = KotlinParserDefinition.createType("SAFE_ACCESS_EXPRESSION");
IElementType SCRIPT = KotlinParserDefinition.createType("SCRIPT");
IElementType SELF_TYPE = KotlinParserDefinition.createType("SELF_TYPE");
IElementType SETTER = KotlinParserDefinition.createType("SETTER");
IElementType SHORT_TEMPLATE_ENTRY = KotlinParserDefinition.createType("SHORT_TEMPLATE_ENTRY");
IElementType SIMPLE_NAME_OPERATION = KotlinParserDefinition.createType("SIMPLE_NAME_OPERATION");
IElementType SIMPLE_USER_TYPE = KotlinParserDefinition.createType("SIMPLE_USER_TYPE");
IElementType SIMPLE_USER_TYPE_ADD = KotlinParserDefinition.createType("SIMPLE_USER_TYPE_ADD");
IElementType SINGLE_VALUE_PARAMETER_LIST = KotlinParserDefinition.createType("SINGLE_VALUE_PARAMETER_LIST");
IElementType SINGLE_VALUE_PARAMETER_LIST_WITH_BRACKETS = KotlinParserDefinition.createType("SINGLE_VALUE_PARAMETER_LIST_WITH_BRACKETS");
IElementType STATEMENTS_BLOCK = KotlinParserDefinition.createType("STATEMENTS_BLOCK");
IElementType STRING_TEMPLATE = KotlinParserDefinition.createType("STRING_TEMPLATE");
IElementType SUPER_EXPRESSION = KotlinParserDefinition.createType("SUPER_EXPRESSION");
IElementType SUPER_REFERENCE = KotlinParserDefinition.createType("SUPER_REFERENCE");
IElementType THEN_EXPRESSION = KotlinParserDefinition.createType("THEN_EXPRESSION");
IElementType THEN_EXPRESSION_WITH_SEMI = KotlinParserDefinition.createType("THEN_EXPRESSION_WITH_SEMI");
IElementType THIS_EXPRESSION = KotlinParserDefinition.createType("THIS_EXPRESSION");
IElementType THIS_REFERENCE = KotlinParserDefinition.createType("THIS_REFERENCE");
IElementType TRY_BLOCK = KotlinParserDefinition.createType("TRY_BLOCK");
IElementType TYPE = KotlinParserDefinition.createType("TYPE");
IElementType TYPEDEF = KotlinParserDefinition.createType("TYPEDEF");
IElementType TYPE_ARGUMENTS = KotlinParserDefinition.createType("TYPE_ARGUMENTS");
IElementType TYPE_ARGUMENT_LIST = KotlinParserDefinition.createType("TYPE_ARGUMENT_LIST");
IElementType TYPE_CONSTRAINT = KotlinParserDefinition.createType("TYPE_CONSTRAINT");
IElementType TYPE_CONSTRAINT_EXT = KotlinParserDefinition.createType("TYPE_CONSTRAINT_EXT");
IElementType TYPE_LIST = KotlinParserDefinition.createType("TYPE_LIST");
IElementType TYPE_OPERATION = KotlinParserDefinition.createType("TYPE_OPERATION");
IElementType TYPE_PARAMETER = KotlinParserDefinition.createType("TYPE_PARAMETER");
IElementType TYPE_PARAMETERS = KotlinParserDefinition.createType("TYPE_PARAMETERS");
IElementType TYPE_PROJECTION = KotlinParserDefinition.createType("TYPE_PROJECTION");
IElementType TYPE_RHS_PLUS = KotlinParserDefinition.createType("TYPE_RHS_PLUS");
IElementType USER_TYPE_REFERENCE = KotlinParserDefinition.createType("USER_TYPE_REFERENCE");
IElementType VALUE_ARGUMENT = KotlinParserDefinition.createType("VALUE_ARGUMENT");
IElementType VALUE_ARGUMENTS = KotlinParserDefinition.createType("VALUE_ARGUMENTS");
IElementType VALUE_ARGUMENT_NAME = KotlinParserDefinition.createType("VALUE_ARGUMENT_NAME");
IElementType VALUE_PARAMETERS = KotlinParserDefinition.createType("VALUE_PARAMETERS");
IElementType VALUE_PARAMETER_LIST = KotlinParserDefinition.createType("VALUE_PARAMETER_LIST");
IElementType VALUE_PARAMETER_NO_TYPE = KotlinParserDefinition.createType("VALUE_PARAMETER_NO_TYPE");
IElementType VALUE_PARAMETER_WITH_TYPE = KotlinParserDefinition.createType("VALUE_PARAMETER_WITH_TYPE");
IElementType VARIABLE_DECLARATION_ENTRY_EXT = KotlinParserDefinition.createType("VARIABLE_DECLARATION_ENTRY_EXT");
IElementType WHEN = KotlinParserDefinition.createType("WHEN");
IElementType WHEN_CONDITION_EXPRESSION = KotlinParserDefinition.createType("WHEN_CONDITION_EXPRESSION");
IElementType WHEN_CONDITION_IN_RANGE = KotlinParserDefinition.createType("WHEN_CONDITION_IN_RANGE");
IElementType WHEN_CONDITION_IS_PATTERN = KotlinParserDefinition.createType("WHEN_CONDITION_IS_PATTERN");
IElementType WHEN_ENTRY = KotlinParserDefinition.createType("WHEN_ENTRY");
IElementType WHEN_PROPERTY = KotlinParserDefinition.createType("WHEN_PROPERTY");
IElementType WHILE_LOOP = KotlinParserDefinition.createType("WHILE_LOOP");
class Factory {
public static PsiElement createElement(ASTNode node) {
IElementType type = node.getElementType();
if (type == ADDITIVE_EXPRESSION_PLUS) {
return new KtAdditiveExpressionPlusImpl(node);
}
else if (type == ADDITIVE_OPERATION) {
return new KtAdditiveOperationImpl(node);
}
else if (type == AND_OPERATION) {
return new KtAndOperationImpl(node);
}
else if (type == ANNOTATED_EXPRESSION) {
return new KtAnnotatedExpressionImpl(node);
}
else if (type == ANNOTATIONS) {
return new KtAnnotationsImpl(node);
}
else if (type == ANNOTATION_ENTRY) {
return new KtAnnotationEntryImpl(node);
}
else if (type == ANONYMOUS_INITIALIZER) {
return new KtAnonymousInitializerImpl(node);
}
else if (type == ARRAY_ACCESS) {
return new KtArrayAccessImpl(node);
}
else if (type == ASSIGNMENT_EXPRESSION) {
return new KtAssignmentExpressionImpl(node);
}
else if (type == ASSIGNMENT_OPERATOR) {
return new KtAssignmentOperatorImpl(node);
}
else if (type == ASTERISK) {
return new KtAsteriskImpl(node);
}
else if (type == ATOMIC_PACKAGE) {
return new KtAtomicPackageImpl(node);
}
else if (type == BINARY_CONSTANT) {
return new KtBinaryConstantImpl(node);
}
else if (type == BLOCK) {
return new KtBlockImpl(node);
}
else if (type == BODY) {
return new KtBodyImpl(node);
}
else if (type == CALLABLE_REFERENCE) {
return new KtCallableReferenceImpl(node);
}
else if (type == CALL_SUFFIX) {
return new KtCallSuffixImpl(node);
}
else if (type == CATCH_BLOCK) {
return new KtCatchBlockImpl(node);
}
else if (type == CHARACTER_CONSTANT) {
return new KtCharacterConstantImpl(node);
}
else if (type == CLASS_BODY) {
return new KtClassBodyImpl(node);
}
else if (type == CLASS_DECLARATION) {
return new KtClassDeclarationImpl(node);
}
else if (type == CLASS_DECLARATION_LOCAL) {
return new KtClassDeclarationLocalImpl(node);
}
else if (type == CLASS_OBJECT) {
return new KtClassObjectImpl(node);
}
else if (type == COMPARISON_EXPRESSION) {
return new KtComparisonExpressionImpl(node);
}
else if (type == COMPARISON_OPERATION) {
return new KtComparisonOperationImpl(node);
}
else if (type == CONDITION) {
return new KtConditionImpl(node);
}
else if (type == CONJUNCTION_PLUS) {
return new KtConjunctionPlusImpl(node);
}
else if (type == CONSTRUCTOR_CALLEE) {
return new KtConstructorCalleeImpl(node);
}
else if (type == DELEGATION_SPECIFIER_EXT) {
return new KtDelegationSpecifierExtImpl(node);
}
else if (type == DELEGATOR_SUPER_CALL) {
return new KtDelegatorSuperCallImpl(node);
}
else if (type == DELEGATOR_SUPER_CLASS) {
return new KtDelegatorSuperClassImpl(node);
}
else if (type == DISJUNCTION_PLUS) {
return new KtDisjunctionPlusImpl(node);
}
else if (type == DOT_IDENTIFIER) {
return new KtDotIdentifierImpl(node);
}
else if (type == DOT_QUALIFIED_EXPRESSION) {
return new KtDotQualifiedExpressionImpl(node);
}
else if (type == DO_WHILE_LOOP) {
return new KtDoWhileLoopImpl(node);
}
else if (type == ELSE_EXPRESSION) {
return new KtElseExpressionImpl(node);
}
else if (type == ELVIS_ACCESS_EXPRESSION) {
return new KtElvisAccessExpressionImpl(node);
}
else if (type == ELVIS_OPERATION) {
return new KtElvisOperationImpl(node);
}
else if (type == ENUM_CLASS_BODY) {
return new KtEnumClassBodyImpl(node);
}
else if (type == ENUM_ENTRY) {
return new KtEnumEntryImpl(node);
}
else if (type == EQUALITY_COMPARISON_EXPRESSION) {
return new KtEqualityComparisonExpressionImpl(node);
}
else if (type == EQUALITY_OPERATION) {
return new KtEqualityOperationImpl(node);
}
else if (type == EXPLICIT_DELEGATION) {
return new KtExplicitDelegationImpl(node);
}
else if (type == FIELD_IDENTIFIER_REFERENCE) {
return new KtFieldIdentifierReferenceImpl(node);
}
else if (type == FINALLY_BLOCK) {
return new KtFinallyBlockImpl(node);
}
else if (type == FLOAT_CONSTANT) {
return new KtFloatConstantImpl(node);
}
else if (type == FOR_LOOP) {
return new KtForLoopImpl(node);
}
else if (type == FOR_VALUE_PARAMETER) {
return new KtForValueParameterImpl(node);
}
else if (type == FUNCTION) {
return new KtFunctionImpl(node);
}
else if (type == FUNCTION_LITERAL) {
return new KtFunctionLiteralImpl(node);
}
else if (type == FUNCTION_LITERAL_ARGUMENT) {
return new KtFunctionLiteralArgumentImpl(node);
}
else if (type == FUNCTION_LITERAL_EXPRESSION) {
return new KtFunctionLiteralExpressionImpl(node);
}
else if (type == FUNCTION_LITERAL_VALUE_PARAMETER_LIST_1) {
return new KtFunctionLiteralValueParameterList1Impl(node);
}
else if (type == FUNCTION_LITERAL_VALUE_PARAMETER_LIST_2) {
return new KtFunctionLiteralValueParameterList2Impl(node);
}
else if (type == FUNCTION_PARAMETER) {
return new KtFunctionParameterImpl(node);
}
else if (type == FUNCTION_TYPE) {
return new KtFunctionTypeImpl(node);
}
else if (type == FUNCTION_TYPE_RECEIVER) {
return new KtFunctionTypeReceiverImpl(node);
}
else if (type == FUNCTION_TYPE_RECEIVER_REFERENCE) {
return new KtFunctionTypeReceiverReferenceImpl(node);
}
else if (type == GETTER) {
return new KtGetterImpl(node);
}
else if (type == IF_EXPRESSION) {
return new KtIfExpressionImpl(node);
}
else if (type == IMPORT_DIRECTIVE) {
return new KtImportDirectiveImpl(node);
}
else if (type == IMPORT_LIST) {
return new KtImportListImpl(node);
}
else if (type == INDICES) {
return new KtIndicesImpl(node);
}
else if (type == INFIX_FUNCTION_CALL_PLUS) {
return new KtInfixFunctionCallPlusImpl(node);
}
else if (type == INITIALIZER_EXT) {
return new KtInitializerExtImpl(node);
}
else if (type == INTEGER_CONSTANT) {
return new KtIntegerConstantImpl(node);
}
else if (type == IN_OPERATION) {
return new KtInOperationImpl(node);
}
else if (type == IS_OPERATION) {
return new KtIsOperationImpl(node);
}
else if (type == JUMP_BREAK) {
return new KtJumpBreakImpl(node);
}
else if (type == JUMP_CONTINUE) {
return new KtJumpContinueImpl(node);
}
else if (type == JUMP_RETURN) {
return new KtJumpReturnImpl(node);
}
else if (type == JUMP_THROW) {
return new KtJumpThrowImpl(node);
}
else if (type == LABEL) {
return new KtLabelImpl(node);
}
else if (type == LABEL_EXPRESSION) {
return new KtLabelExpressionImpl(node);
}
else if (type == LABEL_LABEL) {
return new KtLabelLabelImpl(node);
}
else if (type == LEFT_FUNCTION_TYPE) {
return new KtLeftFunctionTypeImpl(node);
}
else if (type == LITERAL_STRING_TEMPLATE_ENTRY) {
return new KtLiteralStringTemplateEntryImpl(node);
}
else if (type == LONG_ANNOTATION) {
return new KtLongAnnotationImpl(node);
}
else if (type == LONG_TEMPLATE) {
return new KtLongTemplateImpl(node);
}
else if (type == LOOP_RANGE) {
return new KtLoopRangeImpl(node);
}
else if (type == MODIFIER_LIST) {
return new KtModifierListImpl(node);
}
else if (type == MULTIPLE_VARIABLE_DECLARATIONS) {
return new KtMultipleVariableDeclarationsImpl(node);
}
else if (type == MULTIPLICATIVE_EXPRESSION_PLUS) {
return new KtMultiplicativeExpressionPlusImpl(node);
}
else if (type == MULTIPLICATIVE_OPERATION) {
return new KtMultiplicativeOperationImpl(node);
}
else if (type == NAMED_INFIX_FIRST) {
return new KtNamedInfixFirstImpl(node);
}
else if (type == NAMED_INFIX_PLUS) {
return new KtNamedInfixPlusImpl(node);
}
else if (type == NULL) {
return new KtNullImpl(node);
}
else if (type == NULLABLE_TYPE) {
return new KtNullableTypeImpl(node);
}
else if (type == OBJECT) {
return new KtObjectImpl(node);
}
else if (type == OBJECT_DECLARATION) {
return new KtObjectDeclarationImpl(node);
}
else if (type == OBJECT_DECLARATION_NAME) {
return new KtObjectDeclarationNameImpl(node);
}
else if (type == OBJECT_LITERAL) {
return new KtObjectLiteralImpl(node);
}
else if (type == OBJECT_NAME) {
return new KtObjectNameImpl(node);
}
else if (type == OBJECT_UNNAMED) {
return new KtObjectUnnamedImpl(node);
}
else if (type == OR_OPERATION) {
return new KtOrOperationImpl(node);
}
else if (type == PACKAGE_DIRECTIVE) {
return new KtPackageDirectiveImpl(node);
}
else if (type == PACKAGE_HEADER) {
return new KtPackageHeaderImpl(node);
}
else if (type == PARAMETER) {
return new KtParameterImpl(node);
}
else if (type == PARAMETER_OR_MODIFIER_TYPE) {
return new KtParameterOrModifierTypeImpl(node);
}
else if (type == PARENTHESIZED_EXPRESSION) {
return new KtParenthesizedExpressionImpl(node);
}
else if (type == PLUS_PLUS_AND_OTHERS_EXPRESSION) {
return new KtPlusPlusAndOthersExpressionImpl(node);
}
else if (type == PLUS_PLUS_AND_OTHERS_OPERATION) {
return new KtPlusPlusAndOthersOperationImpl(node);
}
else if (type == PREFIX_OPERATION) {
return new KtPrefixOperationImpl(node);
}
else if (type == PREFIX_OPERATION_EXPRESSION) {
return new KtPrefixOperationExpressionImpl(node);
}
else if (type == PRIMARY_CONSTRUCTOR_MODIFIER_LIST) {
return new KtPrimaryConstructorModifierListImpl(node);
}
else if (type == PROPERTY) {
return new KtPropertyImpl(node);
}
else if (type == PROPERTY_DELEGATE) {
return new KtPropertyDelegateImpl(node);
}
else if (type == PROPERTY_LOCAL) {
return new KtPropertyLocalImpl(node);
}
else if (type == RANGE_EXPRESSION_PLUS) {
return new KtRangeExpressionPlusImpl(node);
}
else if (type == RANGE_OPERATION) {
return new KtRangeOperationImpl(node);
}
else if (type == REFERENCE_EXPRESSION) {
return new KtReferenceExpressionImpl(node);
}
else if (type == SAFE_ACCESS_EXPRESSION) {
return new KtSafeAccessExpressionImpl(node);
}
else if (type == SCRIPT) {
return new KtScriptImpl(node);
}
else if (type == SELF_TYPE) {
return new KtSelfTypeImpl(node);
}
else if (type == SETTER) {
return new KtSetterImpl(node);
}
else if (type == SHORT_TEMPLATE_ENTRY) {
return new KtShortTemplateEntryImpl(node);
}
else if (type == SIMPLE_NAME_OPERATION) {
return new KtSimpleNameOperationImpl(node);
}
else if (type == SIMPLE_USER_TYPE) {
return new KtSimpleUserTypeImpl(node);
}
else if (type == SIMPLE_USER_TYPE_ADD) {
return new KtSimpleUserTypeAddImpl(node);
}
else if (type == SINGLE_VALUE_PARAMETER_LIST) {
return new KtSingleValueParameterListImpl(node);
}
else if (type == SINGLE_VALUE_PARAMETER_LIST_WITH_BRACKETS) {
return new KtSingleValueParameterListWithBracketsImpl(node);
}
else if (type == STATEMENTS_BLOCK) {
return new KtStatementsBlockImpl(node);
}
else if (type == STRING_TEMPLATE) {
return new KtStringTemplateImpl(node);
}
else if (type == SUPER_EXPRESSION) {
return new KtSuperExpressionImpl(node);
}
else if (type == SUPER_REFERENCE) {
return new KtSuperReferenceImpl(node);
}
else if (type == THEN_EXPRESSION) {
return new KtThenExpressionImpl(node);
}
else if (type == THEN_EXPRESSION_WITH_SEMI) {
return new KtThenExpressionWithSemiImpl(node);
}
else if (type == THIS_EXPRESSION) {
return new KtThisExpressionImpl(node);
}
else if (type == THIS_REFERENCE) {
return new KtThisReferenceImpl(node);
}
else if (type == TRY_BLOCK) {
return new KtTryBlockImpl(node);
}
else if (type == TYPE) {
return new KtTypeImpl(node);
}
else if (type == TYPEDEF) {
return new KtTypedefImpl(node);
}
else if (type == TYPE_ARGUMENTS) {
return new KtTypeArgumentsImpl(node);
}
else if (type == TYPE_ARGUMENT_LIST) {
return new KtTypeArgumentListImpl(node);
}
else if (type == TYPE_CONSTRAINT) {
return new KtTypeConstraintImpl(node);
}
else if (type == TYPE_CONSTRAINT_EXT) {
return new KtTypeConstraintExtImpl(node);
}
else if (type == TYPE_LIST) {
return new KtTypeListImpl(node);
}
else if (type == TYPE_OPERATION) {
return new KtTypeOperationImpl(node);
}
else if (type == TYPE_PARAMETER) {
return new KtTypeParameterImpl(node);
}
else if (type == TYPE_PARAMETERS) {
return new KtTypeParametersImpl(node);
}
else if (type == TYPE_PROJECTION) {
return new KtTypeProjectionImpl(node);
}
else if (type == TYPE_RHS_PLUS) {
return new KtTypeRHSPlusImpl(node);
}
else if (type == USER_TYPE_REFERENCE) {
return new KtUserTypeReferenceImpl(node);
}
else if (type == VALUE_ARGUMENT) {
return new KtValueArgumentImpl(node);
}
else if (type == VALUE_ARGUMENTS) {
return new KtValueArgumentsImpl(node);
}
else if (type == VALUE_ARGUMENT_NAME) {
return new KtValueArgumentNameImpl(node);
}
else if (type == VALUE_PARAMETERS) {
return new KtValueParametersImpl(node);
}
else if (type == VALUE_PARAMETER_LIST) {
return new KtValueParameterListImpl(node);
}
else if (type == VALUE_PARAMETER_NO_TYPE) {
return new KtValueParameterNoTypeImpl(node);
}
else if (type == VALUE_PARAMETER_WITH_TYPE) {
return new KtValueParameterWithTypeImpl(node);
}
else if (type == VARIABLE_DECLARATION_ENTRY_EXT) {
return new KtVariableDeclarationEntryExtImpl(node);
}
else if (type == WHEN) {
return new KtWhenImpl(node);
}
else if (type == WHEN_CONDITION_EXPRESSION) {
return new KtWhenConditionExpressionImpl(node);
}
else if (type == WHEN_CONDITION_IN_RANGE) {
return new KtWhenConditionInRangeImpl(node);
}
else if (type == WHEN_CONDITION_IS_PATTERN) {
return new KtWhenConditionIsPatternImpl(node);
}
else if (type == WHEN_ENTRY) {
return new KtWhenEntryImpl(node);
}
else if (type == WHEN_PROPERTY) {
return new KtWhenPropertyImpl(node);
}
else if (type == WHILE_LOOP) {
return new KtWhileLoopImpl(node);
}
throw new AssertionError("Unknown element type: " + type);
}
}
}

View File

@@ -1,127 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAdditiveExpressionPlus extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@Nullable
KtAdditiveExpressionPlus getAdditiveExpressionPlus();
@NotNull
KtAdditiveOperation getAdditiveOperation();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAdditiveOperation extends PsiElement {
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAndOperation extends PsiElement {
}

View File

@@ -1,121 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAnnotatedExpression extends PsiElement {
@Nullable
KtCharacterConstant getCharacterConstant();
@Nullable
KtFloatConstant getFloatConstant();
@Nullable
KtIntegerConstant getIntegerConstant();
@Nullable
KtNull getNull();
@Nullable
KtAnnotatedExpression getAnnotatedExpression();
@Nullable
KtAnnotationEntry getAnnotationEntry();
@Nullable
KtArrayAccess getArrayAccess();
@Nullable
KtAtomicPackage getAtomicPackage();
@Nullable
KtBinaryConstant getBinaryConstant();
@Nullable
KtCallSuffix getCallSuffix();
@Nullable
KtCallableReference getCallableReference();
@Nullable
KtDoWhileLoop getDoWhileLoop();
@Nullable
KtDotQualifiedExpression getDotQualifiedExpression();
@Nullable
KtElvisAccessExpression getElvisAccessExpression();
@Nullable
KtFieldIdentifierReference getFieldIdentifierReference();
@Nullable
KtForLoop getForLoop();
@Nullable
KtFunctionLiteralExpression getFunctionLiteralExpression();
@Nullable
KtIfExpression getIfExpression();
@Nullable
KtJumpBreak getJumpBreak();
@Nullable
KtJumpContinue getJumpContinue();
@Nullable
KtJumpReturn getJumpReturn();
@Nullable
KtJumpThrow getJumpThrow();
@Nullable
KtLabel getLabel();
@Nullable
KtLabelExpression getLabelExpression();
@Nullable
KtLongAnnotation getLongAnnotation();
@Nullable
KtObjectLiteral getObjectLiteral();
@Nullable
KtParenthesizedExpression getParenthesizedExpression();
@Nullable
KtPlusPlusAndOthersExpression getPlusPlusAndOthersExpression();
@Nullable
KtPrefixOperationExpression getPrefixOperationExpression();
@Nullable
KtReferenceExpression getReferenceExpression();
@Nullable
KtSafeAccessExpression getSafeAccessExpression();
@Nullable
KtStringTemplate getStringTemplate();
@Nullable
KtSuperExpression getSuperExpression();
@Nullable
KtThisExpression getThisExpression();
@Nullable
KtTryBlock getTryBlock();
@Nullable
KtWhen getWhen();
@Nullable
KtWhileLoop getWhileLoop();
}

View File

@@ -1,19 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAnnotationEntry extends PsiElement {
@NotNull
KtConstructorCallee getConstructorCallee();
@Nullable
KtTypeArguments getTypeArguments();
@Nullable
KtValueArguments getValueArguments();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAnnotations extends PsiElement {
@NotNull
List<KtAnnotationEntry> getAnnotationEntryList();
@NotNull
List<KtLongAnnotation> getLongAnnotationList();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAnonymousInitializer extends PsiElement {
@NotNull
KtBlock getBlock();
@Nullable
KtModifierList getModifierList();
}

View File

@@ -1,106 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtArrayAccess extends PsiElement {
@Nullable
KtCharacterConstant getCharacterConstant();
@Nullable
KtFloatConstant getFloatConstant();
@Nullable
KtIntegerConstant getIntegerConstant();
@Nullable
KtNull getNull();
@Nullable
KtArrayAccess getArrayAccess();
@Nullable
KtAtomicPackage getAtomicPackage();
@Nullable
KtBinaryConstant getBinaryConstant();
@Nullable
KtCallSuffix getCallSuffix();
@Nullable
KtCallableReference getCallableReference();
@Nullable
KtDoWhileLoop getDoWhileLoop();
@Nullable
KtElvisAccessExpression getElvisAccessExpression();
@Nullable
KtFieldIdentifierReference getFieldIdentifierReference();
@Nullable
KtForLoop getForLoop();
@Nullable
KtFunctionLiteralExpression getFunctionLiteralExpression();
@Nullable
KtIfExpression getIfExpression();
@NotNull
KtIndices getIndices();
@Nullable
KtJumpBreak getJumpBreak();
@Nullable
KtJumpContinue getJumpContinue();
@Nullable
KtJumpReturn getJumpReturn();
@Nullable
KtJumpThrow getJumpThrow();
@Nullable
KtLabel getLabel();
@Nullable
KtObjectLiteral getObjectLiteral();
@Nullable
KtParenthesizedExpression getParenthesizedExpression();
@Nullable
KtPlusPlusAndOthersExpression getPlusPlusAndOthersExpression();
@Nullable
KtReferenceExpression getReferenceExpression();
@Nullable
KtSafeAccessExpression getSafeAccessExpression();
@Nullable
KtStringTemplate getStringTemplate();
@Nullable
KtSuperExpression getSuperExpression();
@Nullable
KtThisExpression getThisExpression();
@Nullable
KtTryBlock getTryBlock();
@Nullable
KtWhen getWhen();
@Nullable
KtWhileLoop getWhileLoop();
}

View File

@@ -1,151 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAssignmentExpression extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAssignmentOperator> getAssignmentOperatorList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtComparisonExpression> getComparisonExpressionList();
@NotNull
List<KtConjunctionPlus> getConjunctionPlusList();
@NotNull
List<KtDisjunctionPlus> getDisjunctionPlusList();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtEqualityComparisonExpression> getEqualityComparisonExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtNamedInfixFirst> getNamedInfixFirstList();
@NotNull
List<KtNamedInfixPlus> getNamedInfixPlusList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAssignmentOperator extends PsiElement {
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAsterisk extends PsiElement {
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtAtomicPackage extends PsiElement {
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtBinaryConstant extends PsiElement {
}

View File

@@ -1,166 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtBlock extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAssignmentExpression> getAssignmentExpressionList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtClassDeclarationLocal> getClassDeclarationLocalList();
@NotNull
List<KtComparisonExpression> getComparisonExpressionList();
@NotNull
List<KtConjunctionPlus> getConjunctionPlusList();
@NotNull
List<KtDisjunctionPlus> getDisjunctionPlusList();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtEqualityComparisonExpression> getEqualityComparisonExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunction> getFunctionList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtNamedInfixFirst> getNamedInfixFirstList();
@NotNull
List<KtNamedInfixPlus> getNamedInfixPlusList();
@NotNull
List<KtObject> getObjectList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtPropertyLocal> getPropertyLocalList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtTypedef> getTypedefList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,154 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtBody extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@Nullable
KtAssignmentExpression getAssignmentExpression();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@Nullable
KtBlock getBlock();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@Nullable
KtComparisonExpression getComparisonExpression();
@Nullable
KtConjunctionPlus getConjunctionPlus();
@Nullable
KtDisjunctionPlus getDisjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@Nullable
KtEqualityComparisonExpression getEqualityComparisonExpression();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@Nullable
KtNamedInfixFirst getNamedInfixFirst();
@Nullable
KtNamedInfixPlus getNamedInfixPlus();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,112 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtCallSuffix extends PsiElement {
@Nullable
KtCharacterConstant getCharacterConstant();
@Nullable
KtFloatConstant getFloatConstant();
@Nullable
KtIntegerConstant getIntegerConstant();
@Nullable
KtNull getNull();
@Nullable
KtArrayAccess getArrayAccess();
@Nullable
KtAtomicPackage getAtomicPackage();
@Nullable
KtBinaryConstant getBinaryConstant();
@Nullable
KtCallSuffix getCallSuffix();
@Nullable
KtCallableReference getCallableReference();
@Nullable
KtDoWhileLoop getDoWhileLoop();
@Nullable
KtElvisAccessExpression getElvisAccessExpression();
@Nullable
KtFieldIdentifierReference getFieldIdentifierReference();
@Nullable
KtForLoop getForLoop();
@NotNull
List<KtFunctionLiteralArgument> getFunctionLiteralArgumentList();
@Nullable
KtFunctionLiteralExpression getFunctionLiteralExpression();
@Nullable
KtIfExpression getIfExpression();
@Nullable
KtJumpBreak getJumpBreak();
@Nullable
KtJumpContinue getJumpContinue();
@Nullable
KtJumpReturn getJumpReturn();
@Nullable
KtJumpThrow getJumpThrow();
@NotNull
List<KtLabel> getLabelList();
@Nullable
KtObjectLiteral getObjectLiteral();
@Nullable
KtParenthesizedExpression getParenthesizedExpression();
@Nullable
KtPlusPlusAndOthersExpression getPlusPlusAndOthersExpression();
@Nullable
KtReferenceExpression getReferenceExpression();
@Nullable
KtSafeAccessExpression getSafeAccessExpression();
@Nullable
KtStringTemplate getStringTemplate();
@Nullable
KtSuperExpression getSuperExpression();
@Nullable
KtThisExpression getThisExpression();
@Nullable
KtTryBlock getTryBlock();
@Nullable
KtTypeArgumentList getTypeArgumentList();
@Nullable
KtValueArguments getValueArguments();
@Nullable
KtWhen getWhen();
@Nullable
KtWhileLoop getWhileLoop();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtCallableReference extends PsiElement {
@Nullable
KtSimpleUserType getSimpleUserType();
@Nullable
KtSimpleUserTypeAdd getSimpleUserTypeAdd();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtCatchBlock extends PsiElement {
@NotNull
KtBlock getBlock();
@NotNull
KtSingleValueParameterListWithBrackets getSingleValueParameterListWithBrackets();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtCharacterConstant extends PsiElement {
}

View File

@@ -1,31 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtClassBody extends PsiElement {
@NotNull
List<KtAnonymousInitializer> getAnonymousInitializerList();
@NotNull
List<KtClassDeclaration> getClassDeclarationList();
@NotNull
List<KtClassObject> getClassObjectList();
@NotNull
List<KtFunction> getFunctionList();
@NotNull
List<KtObject> getObjectList();
@NotNull
List<KtProperty> getPropertyList();
@NotNull
List<KtTypedef> getTypedefList();
}

View File

@@ -1,40 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtClassDeclaration extends PsiElement {
@NotNull
List<KtAnnotationEntry> getAnnotationEntryList();
@Nullable
KtClassBody getClassBody();
@Nullable
KtDelegationSpecifierExt getDelegationSpecifierExt();
@Nullable
KtEnumClassBody getEnumClassBody();
@NotNull
List<KtLongAnnotation> getLongAnnotationList();
@Nullable
KtModifierList getModifierList();
@Nullable
KtPrimaryConstructorModifierList getPrimaryConstructorModifierList();
@Nullable
KtTypeConstraintExt getTypeConstraintExt();
@Nullable
KtTypeParameters getTypeParameters();
@Nullable
KtValueParameters getValueParameters();
}

View File

@@ -1,40 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtClassDeclarationLocal extends PsiElement {
@NotNull
List<KtAnnotationEntry> getAnnotationEntryList();
@Nullable
KtClassBody getClassBody();
@Nullable
KtDelegationSpecifierExt getDelegationSpecifierExt();
@Nullable
KtEnumClassBody getEnumClassBody();
@NotNull
List<KtLongAnnotation> getLongAnnotationList();
@Nullable
KtModifierList getModifierList();
@Nullable
KtPrimaryConstructorModifierList getPrimaryConstructorModifierList();
@Nullable
KtTypeConstraintExt getTypeConstraintExt();
@Nullable
KtTypeParameters getTypeParameters();
@Nullable
KtValueParameters getValueParameters();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtClassObject extends PsiElement {
@Nullable
KtModifierList getModifierList();
@NotNull
KtObjectUnnamed getObjectUnnamed();
}

View File

@@ -1,142 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtComparisonExpression extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@Nullable
KtComparisonExpression getComparisonExpression();
@NotNull
KtComparisonOperation getComparisonOperation();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtNamedInfixFirst> getNamedInfixFirstList();
@NotNull
List<KtNamedInfixPlus> getNamedInfixPlusList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtComparisonOperation extends PsiElement {
}

View File

@@ -1,151 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtCondition extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@Nullable
KtAssignmentExpression getAssignmentExpression();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@Nullable
KtComparisonExpression getComparisonExpression();
@Nullable
KtConjunctionPlus getConjunctionPlus();
@Nullable
KtDisjunctionPlus getDisjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@Nullable
KtEqualityComparisonExpression getEqualityComparisonExpression();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@Nullable
KtNamedInfixFirst getNamedInfixFirst();
@Nullable
KtNamedInfixPlus getNamedInfixPlus();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,148 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtConjunctionPlus extends PsiElement {
@NotNull
KtAndOperation getAndOperation();
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtComparisonExpression> getComparisonExpressionList();
@Nullable
KtConjunctionPlus getConjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtEqualityComparisonExpression> getEqualityComparisonExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtNamedInfixFirst> getNamedInfixFirstList();
@NotNull
List<KtNamedInfixPlus> getNamedInfixPlusList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,13 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtConstructorCallee extends PsiElement {
@NotNull
KtUserTypeReference getUserTypeReference();
}

View File

@@ -1,19 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDelegationSpecifierExt extends PsiElement {
@NotNull
List<KtDelegatorSuperCall> getDelegatorSuperCallList();
@NotNull
List<KtDelegatorSuperClass> getDelegatorSuperClassList();
@NotNull
List<KtExplicitDelegation> getExplicitDelegationList();
}

View File

@@ -1,25 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDelegatorSuperCall extends PsiElement {
@NotNull
KtConstructorCallee getConstructorCallee();
@Nullable
KtFunctionLiteral getFunctionLiteral();
@Nullable
KtLabel getLabel();
@Nullable
KtTypeArguments getTypeArguments();
@Nullable
KtValueArguments getValueArguments();
}

View File

@@ -1,13 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDelegatorSuperClass extends PsiElement {
@NotNull
KtUserTypeReference getUserTypeReference();
}

View File

@@ -1,151 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDisjunctionPlus extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
KtOrOperation getOrOperation();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtComparisonExpression> getComparisonExpressionList();
@NotNull
List<KtConjunctionPlus> getConjunctionPlusList();
@Nullable
KtDisjunctionPlus getDisjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtEqualityComparisonExpression> getEqualityComparisonExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtNamedInfixFirst> getNamedInfixFirstList();
@NotNull
List<KtNamedInfixPlus> getNamedInfixPlusList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDoWhileLoop extends PsiElement {
@Nullable
KtBody getBody();
@NotNull
KtCondition getCondition();
}

View File

@@ -1,16 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDotIdentifier extends PsiElement {
@Nullable
KtDotIdentifier getDotIdentifier();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
}

View File

@@ -1,106 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtDotQualifiedExpression extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@Nullable
KtDotQualifiedExpression getDotQualifiedExpression();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,154 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtElseExpression extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@Nullable
KtAssignmentExpression getAssignmentExpression();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@Nullable
KtBlock getBlock();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@Nullable
KtComparisonExpression getComparisonExpression();
@Nullable
KtConjunctionPlus getConjunctionPlus();
@Nullable
KtDisjunctionPlus getDisjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@Nullable
KtEqualityComparisonExpression getEqualityComparisonExpression();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@Nullable
KtNamedInfixFirst getNamedInfixFirst();
@Nullable
KtNamedInfixPlus getNamedInfixPlus();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,106 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtElvisAccessExpression extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@Nullable
KtArrayAccess getArrayAccess();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@Nullable
KtCallSuffix getCallSuffix();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@Nullable
KtElvisAccessExpression getElvisAccessExpression();
@NotNull
KtElvisOperation getElvisOperation();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@Nullable
KtPlusPlusAndOthersExpression getPlusPlusAndOthersExpression();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@Nullable
KtSafeAccessExpression getSafeAccessExpression();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtElvisOperation extends PsiElement {
}

View File

@@ -1,34 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtEnumClassBody extends PsiElement {
@NotNull
List<KtAnonymousInitializer> getAnonymousInitializerList();
@NotNull
List<KtClassDeclaration> getClassDeclarationList();
@NotNull
List<KtClassObject> getClassObjectList();
@NotNull
List<KtEnumEntry> getEnumEntryList();
@NotNull
List<KtFunction> getFunctionList();
@NotNull
List<KtObject> getObjectList();
@NotNull
List<KtProperty> getPropertyList();
@NotNull
List<KtTypedef> getTypedefList();
}

View File

@@ -1,22 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtEnumEntry extends PsiElement {
@Nullable
KtClassBody getClassBody();
@Nullable
KtInitializerExt getInitializerExt();
@Nullable
KtModifierList getModifierList();
@NotNull
KtObjectDeclarationName getObjectDeclarationName();
}

View File

@@ -1,145 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtEqualityComparisonExpression extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@NotNull
List<KtComparisonExpression> getComparisonExpressionList();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@Nullable
KtEqualityComparisonExpression getEqualityComparisonExpression();
@NotNull
KtEqualityOperation getEqualityOperation();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@NotNull
List<KtNamedInfixFirst> getNamedInfixFirstList();
@NotNull
List<KtNamedInfixPlus> getNamedInfixPlusList();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtEqualityOperation extends PsiElement {
}

View File

@@ -1,154 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtExplicitDelegation extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@Nullable
KtAssignmentExpression getAssignmentExpression();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@Nullable
KtComparisonExpression getComparisonExpression();
@Nullable
KtConjunctionPlus getConjunctionPlus();
@Nullable
KtDisjunctionPlus getDisjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@Nullable
KtEqualityComparisonExpression getEqualityComparisonExpression();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@Nullable
KtNamedInfixFirst getNamedInfixFirst();
@Nullable
KtNamedInfixPlus getNamedInfixPlus();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
KtUserTypeReference getUserTypeReference();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtFieldIdentifierReference extends PsiElement {
}

View File

@@ -1,13 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtFinallyBlock extends PsiElement {
@NotNull
KtBlock getBlock();
}

View File

@@ -1,10 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtFloatConstant extends PsiElement {
}

View File

@@ -1,19 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtForLoop extends PsiElement {
@NotNull
KtBody getBody();
@NotNull
KtForValueParameter getForValueParameter();
@NotNull
KtLoopRange getLoopRange();
}

View File

@@ -1,22 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtForValueParameter extends PsiElement {
@NotNull
List<KtAnnotationEntry> getAnnotationEntryList();
@NotNull
List<KtLongAnnotation> getLongAnnotationList();
@Nullable
KtMultipleVariableDeclarations getMultipleVariableDeclarations();
@Nullable
KtType getType();
}

View File

@@ -1,175 +0,0 @@
// This is a generated file. Not intended for manual editing.
package generated.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface KtFunction extends PsiElement {
@NotNull
List<KtCharacterConstant> getCharacterConstantList();
@NotNull
List<KtFloatConstant> getFloatConstantList();
@NotNull
List<KtIntegerConstant> getIntegerConstantList();
@NotNull
List<KtNull> getNullList();
@NotNull
List<KtAdditiveExpressionPlus> getAdditiveExpressionPlusList();
@NotNull
List<KtAnnotatedExpression> getAnnotatedExpressionList();
@NotNull
List<KtAnnotationEntry> getAnnotationEntryList();
@NotNull
List<KtArrayAccess> getArrayAccessList();
@Nullable
KtAssignmentExpression getAssignmentExpression();
@NotNull
List<KtAtomicPackage> getAtomicPackageList();
@NotNull
List<KtBinaryConstant> getBinaryConstantList();
@Nullable
KtBlock getBlock();
@NotNull
List<KtCallSuffix> getCallSuffixList();
@NotNull
List<KtCallableReference> getCallableReferenceList();
@Nullable
KtComparisonExpression getComparisonExpression();
@Nullable
KtConjunctionPlus getConjunctionPlus();
@Nullable
KtDisjunctionPlus getDisjunctionPlus();
@NotNull
List<KtDoWhileLoop> getDoWhileLoopList();
@NotNull
List<KtDotQualifiedExpression> getDotQualifiedExpressionList();
@NotNull
List<KtElvisAccessExpression> getElvisAccessExpressionList();
@Nullable
KtEqualityComparisonExpression getEqualityComparisonExpression();
@NotNull
List<KtFieldIdentifierReference> getFieldIdentifierReferenceList();
@NotNull
List<KtForLoop> getForLoopList();
@NotNull
List<KtFunctionLiteralExpression> getFunctionLiteralExpressionList();
@NotNull
List<KtIfExpression> getIfExpressionList();
@NotNull
List<KtInfixFunctionCallPlus> getInfixFunctionCallPlusList();
@NotNull
List<KtJumpBreak> getJumpBreakList();
@NotNull
List<KtJumpContinue> getJumpContinueList();
@NotNull
List<KtJumpReturn> getJumpReturnList();
@NotNull
List<KtJumpThrow> getJumpThrowList();
@NotNull
List<KtLabel> getLabelList();
@NotNull
List<KtLabelExpression> getLabelExpressionList();
@NotNull
List<KtLongAnnotation> getLongAnnotationList();
@Nullable
KtModifierList getModifierList();
@NotNull
List<KtMultiplicativeExpressionPlus> getMultiplicativeExpressionPlusList();
@Nullable
KtNamedInfixFirst getNamedInfixFirst();
@Nullable
KtNamedInfixPlus getNamedInfixPlus();
@NotNull
List<KtObjectLiteral> getObjectLiteralList();
@NotNull
List<KtParenthesizedExpression> getParenthesizedExpressionList();
@NotNull
List<KtPlusPlusAndOthersExpression> getPlusPlusAndOthersExpressionList();
@NotNull
List<KtPrefixOperationExpression> getPrefixOperationExpressionList();
@NotNull
List<KtRangeExpressionPlus> getRangeExpressionPlusList();
@NotNull
List<KtReferenceExpression> getReferenceExpressionList();
@NotNull
List<KtSafeAccessExpression> getSafeAccessExpressionList();
@NotNull
List<KtStringTemplate> getStringTemplateList();
@NotNull
List<KtSuperExpression> getSuperExpressionList();
@NotNull
List<KtThisExpression> getThisExpressionList();
@NotNull
List<KtTryBlock> getTryBlockList();
@NotNull
List<KtType> getTypeList();
@Nullable
KtTypeConstraintExt getTypeConstraintExt();
@NotNull
List<KtTypeParameters> getTypeParametersList();
@NotNull
List<KtTypeRHSPlus> getTypeRHSPlusList();
@NotNull
KtValueParameters getValueParameters();
@NotNull
List<KtWhen> getWhenList();
@NotNull
List<KtWhileLoop> getWhileLoopList();
}

Some files were not shown because too many files have changed in this diff Show More