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