Ilya Gorbunov
551e0181dc
Require explicit type parameter specification for filterIsInstance.
2015-10-27 21:47:50 +03:00
Zalim Bashorov
a5708c9c0d
Track lookups in JavaSyntheticPropertiesScope
2015-10-27 19:38:32 +03:00
Zalim Bashorov
412e078a6b
Allow to fail on initial build in incremental tests if testdata contains "init-build.log" file
2015-10-27 19:37:10 +03:00
Zalim Bashorov
cc3c76ae67
Add the support checking lookups after modifications
2015-10-27 19:37:09 +03:00
Zalim Bashorov
2d859d6191
Minor: print "<root>" for root package instead empty string in Lookup tests.
...
Additionally fixed warnings.
2015-10-27 19:37:09 +03:00
Pavel V. Talanov
289b1a5883
LibraryModificationTracker: check whether project is already disposed
2015-10-27 18:51:50 +03:00
Mikhail Glukhikh
55c1addb93
Workaround for a part of KT-9700: top-level Java classes with private visibility are considered package private
2015-10-27 18:27:41 +03:00
Valentin Kipyatkov
78f0de3de5
Removed hack for Repl
2015-10-27 18:24:56 +03:00
Valentin Kipyatkov
91ff27f78c
Rename
2015-10-27 18:24:56 +03:00
Valentin Kipyatkov
79825fc1e6
More efficient LexicalScope.addImportScopes
2015-10-27 18:24:56 +03:00
Valentin Kipyatkov
55c2b71829
Removed asLexicalScope from ScopeUtils.kt
2015-10-27 18:24:55 +03:00
Valentin Kipyatkov
74d14d30b0
No use of "by ..Scope.Empty"
2015-10-27 18:24:55 +03:00
Valentin Kipyatkov
3aa2a60dc1
Repl injects scope via own FileScopeProvider implementation instead of AdditionalScopes
2015-10-27 18:24:55 +03:00
Valentin Kipyatkov
47f938d7fc
Minor
2015-10-27 18:24:55 +03:00
Valentin Kipyatkov
67a0cc3c49
Dropped searching synthetic extensions in imports
2015-10-27 18:24:55 +03:00
Valentin Kipyatkov
59fa639ab4
Refactored ReferenceVariantsHelper to not require KtSimpleNameExpression
2015-10-27 18:24:55 +03:00
Pavel V. Talanov
dc791941d7
JvmAnalyzerFacade: Do not fail when java resolve api behaves in an unexpected way
...
Fixes a problem when java type from a library can be resolved to a class in source root
2015-10-27 18:07:17 +03:00
Pavel V. Talanov
4c70700943
Introduce api to get nullable ResolverForModule by ModuleInfo
2015-10-27 18:07:16 +03:00
Stanislav Erokhin
ff00bde607
Removed dispatch receiver parameter for SyntheticFieldDescriptor
2015-10-27 15:36:38 +03:00
Stanislav Erokhin
553834fa9e
KT-9371 Callable reference resolve should not prefer one of the overloads by some magic reasons
...
#KT-9371 Fixed
2015-10-27 15:36:37 +03:00
Valentin Kipyatkov
891e033d5b
KT-9664 Add quickfix to convert a piece of code to pretty look SAM-style
...
#KT-9664 Fixed
2015-10-27 15:07:59 +03:00
Dmitry Petrov
ad030a2c03
KT-9721:
...
- Scripts should be included in files with callables.
2015-10-27 15:06:32 +03:00
Michael Bogdanov
b0efcec392
Fix for KT-9711: Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
...
#KT-9711 Fixed
2015-10-27 13:22:07 +03:00
Dmitry Petrov
882827bf04
KT-9717, KT-9603:
...
pass getter/setter-related flags to AccessorForPropertyDescriptor
2015-10-27 12:02:27 +03:00
Natalia Ukhorskaya
e83315f5bc
Gradle plugin: do not store generated folder for android into sourceSets, because they are reused for different buildTypes and flavors
...
#KT-8202 Fixed #KT-9715 Fixed
2015-10-27 11:41:24 +03:00
Yan Zhulanow
10eed8f7cd
Fix incremental test (DefaultImpls are not generated for an empty interface)
2015-10-27 02:46:57 +03:00
Michael Nedzelsky
63f84fc60e
fix KT-9733 No error shown for 2 "main" functions in the same file
...
#KT-9733 Fixed
2015-10-26 21:30:24 +03:00
Dmitry Jemerov
31bff24c55
fix senseless action visibility checks
2015-10-26 19:27:01 +01:00
Pavel V. Talanov
55006872a1
LibraryModificationTracker
...
Do not track external annotations
Make use of BulkFileListener to avoid processing extra files
Defer library classes check for newly created files: fixes a problem of indices not being updated at the time
Correctly check if the file is a jar file root of a library
Ther latter 2 changes fix a problem where resolve caches were not recomputed in case of deleting and readding jar files of a library
2015-10-26 21:14:44 +03:00
Alexander Udalov
b8b98b4eaa
Support get/set on KProperty objects for delegated properties
2015-10-26 21:02:35 +03:00
Alexander Udalov
f2a37b4150
Minor, move KProperty for property references to separate file
2015-10-26 21:02:35 +03:00
Alexander Udalov
a97567ea0c
Optimize KProperty objects for delegated properties
...
Don't generate anonymous classes with a lot of methods because this hurts
Android. Add special classes to the runtime instead (also add
FunctionReferenceImpl, to be used later) and just create their instances in the
static initializer of each class
2015-10-26 21:02:34 +03:00
Yan Zhulanow
2d1a7163a3
Minor: changes on review
2015-10-26 20:38:41 +03:00
Yan Zhulanow
3475b4796f
Do not generate DefaultImpls if empty
2015-10-26 20:37:31 +03:00
Yan Zhulanow
2a28baa154
Remove ACC_STATIC from DefaultImpls
2015-10-26 20:37:29 +03:00
Pavel V. Talanov
bf6464ddcd
Repl: clearer separation of ide and console logic
...
Fix a bug with redundant new lines printed in console mode
2015-10-26 20:17:45 +03:00
Pavel V. Talanov
d0097c85d3
Repl: enhance test framework to wait for commands to be processed, not some text to appear
2015-10-26 20:17:45 +03:00
Pavel V. Talanov
03c3fd2c2b
Repl: correctly handle readLine()
2015-10-26 20:17:44 +03:00
Pavel V. Talanov
6237e516d4
Repl: fix a problem where handling an incomplete message led to xml parsing exception
2015-10-26 20:17:43 +03:00
Pavel V. Talanov
e20bcbde53
Repl: keep track of command entries which were already processed
...
Fixes race condition
2015-10-26 20:17:43 +03:00
Pavel V. Talanov
0fe3ef7cf4
Repl: refactor ide code
...
More accurate class names
Move all shared state to KotlinConsoleRunner class
2015-10-26 20:17:42 +03:00
Pavel V. Talanov
e10df1a05d
Repl: notify about successfully executing lines
2015-10-26 20:17:41 +03:00
Pavel V. Talanov
b5dfbcdde8
Repl, minor: extract function
2015-10-26 20:17:40 +03:00
Pavel V. Talanov
b07fb88a22
Repl, minor: more meaningful method names
2015-10-26 20:17:40 +03:00
Pavel V. Talanov
e08ce5545e
Repl test: increase waiting time
...
Hoping to prevent failing on slow teamcity agents
2015-10-26 20:17:39 +03:00
Alexander Udalov
d021821db5
Minor, add constructors with messages and causes to KotlinReflectionNotSupportedError
2015-10-26 19:40:04 +03:00
Dmitry Petrov
09f0b3fe87
KT-9721:
...
- Kotlin/JS still uses package facades.
Handle them properly in StubClassBuilder parentStack.
- Generate backend-related diagnostics in IDE
using light class generation for file facades.
- Drop PackageFacadeStubCache.
2015-10-26 19:37:52 +03:00
Valentin Kipyatkov
4fcd35a5a9
Introduced LexicalScope for file top-level to obtain ownerDescriptor
2015-10-26 19:30:05 +03:00
Valentin Kipyatkov
7a33a16481
Removed one more usage of asKtScope()
2015-10-26 19:30:05 +03:00
Valentin Kipyatkov
c239e84aa0
Removed hack for package directive completion
2015-10-26 19:30:05 +03:00