Commit Graph

1212 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 8b9403ac0f Reverted my commits to restore build. 2012-02-13 19:53:03 +04:00
Evgeny Gerashchenko 30fc19ad82 ForTestCompileStdlib now is invoked in separate process to avoid substituting JarFileSystem and other global components with other incompatible components. 2012-02-13 18:38:41 +04:00
Alex Tkachman 845e873296 KT-1159 test for obsolete issue 2012-02-13 09:54:12 +02:00
Alex Tkachman ace34b01bc KT-1202 object construction fix 2012-02-13 08:34:10 +02:00
Alex Tkachman 84ed18c7e2 KT-1149 static type info field for unarameterized traits 2012-02-12 09:04:18 +02:00
Alex Tkachman 9f4ef7fb6a KT-1186 test added 2012-02-11 13:04:26 +02:00
Alex Tkachman a2b602a440 KT-694 - support for simple enums 2012-02-11 13:00:28 +02:00
Alex Tkachman d81ca43b6e KT-1047 - obsolete. test added 2012-02-11 11:48:50 +02:00
Alex Tkachman 8d9434548f KT-1199 - test and fix for erased case 2012-02-11 11:09:02 +02:00
Stepan Koltsov 4ec59edb9e rename NamedFunctionDescriptorErrorImpl -> ErrorNamedFunctionDescriptorImpl 2012-02-10 20:40:47 +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 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 f1a2866f0c KT-1223 Code completion for imported from jars extension functions - don't mute ProcessCanceledException in hack 2012-02-10 14:10:52 +04:00
Evgeny Gerashchenko b6fe7fe85f Added compiler diagnostic for unresolved IDE templates. 2012-02-10 12:38:46 +04:00
Stepan Koltsov 9b6e051dc1 split SuperGenTest.enclosed 2012-02-09 23:40:51 +04:00
Alex Tkachman 8e6e8e938c def args in constructors 2012-02-09 20:36:09 +02:00
Stepan Koltsov 5c8fb3febf split FunctionGenTest.defaultArgs 2012-02-09 22:25:19 +04:00
Stepan Koltsov 6a8f2e14fb another case in JetDiagnosticsTest
simple unclassified case not covered by other tests
2012-02-09 22:25:11 +04:00
Evgeny Gerashchenko 47764add22 Changed completion for 'iter' live template, now check is the same as used in checking real for loops. 2012-02-09 21:56:28 +04:00
Evgeny Gerashchenko 447114f063 Added utility method to check if variable is iterable. 2012-02-09 21:56:28 +04:00
Nikolay Krasko 3c1758c041 Very temp commit for getting top level function descriptions from java package 2012-02-09 21:05:03 +04:00
Stepan Koltsov bb0cf4f92f JetDiagnosticsTest: diamond with generics 2012-02-09 19:04:17 +04:00
Stepan Koltsov 7ad452109f split SuperGenTest.basicmethod 2012-02-09 18:39:10 +04:00
Maxim Shafirov 8cfc443c93 KT-1220 2012-02-09 18:37:15 +04:00
Stepan Koltsov 30a74d77b5 specify return type of Tuple* property getters 2012-02-09 17:39:23 +04:00
Stepan Koltsov 02eb0201ea do not compile stdlib more then once for tests
if stdlib compilation fails then next test starts compilation again,
so all tests execute too long
2012-02-09 17:12:35 +04:00
Stepan Koltsov d69739a3d2 temp hack against KT-1214 2012-02-09 16:34:30 +04:00
Stepan Koltsov df3abbfbb6 diagnostics in CompileEnvironment 2012-02-09 16:34:26 +04:00
Andrey Breslav b7f5490b4c Fix value parameter indeices for function literals with receivers 2012-02-09 16:00:44 +04:00
svtk 255e37efb9 KT-799 Allow 'return' expressions in conditionals assigned to variables 2012-02-09 12:58:17 +04:00
Evgeny Gerashchenko cf5f419549 Added parser test for ide templates. 2012-02-08 21:12:42 +04:00
Evgeny Gerashchenko 3c14b1decd Added custom psi type for ide templates. 2012-02-08 21:12:42 +04:00
Evgeny Gerashchenko 7bbc121f72 Fixed parser test. 2012-02-08 16:13:25 +04:00
Evgeny Gerashchenko bc9f67b6e2 Made parser aware of object literals in statement position (they were parsed as object declarations) 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 55caf9d30a Added recovery in JetParsing.parseMemberDeclaration() 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 7010f3bd8e Added template for 'when' expression and entry. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko ce48e39d40 Added template for 'for' loop. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 679862778c Added templates for named object. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko e4953f60fb Added templates for class and trait. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 8d79ea4a2f Added templates for val and var. Removed corresponding keywords from completion. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko ecdcfdb45a Made parser aware of templates in parameters, return type positions for all functions; of name, receiver positions for extension functions. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 7880ff4b61 Made parser aware of templates in function name position. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 29c465641b Added parsing of <#<template>#> blocks. 2012-02-08 15:58:06 +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
Stepan Koltsov 5f8a71eb21 validate type parameter indices in FunctionDescriptorImpl.initialize
TODO validate value parameter indices
2012-02-08 03:25:46 +04:00
Stepan Koltsov 0c821f947d split diagnostics/Override.jet test 2012-02-08 00:55:43 +04:00
Stepan Koltsov 11906ffd21 fix PropertyDescriptor.copy
it fails in certain situation, breaks test added in following commit
2012-02-08 00:55:37 +04:00
Stepan Koltsov ab455b92c3 assert class supertype is class 2012-02-07 23:21:58 +04:00
Alex Tkachman bb3ca16203 Speeding up codegen tests 2012-02-07 19:10:47 +02:00