Commit Graph

393 Commits

Author SHA1 Message Date
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
Natalia Ukhorskaya 73d62902d0 Debugger: use partialBodyResolve. Don't compete variables defined after context element 2014-12-12 13:42:35 +03:00
Michael Nedzelsky a49bcc8d39 fix detection Kotlin Javascript stdlib 2014-12-12 03:04:29 +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 103307432e update kotlin javascript stdlib if needed 2014-12-12 03:03:24 +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
Alexey Sedunov 15d7932491 Minor: Remove unnecessary check for test sources (reverted earlier commit) 2014-12-11 17:50:25 +03:00
Zalim Bashorov 65ef7525ce Allow to use dynamic types for JS projects in IDEA. 2014-12-10 22:48:00 +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 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
Valentin Kipyatkov b8d1f115bf Renamed JetType.isNullable() to isMarkedNullable() 2014-12-03 21:36:10 +03:00
Alexander Udalov 66774c0fd1 Remove utility method from AnnotationDescriptor interface 2014-12-03 15:58:12 +03:00
Andrey Breslav ea4f0ab214 Methods in KotlinBuiltIns made static where already possible 2014-12-03 15:39:09 +03:00
Natalia Ukhorskaya 86af5ded76 Add surrounder for cast to runtime type 2014-12-03 11:19:38 +03:00
Stanislav Erokhin b55114055e Change usage "v == Visibilities.PRIVATE" to Visibilities.isPrivate(v) 2014-12-02 14:30:17 +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 7f0df032b4 Highlight dynamic calls in the editor 2014-12-01 20:43:41 +03:00
Andrey Breslav e0bd881c1e Rendering for dynamic types 2014-12-01 20:43:38 +03:00
Valentin Kipyatkov 2daeaa38d9 2 more indices not needed anymore 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 c06d70d190 JS frontend: added checkers for nativeInvoke, nativeGetter, nativeSetter. 2014-12-01 15:27:36 +03:00
Nikolay Krasko 0fa001ed01 LTDA, Minor: method rename 2014-11-28 17:18:41 +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 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
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
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
Alexey Sedunov 591c409854 Change Signature: Process Kotlin-based usages when changing signature of the Java function 2014-11-26 13:07:38 +03:00
Alexander Udalov 60662e5831 Fix double laziness of annotations introduced in 149a90d 2014-11-25 23:16:21 +03:00
Alexander Udalov 5907df92db Drop secondary DeserializedPackageMemberScope constructor
Create package context only once
2014-11-25 23:15:49 +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 cb5c21e831 Merge DeserializationGlobalContext with DeserializationComponents 2014-11-25 23:15:47 +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
Valentin Kipyatkov ddc60ac5dd Better injecting of partial body resolve filter 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 0dd77a8ed3 Renames - dropped word "Service" 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov a0c9c0e7b2 Added firstOrNullIsInstance and firstIsInstance methods 2014-11-24 20:11:26 +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