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
Valentin Kipyatkov
a5982281af
Temporary fix for problem with ownerDescriptor in ImportingScope
2015-10-26 19:30:05 +03:00
Valentin Kipyatkov
03f18e1ac1
Extraction refactorings tests: do not generate conflict files in case of any exception from code
2015-10-26 19:30:05 +03:00
Valentin Kipyatkov
c44dc41431
Fixed getting ownerDescriptor from ImportingScope
2015-10-26 19:30:04 +03:00
Valentin Kipyatkov
95a0372b43
Using PsiElement.getResolutionScope instead of LEXICAL_SCOPE from BindingContext
2015-10-26 19:30:04 +03:00
Valentin Kipyatkov
6af71caaa9
Moved PsiElement.getResolutionScope utliity into ide-common
2015-10-26 19:30:04 +03:00
Valentin Kipyatkov
a6165f4690
Got rid of two getContributedDescriptors calling each other
2015-10-26 19:30:04 +03:00
Valentin Kipyatkov
ed6f845377
Added utility functions for synthetic extensions in scope
2015-10-26 19:30:04 +03:00
Valentin Kipyatkov
c09cf63424
Added utility functions for functions and variables in scope
2015-10-26 19:30:03 +03:00
Valentin Kipyatkov
5f06f53bfd
Renames
2015-10-26 19:30:03 +03:00
Valentin Kipyatkov
e1b8b21abb
Minor
2015-10-26 19:30:03 +03:00
Valentin Kipyatkov
6b85bf24a0
One usage of asLexicalScope removed
2015-10-26 19:30:03 +03:00
Valentin Kipyatkov
b4dbb666fc
More usages of asKtScope() removed
2015-10-26 19:30:03 +03:00
Valentin Kipyatkov
9a99559b12
No getFileKtScope
2015-10-26 19:30:02 +03:00
Valentin Kipyatkov
2ddaa15036
Removed more usages of asKtScope()
2015-10-26 19:30:02 +03:00
Valentin Kipyatkov
2b325327f4
Dropped one usage of asKtScope()
2015-10-26 19:30:02 +03:00
Valentin Kipyatkov
0b34fecf94
Fixed test data but template macro "kotlinSuggestVariableName()" must be completely rewritten
2015-10-26 19:30:02 +03:00
Valentin Kipyatkov
470e9ba776
Fixed
2015-10-26 19:30:01 +03:00
Valentin Kipyatkov
6ca6718271
Dropped BindingContext.RESOLUTION_SCOPE
2015-10-26 19:30:01 +03:00
Valentin Kipyatkov
44415cf321
Less use of RESOLUTUON_SCOPE from BindingContext
2015-10-26 19:30:01 +03:00
Valentin Kipyatkov
961ffee8ee
Converted to Kotlin
2015-10-26 19:30:01 +03:00
Valentin Kipyatkov
3eb1cff36a
Less use of KtScope
2015-10-26 19:30:00 +03:00
Valentin Kipyatkov
c93de93332
FileScopeProvider.AdditionalScopes return ImportingScope's
2015-10-26 19:30:00 +03:00
Valentin Kipyatkov
99aeb305db
Less conversion between KtScope and ImportingScope
2015-10-26 19:30:00 +03:00
Valentin Kipyatkov
3471667aa0
Minor refactoring
2015-10-26 19:30:00 +03:00
Valentin Kipyatkov
6252fb04c4
Fixing replaceFileScope and other stuff
2015-10-26 19:29:59 +03:00