Commit Graph

18499 Commits

Author SHA1 Message Date
Valentin Kipyatkov 1983a9f3da Replaced usages of JetScope.getAllDescriptors() with JetScope.getDescriptors() (where makes sense) 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov 2dd41028fd Removed explicit invoke() 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov 760b9c4389 Added JetScope.getDescriptors(nameFilter, kindFilter) but the filters are never used yet 2014-11-12 21:24:55 +03:00
Nikolay Krasko e8a2039396 Use JetTestUtils.assertEqualsToFile in usages tests to simplify fixing test data 2014-11-12 20:37:45 +03:00
Nikolay Krasko c2a544d475 Remove syntax error from java files in usage test data 2014-11-12 20:37:43 +03:00
Nikolay Krasko ccb6aec5ee Fix changing files after running Generated Test configuration 2014-11-12 20:35:01 +03:00
Evgeny Gerashchenko 6bf0c9f4ae Updating Kotlin incremental caches and Java mappings only for Java modules. 2014-11-12 17:56:48 +03:00
Evgeny Gerashchenko ab09ffa4a4 Minor. Renamed property for disambiguation. 2014-11-12 16:25:02 +03:00
Evgeny Gerashchenko 1bab0e5d04 Unified downloading IDEA for main and continuous branches. 2014-11-12 16:25:02 +03:00
Evgeny Gerashchenko 20b1c6e910 Removed redundant macro parameter. It was never used since introduced. 2014-11-12 16:25:02 +03:00
Evgeny Gerashchenko 1a374efcd1 Fixed KNPE when inline functions/constants are completely removed. 2014-11-12 16:25:01 +03:00
Natalia Ukhorskaya c9e5099307 Add test for KT-6240: create custom renderer for generic class
#KT-6240 Open
2014-11-12 15:17:21 +03:00
Natalia Ukhorskaya 12b4fc7ad9 Resolve codeFragments with context of JetClass 2014-11-12 15:13:37 +03:00
Natalia Ukhorskaya a86e0336c9 Fix EA-60377 - readAccess for isSubclass 2014-11-12 11:52:41 +03:00
Natalia Ukhorskaya e82eb38ec3 Debugger: make KotlinRenderer inapplicable if at least one of custom renderer is defined 2014-11-12 11:52:40 +03:00
Evgeny Gerashchenko 868a8dbc84 Fixed paths unification in tests on some Windows machines. 2014-11-12 11:09:35 +03:00
Alexander Udalov b39d34ca8d Prepend zeros to SAM wrapper hash code
To make its length always 8 characters as is already done for package parts.
This fixes some test on incremental compilation because it relies that hashes
are eight characters long
2014-11-11 19:59:20 +03:00
Alexander Udalov 83a2111057 Configure modules 'reflection' and 'reflection.jvm'
Add source roots for IDE features to work in sources, but exclude from Make:
these modules are compiled by the new compiler from build.xml and some weird
errors may arise if we compile it with the old compiler (and also output of
that compilation won't be used anyway)
2014-11-11 18:35:41 +03:00
Alexander Udalov 29480f30ef Minor, fix compilation in module reflection.jvm 2014-11-11 18:35:41 +03:00
Alexander Udalov 57d37a3860 Extract reflection implementation to module runtime.jvm 2014-11-11 18:35:40 +03:00
Alexander Udalov 4f0d83a7fe Update lazy logs after field rename 2014-11-11 18:35:39 +03:00
Alexander Udalov eb96b97bc8 Get rid of underscores in private property names
They were used to workaround duplicate signature errors, but this is no longer
relevant since no accessors are generated for private properties with backing
fields
2014-11-11 18:35:37 +03:00
Alexander Udalov bb96a8e1fb Rename JavaResolverPsiUtils -> JavaResolverUtils 2014-11-11 18:10:44 +03:00
Alexander Udalov be08e33463 Minor, change annotation in test data
To fix this case in an upcoming test which adds retention(runtime) to all
annotations (which resulted in duplicate annotation here)
2014-11-11 18:10:43 +03:00
Alexander Udalov ae3c17d399 Minor, get rid of SAMs in some loadJava tests 2014-11-11 18:10:43 +03:00
Alexander Udalov 66d27fad13 Move utilities out of 'core' to where they are used 2014-11-11 18:10:42 +03:00
Alexander Udalov d3f210f73c Move SAM resolution to frontend.java 2014-11-11 18:10:42 +03:00
Alexander Udalov 0b6bb38bb3 Move SAM function type calculation to SamConversionResolver 2014-11-11 18:10:42 +03:00
Alexander Udalov 344c6f0b3f Move SAM adapter resolution logic to SamConversionResolver 2014-11-11 18:10:41 +03:00
Alexander Udalov ae78b0e216 Minor, merge two sematically identical functions 2014-11-11 18:10:41 +03:00
Alexander Udalov 4350da5f24 Extract SAM constructor resolution logic to a component 2014-11-11 18:10:40 +03:00
Nikolay Krasko d6ffd22533 More tests for decompiling classes with wrong abi version 2014-11-11 17:40:26 +03:00
Nikolay Krasko 43eb94726c Make single decompiler be responsible for compiled Kotlin files
IDEA caches link between a virtual file and correspondent FileViewProvider.
This breaks navigation to decompiled sources for the library that has been
just updated because of outdated ABI version.

Also IDEA don't allow to change language for decompiled files.

 #KT-6016 Fixed
2014-11-11 17:34:56 +03:00
Nikolay Krasko 5555e28bfb Refactoring: Modify test for incompatible ABI version 2014-11-11 17:33:13 +03:00
Nikolay Krasko c242665cd3 Extract isCompatibleAbiVersion from kinds enum and store read kinds even for incompatible version 2014-11-11 17:33:13 +03:00
Nikolay Krasko 95a2dce627 Remove warning and add tests when this warning had been reproducible 2014-11-11 17:33:12 +03:00
Nikolay Krasko d5bef5e612 Minor: better Kotlin code 2014-11-11 17:33:11 +03:00
Nikolay Krasko d80c98a8ba Minor: formatting 2014-11-11 17:33:10 +03:00
Michael Nedzelsky dd86823480 JS backend: compile some builtins to builtins.js instead of stdlib 2014-11-11 17:09:00 +03:00
Michael Nedzelsky 5f576c4c05 JS backend: test for toGenerator from stdlib 2014-11-11 17:08:56 +03:00
Alexey Sedunov afeb03f383 Create From Usage: Create class by annotation entry/super-call delegation specifier 2014-11-11 14:42:48 +03:00
Alexey Sedunov 1b1eb10979 Create From Usage: Create class by constructor call 2014-11-11 14:42:45 +03:00
Alexey Sedunov b8f68acdbb Create From Usage: Create class by reference expression 2014-11-11 14:42:42 +03:00
Alexey Sedunov 1f14d93412 Create From Usage: Create class by type reference 2014-11-11 14:42:39 +03:00
Alexey Sedunov a76607beca Callable Builder: Support class generation 2014-11-11 14:42:37 +03:00
Alexey Sedunov aaf4283531 JetTypeParameterListOwner: Add getTypeParameterList() and getTypeConstraintList() methods 2014-11-11 14:42:34 +03:00
Alexey Sedunov 7123ca8ea0 Name suggester: Respect type parameter name when suggesting name for
variables based on that type parameter
2014-11-10 21:10:39 +03:00
Alexey Sedunov f81c2d5ff7 Name suggester: Improve name suggestion strategy for type parameters 2014-11-10 21:10:37 +03:00
Alexey Sedunov 7cb77314bc Callable Builder: Allow to forbid substitution for any TypeInfo 2014-11-10 21:10:37 +03:00
Alexey Sedunov 538248cafa Callable Builder: Do not skip unused type parameters 2014-11-10 21:10:35 +03:00