Commit Graph

10138 Commits

Author SHA1 Message Date
Valentin Kipyatkov 9feed9c3ef Fixed filtering of shadowed declarations after changes in extensions treatment 2015-10-30 12:03:50 +03:00
Valentin Kipyatkov be5569d31a Performance optimization in completion: do not analyze all extensions available from imports - use index 2015-10-30 12:03:50 +03:00
Alexander Udalov 4d909d9012 Move LexicalScope to frontend 2015-10-29 21:16:05 +03:00
Denis Zharkov 95d12260c1 Fix project sources after latter changes
ResolveSession is inherited from two interfaces:
1. The one written in Java with 'getModuleDescriptor'
2. And the second one in Kotlin with property 'moduleDescriptor'

Now we treat such declarations from supertypes like they are just plain
property accessor overrides, and 'getModuleDescripton' and it's friends
becomes invisible via ResolveSession
2015-10-29 21:05:51 +03:00
Stanislav Erokhin 98379d64e8 Minor. Workaround for KT-9788 AssertionError from backand when we read field from inline function 2015-10-29 15:30:29 +03:00
Nikolay Krasko 41cbc12d7f Don't propose to make objects abstract (KT-9795)
#KT-9795 Fixed
2015-10-29 14:37:15 +03:00
Nikolay Krasko 8bef335b71 Don't propose to generate Any methods in interface to avoid METHOD_OF_ANY_IMPLEMENTED_IN_INTERFACE error (KT-9796)
#KT-9796 Fixed
2015-10-29 14:37:14 +03:00
Nikolay Krasko 625907e49d Refactoring: move check for Any member into builtins 2015-10-29 14:37:13 +03:00
Alexander Udalov 86bc21da30 Make getUpperBoundsAsType an utility, remove from TypeParameterDescriptor 2015-10-28 19:17:53 +03:00
Alexander Udalov 0302b9504f Minor, inline some other FQ name methods 2015-10-28 19:11:54 +03:00
Alexander Udalov 8a89662ea5 Remove FqNameBase, simplify FqName and FqNameUnsafe 2015-10-28 19:11:53 +03:00
Mikhail Glukhikh 6e3eef2d6f JetTypeInfo renamed to KotlinTypeInfo 2015-10-28 17:36:34 +03:00
Mikhail Glukhikh f8a70302ac Cleanup: get rid of effective visibility warnings 2015-10-28 14:31:51 +03:00
Natalia Ukhorskaya 932542891b Stepping for inline functions: add test for last statement in for 2015-10-28 14:23:52 +03:00
Natalia Ukhorskaya de5c3733e9 Do not use visitor for counting lambda ordinal for debugger 2015-10-28 14:23:52 +03:00
Natalia Ukhorskaya eac6fdbaa0 Fix linenumbers in tests 2015-10-28 14:23:51 +03:00
Natalia Ukhorskaya a8008dfa26 Do not use resove in catPutAt for breakpoints 2015-10-28 14:23:50 +03:00
Natalia Ukhorskaya 67e66f74bc Minor: fix warnings 2015-10-28 14:23:49 +03:00
Natalia Ukhorskaya e534636f03 Support multiple breakpoints at one line (especially for lambdas) 2015-10-28 14:23:49 +03:00
Natalia Ukhorskaya c071bf5c63 Fix lines for FieldBreakpoints in tests 2015-10-28 14:23:48 +03:00
Natalia Ukhorskaya 17a564495d Stepping for inline function: filter out inline function body lines from step over
#KT-9665 Fixed
2015-10-28 14:23:47 +03:00
Natalia Ukhorskaya 66a5351cd0 Do not show fake local variables for inline function/argument in Variables View for Debugger 2015-10-28 14:23:45 +03:00
Natalia Ukhorskaya cdcafb8199 Fix stepping for inline function inside while statement 2015-10-28 14:23:45 +03:00
Natalia Ukhorskaya 258790cc2f Minor: refactor tests 2015-10-28 14:23:44 +03:00
Natalia Ukhorskaya e2411f8e46 Debugger tests: catch exceptions correctly 2015-10-28 14:23:43 +03:00
Natalia Ukhorskaya dd30462fd1 Support smart step into for inline function arguments 2015-10-28 14:23:42 +03:00
Natalia Ukhorskaya c98ebffbcf Debugger: evaluate Ref$element to element value 2015-10-28 14:23:41 +03:00
Natalia Ukhorskaya 77f1a3a7f3 Minor: change test directives 2015-10-28 14:23:40 +03:00
Natalia Ukhorskaya e68700190d Use fake local variable for inline argument in debugger 2015-10-28 14:23:39 +03:00
Natalia Ukhorskaya dfbafc7173 Extract isInlineArgument for debugger 2015-10-28 14:23:39 +03:00
Nikolay Krasko 0fcb51f0a2 KT-1478 Quick fix for using nullable collection in "for in" expression
#KT-1478 Fixed
2015-10-28 13:39:49 +03:00
Nikolay Krasko 911432c99c Use default render to check are all errors mentioned in tests. It's far more easier to read. 2015-10-28 13:39:46 +03:00
Nikolay Krasko b8c72ec4e9 Suggest to add !! as a quick-fix for type mistmach 2015-10-28 13:39:44 +03:00
Michael Nedzelsky 190bab099c fix KT-9441 Unable to Access Internal Classes from Test Code within Same Module
#KT-9441 Fixed
2015-10-28 01:58:54 +03:00
Zalim Bashorov a5708c9c0d Track lookups in JavaSyntheticPropertiesScope 2015-10-27 19:38:32 +03:00
Pavel V. Talanov 289b1a5883 LibraryModificationTracker: check whether project is already disposed 2015-10-27 18:51:50 +03:00
Valentin Kipyatkov 91ff27f78c Rename 2015-10-27 18:24:56 +03:00
Valentin Kipyatkov 59fa639ab4 Refactored ReferenceVariantsHelper to not require KtSimpleNameExpression 2015-10-27 18:24:55 +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 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
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 b5dfbcdde8 Repl, minor: extract function 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
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