Commit Graph

471 Commits

Author SHA1 Message Date
Valentin Kipyatkov 8ab12e217d KT-7267 Arguments are replaced by tab when old call was qualified
#KT-7267 Fixed
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov 2c1a0a0c4b Smart completion: expected type instantiation made higher priority than static members 2015-04-04 22:15:45 +03:00
Valentin Kipyatkov e2979614ad KT-7259 Space inserted before parenthesis in completion of call
#KT-7259 Fixed
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov 4e283fd62f Added a test 2015-04-02 10:17:01 +03:00
Valentin Kipyatkov 784b4a8aeb Minor code changes after code review 2015-04-02 10:17:00 +03:00
Valentin Kipyatkov b45b462bdf Not imported extension functions are always listed in code completion 2015-04-02 10:17:00 +03:00
Valentin Kipyatkov 0243280668 Extension callables index is built correctly when using alias imports 2015-04-02 10:09:26 +03:00
Valentin Kipyatkov 5ba5618718 Extension callables index and its use in completion 2015-04-02 10:09:25 +03:00
Valentin Kipyatkov 36fb14a3fc KT-6923 Completion shouldn't show private symbols from compiled code
#KT-6923 Fixed
2015-04-01 17:46:10 +03:00
Valentin Kipyatkov 3b110f8ef8 KT-7194 No completion for member extension function inside itself
#KT-7194 Fixed
2015-04-01 17:46:10 +03:00
Denis Zharkov 418034add3 Prohibit instance access before super call
- Before this change members just left unresolved as they were absent in the
  specific scope named scopeForSecondaryConstructorHeaderResolution that
  created just to prohibit such accesses.
- Now they are resolved the same way as other members, but diagnostic is
  repored by in-place injected CallChecker
- Drop obsolete type of class scope

 #KT-6995 Fixed
2015-03-27 20:15:00 +03:00
Mikhail Glukhikh 2bc124fa3d IO second review: empty File.subPath() allowed, OutputStream.bufferedWriter() added,
normalize(), startsWith(), endsWith() rewritten, LinesStream --> LinesSequence,
File.replaceBytes() / replaceText() rolled back to writeBytes() / writeText(),
some exception messages formulated more clearly, refactorings, comments,
relativeTo() slightly optimized, additional tests
2015-03-24 19:52:19 +03:00
Pavel V. Talanov 06916d98c6 default -> companion: replace all mentions of default and default object 2015-03-17 15:47:39 +03:00
Stanislav Erokhin 639003b8a8 Allowed function parameter without type declaration in the parser 2015-03-12 17:11:52 +03:00
Stanislav Erokhin 983e1bc932 Added function as expression support to parser 2015-03-12 17:11:44 +03:00
Denis Zharkov 9be45af267 Complete this/super before delegation call 2015-03-11 17:45:26 +03:00
Denis Zharkov 50c8c6f68b Basic completion within secondary constructors
body and delegation call
2015-03-11 17:45:26 +03:00
Denis Zharkov 3ba94d7352 Parsing: secondary constructors 2015-03-11 17:45:22 +03:00
Natalia Ukhorskaya c4f7bf6815 Add test for inserting imports in JetCodeFragment after completion 2015-03-10 15:27:36 +03:00
Valentin Kipyatkov 3e85b97e1a Completion after $ in string literal works correctly for classes and objects 2015-03-06 22:04:17 +03:00
Valentin Kipyatkov de7b4dc681 Surround with braces when completing backing field in string template 2015-03-06 22:04:17 +03:00
Valentin Kipyatkov 620fb8683b KT-6191 Support completion for backing field
#KT-6191 Fixed
2015-03-06 22:04:17 +03:00
Valentin Kipyatkov 2ef80d1b34 Completion after "this@" includes immediate this too
#KT-6836 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov ffff6226b0 KT-6608 Code completion does not work after $ in string literals
KT-5070 Add braces when complete function in string templates

 #KT-6608 Fixed
 #KT-5070 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov 234555bb33 Fixed KT-6890 No autocomplete for receiver methods and properties in extension property
#KT-6890 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov c5d21e1f45 Fixed KT-6673 Completion: no properties from outside class inside anonymous object
#KT-6673 Fixed
2015-03-06 22:04:15 +03:00
Valentin Kipyatkov 5e66727ff6 Checked that KT-6623 has been fixed 2015-03-06 22:04:15 +03:00
Valentin Kipyatkov 114bfbb2ad Fixed bug with wrong completion in class declaration 2015-03-06 22:04:15 +03:00
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Pavel V. Talanov 97989d174e Update keyword completion test data
after introducing 'default' soft keyword
2015-03-06 12:43:29 +03:00
Pavel V. Talanov 4370b50841 Minor: change rendering of class objects' types in completion 2015-03-03 13:04:32 +03:00
Pavel V. Talanov cbf9208c1d Minor: change rendering of class objects in source code renderers
Fixes one particular case in completion
2015-03-03 13:04:32 +03:00
Pavel V. Talanov ffabe19229 Prohibit accessing nested classes/objects of class object using class literal
The fqname of class should be clear from code
Example: can't shorten A.Default.B.Default.C to A.B.C
Also fixes problem when nested class of enum class could be accessed via enum entry
2015-03-03 13:04:29 +03:00
Pavel V. Talanov cceb5738c8 Can't omit default object name in imports and types
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
2015-03-03 13:04:28 +03:00
Pavel V. Talanov 2053da91dd Fix EXPRESSION_TYPE target for QualifierReceiver
Affected completion from objects in some cases
2015-02-20 14:47:36 +03:00
Valentin Kipyatkov 0a363fc371 Import is placed in some specific order on adding 2015-02-19 11:07:02 +03:00
Pavel V. Talanov ed5e2a21d1 Restore some of the tests for deprecated OBJECT$ field 2015-02-16 15:38:45 +03:00
Pavel V. Talanov d689c11848 Update test for class object completion 2015-02-16 15:38:39 +03:00
Pavel V. Talanov 1972c2f177 Update test data for various tests
Due to slight semantic changes after class object refactor
2015-02-16 15:38:37 +03:00
Pavel V. Talanov a1f4c06a49 Update test data that mentioned old JvmAbi constants 2015-02-16 15:38:34 +03:00
Valentin Kipyatkov b03b96f202 Fixed optimization in IterableTypesDetector which did not work from the beginning + make it work on FuzzyType 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov 3c573d555a Smart completion: heuristic parameter types for some methods like Collection.contains() 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov 6d06436c34 KT-6376 Smart completion should work after "in" and "!in"
#KT-6376 Fixed
2015-02-10 16:13:50 +03:00
Valentin Kipyatkov eae244c308 Grouped test data for smart completion by folders 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov a32029f1fc Smart completion for for loop range to use loop variable type if defined 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov f057445f6e KT-5035 Smart completion should work after "in" keyword in for loop
#KT-5035 Fixed
2015-02-10 16:13:50 +03:00
Valentin Kipyatkov 033b626a08 Fixed test data 2015-02-09 13:02:04 +03:00
Dmitry Jemerov 49cecc35fd completion in kdoc 2015-02-05 18:30:02 +01:00
Valentin Kipyatkov eed0def1cb Completion auto-popup works at the start of function literal 2015-01-14 20:57:28 +03:00
Valentin Kipyatkov 9e526fca58 Completion for "file" keyword in annotations 2015-01-14 20:57:28 +03:00