Commit Graph

766 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 1c8ca38380 Added tests for interface and singleton. 2012-02-13 21:41:24 +04:00
Evgeny Gerashchenko c895f502f9 Added test for closure template. 2012-02-13 21:38:33 +04:00
Evgeny Gerashchenko 1bd56b7121 Added tests for exfun/exval/exvar. 2012-02-13 21:35:34 +04:00
Evgeny Gerashchenko bb06bcab6c Added tests for fun0, fun1, fun2. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko db8fa0dd0a Added test for soutp. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko 1060e44137 Added test for soutv. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko 98db9c741f Added test for main. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko 5e408f13f5 Added test four sout/serr. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko 404921eb37 Test file names to lower case. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko 53e643ca33 Added checking of result in LiveTemplatesTest. 2012-02-13 21:35:33 +04:00
Evgeny Gerashchenko 2af5c81736 Added simple live template test for iter live template. 2012-02-13 20:28:03 +04:00
Nikolay Krasko be5eeb2546 KT-985 Don't show the default package in the completion list 2012-02-13 20:03:29 +04:00
Evgeny Gerashchenko 8b9403ac0f Reverted my commits to restore build. 2012-02-13 19:53:03 +04:00
Evgeny Gerashchenko 07ab67f289 Added simple live template test for iter live template. 2012-02-13 18:39:26 +04:00
Nikolay Krasko 4dff90734e KT-1231 Don't insert () after completion function in imports 2012-02-13 16:23:40 +04:00
Stepan Koltsov 4b94eb5e2b rewrite owner when copying FunctionDescriptor from supertype scope
that fixes invocation:

>>> StringBuilder.length()

that was compiled to

>>> invokevirtual CharSequence.length()

and now compiles to

>>> invokevirtual StringBuilder.length()

Essentially patch rewrites FunctionDescriptor.containingDeclaration
when FunctionDescriptor is copied to subclass scope.

FunctionDescriptor now has kind field that can be
* DECLARATION (for "real" function, maybe abstract)
* DELEGATION
* FAKE_OVERRIDE (created for functions from supertypes)

All tests pass although some parts of code are buggy and ugly.

Random comments about this patch:

* FunctionDescriptor.overrides point to function descriptors of supertype scopes

* Filling of memberScope with supertypes is moved to OverrideResolver

* ExpressionCodegen.intermediateValueForProperty must be rewritten

* Patch adds not nice REDECLARATION reports (see compiler/testData/diagnostics/tests/*).
  Will be fixed later.
2012-02-10 20:36:40 +04:00
Nikolay Krasko 41455a56c5 - KT-1227 Can't see basic types in class completion
- Remove duplicated test
2012-02-10 18:42:23 +04:00
Nikolay Krasko 21394c8486 - KT-1232 Do not place import with default imports in scope after completion
- Don't activate not-in-scope completion on typing by default
2012-02-10 16:27:05 +04:00
Nikolay Krasko cdac293a8d - Fix typing enter after import
- Prepared tests for KT-1161 (disabled)
2012-02-09 18:11:40 +04:00
Nikolay Krasko 8eb9649e7f KT-1158 Formatter: indent fluent api calls 2012-02-09 18:07:55 +04:00
Evgeny Gerashchenko f671e78dce Fixed keyword completion tests. 2012-02-08 18:59:26 +04:00
Alefas 6fe52d15b4 Few fixes to Introduce Variable (no new features added)
Added few tests to Introduce Variable
More strict requirements for expressions to introduce it.
2012-02-08 17:07:38 +04:00
Nikolay Krasko 01e71cbd59 Don't add import if there's general import with .* exist 2012-02-08 15:27:41 +04:00
Nikolay Krasko e8ffaa28f3 Don't add import after insertion function with fqn 2012-02-08 12:53:56 +04:00
Nikolay Krasko d1409116f3 - KT-1147 Can't see local variable in completion
- Disable class level keywords from method parameters list
- Reorganize completion tests to separate methods
2012-02-07 20:06:29 +04:00
Alefas 1d88960a19 Name suggester + tests.
Fixed commented introduce variable tests.
2012-02-07 18:22:38 +04:00
Nikolay Krasko ddbd86cdf5 KT-1051 Java interoperability completion - enum tests and test for auto import directive auto insert 2012-02-07 14:05:08 +04:00
Nikolay Krasko aa9b2db300 KT-1051 Java interoperability completion - more tests 2012-02-07 13:32:46 +04:00
Alefas b0046348aa Parameter info popup after completion insertion.
Do not add '(' if it's already exist in completion (+Tests).
2012-02-07 12:43:27 +04:00
Nikolay Krasko ce6850ae4d KT-1051 Java interoperability completion - fix java subpackages 2012-02-06 20:25:02 +04:00
Nikolay Krasko afd8f380c9 Insert import on applying top level function completion 2012-02-06 15:47:34 +04:00
Nikolay Krasko bd1bb1f0bd - Tests for KT-1051, KT-1151 and KT-1100
- Icon for java fake class
2012-02-03 16:05:30 +04:00
svtk 6251b413a2 New check rules for inc, plus & plusAssign
KT-1176 arrayList[0]++. Setter is stored for array access expression when it's needed
2012-02-03 12:10:12 +04:00
Nikolay Krasko 9531415aae KT-1051 Java interoperability completion - tests 2012-02-02 21:06:59 +04:00
Nikolay Krasko 2478582670 Simple handler with insertion imports for classes names completion 2012-02-02 16:46:43 +04:00
Alefas c8b4e5ec74 Introduce Variable feature (in pre-alpha quality).
Problems:
1. Still problems with containers, due to new for me JetContainerNode.
2. Needs name suggester
3. Needs name validator
4. Needs type annotation adding
5. Needs changing to var and checking write access of usages
6. Needs final modifier adding
7. Some problems on class and file level. Should be fixed. Problems with inplace rename on this positions. Additionally possibly should be added proper work with expressions on class body level and namespace/file level. It parsed as error now.
8. Needs much more tests than just 6.
2012-02-01 19:42:06 +04:00
Nikolay Krasko 2826db7d9a KT-1103 Public outer function from different package and source file is not visible in completion:
- Stubs elements are enabled
- Changed method for selecting indexing policy for plugin and compiler
- Quick fix for import unresolved top-level function added
2012-01-31 14:10:08 +04:00
Andrey Breslav 1b88be725a Nullability fixed in a test 2012-01-31 11:37:01 +04:00
svtk 11ad28812d KT-1175 Mark unused literals 2012-01-27 18:32:55 +04:00
Nikolay Krasko 79d5c2e3ed Remove "ref" and "default" keywords from completion. Start using tokens for getting keyword completion constants. 2012-01-25 17:33:30 +04:00
Nikolay Krasko e5f4377ee4 - KT-1068 Formatter: no indent after for
- KT-1098  After entering "if (lock == null)" and pressing enter indent is wrong
- Move tests for formatter
2012-01-25 15:03:46 +04:00
Andrey Breslav 90b98a63b5 KT-1130 Remove ref from keywords 2012-01-25 13:12:42 +04:00
Alefas d3a0b70acd Fixed completion of functions with implicit receiver. 2012-01-24 20:52:44 +04:00
Alefas 9246cd5b81 Fixed parameter info issues: 1. Constructors. 2. Green background. 3. Default parameters text is better for literals now. 4. Added few tests. 2012-01-24 20:52:06 +04:00
svtk 428681f1d3 'add primary constructor fix' changed to 'change to invocation fix' (for delegators to super class) 2012-01-24 16:58:29 +04:00
svtk 70d0cd882b KT-650 Prohibit creating class without constructor 2012-01-24 16:58:29 +04:00
Nikolay Krasko 5613cb90f9 KT-1036 JetFile -> PsiJavaFile cast problem 2012-01-24 15:00:07 +04:00
svtk b3eb44e769 removed some string methods from library.jet 2012-01-20 19:32:12 +04:00
svtk 7fae503a38 KT-1080 Don't use previously imported packages while resolving import references 2012-01-20 11:58:17 +04:00
Nikolay Krasko 021fb14c77 KT-1065 No completion between function name and call brackets 2012-01-19 17:13:37 +04:00