Commit Graph

22080 Commits

Author SHA1 Message Date
Denis Zharkov 74bf4a3a7f Refine findElementOfClassAtRange to make it find labels 2015-04-29 14:03:11 +03:00
Denis Zharkov ffa9b0aa7c Remove whitespaces before labels in project code
Whitespaces are not allowed after lates syntax changes
2015-04-29 14:03:11 +03:00
Denis Zharkov 3e3535f8cf Temporary parse label definitions with both syntax versions
Should be reverted after bootstrap
2015-04-29 14:03:11 +03:00
Denis Zharkov 44a55e5bf6 Adjust testData to new labels syntax 2015-04-29 14:03:11 +03:00
Denis Zharkov 5977302465 Adjust J2K to new labels syntax 2015-04-29 14:03:11 +03:00
Denis Zharkov 89c72d9400 Adjust PSI usages to new labels syntax 2015-04-29 14:03:11 +03:00
Denis Zharkov 241860d510 JetExpressionWithLabel: Convert to kotlin 2015-04-29 14:03:11 +03:00
Denis Zharkov 18bd8fa6ab JetExpressionWithLabel: .java -> .kt 2015-04-29 14:03:10 +03:00
Denis Zharkov 7d5a035aaf Regenerate lexers for new labels parsing rules 2015-04-29 14:03:10 +03:00
Denis Zharkov 507eefcaa5 Implement new parsing rules for labels
See changes in expressions.grm
2015-04-29 14:03:10 +03:00
Alexander Udalov 0d76634f6b Support SKIP_TXT directive in diagnostic tests
Don't render the whole 'kotlin' package in some tests, because test data will
change every time something is updated in built-ins
2015-04-29 01:36:20 +03:00
Alexander Udalov 43ac20e88a Move builtins dependency to the top in compiler-tests
When running tests locally, serialized built-ins located in dist/builtins
should have a higher priority than the ones in the bootstrap runtime, on which
almost every module depends by default. Also make it a 'runtime' dependency
because the binary files there can't really change anything at compile time
2015-04-29 01:36:20 +03:00
Alexander Udalov 890d18e7be Support external annotations in IDE when approximating flexible types 2015-04-29 01:09:36 +03:00
Alexander Udalov 2271ca1e81 Further simplify Java annotation resolution
Filter annotations by FQ name, get rid of unneeded properties, lazy values,
static import some stuff
2015-04-29 01:09:36 +03:00
Alexander Udalov d7c810a4d0 Copy only nullability/mutability annotations to types
Also don't render copied annotations
2015-04-29 01:09:35 +03:00
Alexander Udalov 3369da94e4 Rename annotationUtils.kt -> LazyJavaAnnotations.kt 2015-04-29 01:03:57 +03:00
Alexander Udalov 24bad39e76 Don't use external annotations in compiler
External annotations will be re-enabled in the IDE later.

This fixes LazyJavaAnnotations which was breaking the contract of Annotations:
findAnnotation(FqName) was looking for external annotations, while iterator()
did not. This resulted in some inconsistencies in the compiler and IDE tests.

The other way, i.e. making iterator() look up external annotations, would have
been too costly for the compiler and with no clear benefit at the moment.
2015-04-29 01:03:57 +03:00
Alexander Udalov fe602d34ce Support type annotations in cls stub builder
Also add test on decompiler
2015-04-29 01:03:56 +03:00
Alexander Udalov 0732b78853 Serialize/deserialize annotations on types 2015-04-29 01:03:55 +03:00
Alexander Udalov 88abcdbde5 Minor, remove workarounds for the fixed KT-5786 2015-04-29 01:03:55 +03:00
Alexander Udalov b860f2c9d5 Minor, remove temporary bootstrapping workaround 2015-04-29 01:03:54 +03:00
Mikhail Glukhikh 054e85338d Fix for EA-68153 (incorrect nullability) 2015-04-28 17:37:56 +03:00
Mikhail Glukhikh fd789cb68e Correct behaviour for break / continue inside function call arguments, including multiple ones. Additional tests. 2015-04-28 17:37:53 +03:00
Pavel V. Talanov 3702089396 Minor: Do not throw on getContainingDeclaration() in test
Fix build
2015-04-28 16:45:44 +03:00
Pavel V. Talanov 032846aba0 Remove a couple of usages of KotlinBuiltIns.getInstance() 2015-04-28 16:45:43 +03:00
asedunov 7d28f8d2cf Merge pull request #656 from JetBrains/rr/yole/kt7483
fix JetPsiUtil.deleteClass() so that it no longer tries to delete the en...
2015-04-28 15:49:42 +03:00
asedunov e701f8878d Merge pull request #657 from JetBrains/rr/yole/kt5207
support custom folding regions for Kotlin
2015-04-28 15:46:24 +03:00
Mikhail Glukhikh 8f2a3e9d5f Fixed DFA for the last assignment / initialization in block. A relevant test. #KT-7599 Fixed. 2015-04-28 15:16:39 +03:00
Mikhail Glukhikh 60fdfb8441 Bug fix: DataFlowInfo.getCompleteTypeInfo (with a test) 2015-04-28 15:16:36 +03:00
Pavel V. Talanov 17c3bf6502 Minor: improve DescriptorUtils#getContainingModule()
Correctly handle the case when descriptor is a child of PackageViewDescriptor
2015-04-28 12:49:39 +03:00
Pavel V. Talanov ac2cb9af74 Remove some usages of KotlinBuiltIns.getInstance()
Introduce DeclarationDescriptor.builtIns extension to get builtins where descriptors are available
Introduce various utilities in KotlinBuiltIns to check for primitive types and get fq names of builtins
2015-04-28 12:49:34 +03:00
Alexander Udalov 21d9c272c9 Minor, improve error messages when serializing error types 2015-04-28 00:54:31 +03:00
Alexander Udalov 95c4fb16f4 Minor, add toString() to PackageFragmentDescriptorImpl 2015-04-28 00:54:23 +03:00
Alexander Udalov 244f37aa74 Use preloader for JS compilation in build.xml
Similar to "new-kotlinc" macro. Before this change bootstrap-runtime appeared
earlier on the classpath than the newly built compiler, and so everything was
breaking when e.g. built-ins metadata had been updated (old version in the old
runtime was found earlier than the newer version in the compiler)
2015-04-28 00:52:03 +03:00
Alexander Udalov 167942f4bb Add constant "invoke" to OperatorConventions 2015-04-28 00:51:50 +03:00
Alexander Udalov 94eac98500 Reformat some code, optimize imports, remove unused
Mostly in JVM codegen intrinsics
2015-04-28 00:35:53 +03:00
Alexey Sedunov 7831e75955 Change Signature: Introduce variable for expression which can't be safely copied in the course of argument substitution 2015-04-27 23:02:39 +03:00
Alexey Sedunov 14f63cdce5 Change Signature: Substitute parameter references in default values of call expression arguments 2015-04-27 23:02:38 +03:00
Alexey Sedunov cbbeec3790 Change Signature: Keep base function descriptor in JetParameterInfo 2015-04-27 23:02:36 +03:00
Alexey Sedunov bd6031fea1 Change Signature: Initialize JetFunctionCallUsage delegate early to ensure consistent analysis results 2015-04-27 23:02:35 +03:00
Alexey Sedunov 720e696f6b Refactoring: Represent call-site default value of JetParameterInfo as JetExpression 2015-04-27 23:02:34 +03:00
Alexey Sedunov 8918ddbb0a Refactoring: Move jetRefactoringUtil.kt to idea module. Move compareDescriptors() and comparePossiblyOverridingDescriptors() to descriptorUtils.kt 2015-04-27 23:02:32 +03:00
Alexey Sedunov d07fc878e7 Minor: Add default values to parameters of JetChangeInfo constructor 2015-04-27 23:02:31 +03:00
Dmitry Jemerov 3af20b5d45 support custom folding regions for Kotlin
#KT-5207 Fixed
2015-04-27 19:22:37 +02:00
Dmitry Jemerov c2944181be fix JetPsiUtil.deleteClass() so that it no longer tries to delete the entire file when deleting a nested class or object
#KT-7483 Fixed
2015-04-27 18:37:43 +02:00
Natalia Ukhorskaya 47bc89775d Minor: add message for assert EA-64788 2015-04-27 18:43:48 +03:00
Natalia Ukhorskaya 328013a351 Evaluate Expression: box and unbox arguments before running JDIEval 2015-04-27 18:43:47 +03:00
Natalia Ukhorskaya 7e245e97ad JDIEval: add box and unbox methods 2015-04-27 18:43:47 +03:00
Natalia Ukhorskaya 7723a9f434 Fix evaluate expression on properties with getter 2015-04-27 18:43:46 +03:00
Dmitry Jemerov cb553bc952 split string literal if Enter is pressed in the middle
#KT-6308 Fixed
2015-04-27 17:39:12 +02:00