Commit Graph

20037 Commits

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