Commit Graph

20016 Commits

Author SHA1 Message Date
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