Commit Graph

2429 Commits

Author SHA1 Message Date
Alexander Udalov 650cc4ce40 delete get/setResultingDataFlowInfo 2012-06-15 17:06:49 +04:00
Alexander Udalov d377a7c070 change dataFlowInfo after do-while loop 2012-06-15 17:06:47 +04:00
Alexander Udalov b97d44c480 change dataFlowInfo after while loop 2012-06-15 17:06:46 +04:00
Alexander Udalov f5bb00240a change dataFlowInfo after if-then-else construction 2012-06-15 17:06:44 +04:00
Alexander Udalov efe70955dd dataFlowInfoTraversal tests 2012-06-15 17:06:41 +04:00
Alexander Udalov c3420e864e get resulting DataFlowInfo from JetTypeInfo instead of facade 2012-06-15 16:05:45 +04:00
Alexander Udalov 3e79d3c834 getType -> getTypeInfo 2012-06-15 16:05:43 +04:00
Alexander Udalov 38e7dde8f6 visitor methods return JetTypeInfo instead of JetType 2012-06-15 16:05:42 +04:00
Stepan Koltsov f074d493c8 work around broken kdoc test 2012-06-14 22:44:44 +04:00
Stepan Koltsov 839413930b better than NPE 2012-06-14 19:38:03 +04:00
Stepan Koltsov 85737609b2 missing file 2012-06-14 18:49:31 +04:00
Stepan Koltsov 1652d1c009 clean context to analyze next file
so REPL can be reused after error

this patch adds one more ugly hack to REPL
2012-06-14 18:30:49 +04:00
Stepan Koltsov 1c306eefd8 test for repl evaluation exception 2012-06-14 18:30:49 +04:00
Stepan Koltsov 970c2ae1f9 do not exit repl if something went wrong 2012-06-14 18:30:49 +04:00
Stepan Koltsov e0c389b239 error visitor 2012-06-14 18:30:48 +04:00
Natalia.Ukhorskaya 3e777da3ba Fix line separators in tests for windows 2012-06-14 17:39:42 +04:00
Natalia.Ukhorskaya 4826723c78 Add check for syntactic errors when analyzing files with error checking 2012-06-14 17:38:42 +04:00
Stepan Koltsov b279ce7f9e Revert "poor man Nothing"
This reverts commit e113294185.
2012-06-14 17:27:40 +04:00
Stepan Koltsov a46bd18103 normalize strings in CliTest to fix test on windows 2012-06-14 16:33:44 +04:00
Stepan Koltsov 8c4ca5022d code conventions 2012-06-14 16:33:43 +04:00
Svetlana Isakova bf05e8dd79 no error for elements with ide templates 2012-06-14 16:06:57 +04:00
Svetlana Isakova 8b1c76992f KT-2142 function local classes do not work
#KT-2142 fixed
except KT-2277 Check overloads for local declarations
2012-06-14 16:06:57 +04:00
Stepan Koltsov d0cd37528a move some cli tests from CompilerSmokeTest to CliTest 2012-06-14 16:05:16 +04:00
Stepan Koltsov e113294185 poor man Nothing 2012-06-14 16:05:16 +04:00
Stepan Koltsov 40fe33045d cli test template 2012-06-14 15:29:17 +04:00
Stepan Koltsov 4e99edccaa TmpdirRule
junit4 @Rule to create tmp dir from idea SDK
2012-06-14 15:29:16 +04:00
Stepan Koltsov 9db8a63099 rename test cli.jvm.compiler to jvm.compiler
Tests has nothing to do with CLI

TODO: move codegen tests
2012-06-14 14:54:00 +04:00
Stepan Koltsov 13431c0f35 move TestCaseWithTmpdir* into test subpackage 2012-06-14 14:54:00 +04:00
Stepan Koltsov 1d0ef01eea REPL overload resolution ambiguity
Fix overload resolution ambiguity in REPL. Note, resolution for
functions declared in script is very different from regular programs:
in scripts function declared later wins. See
functionOverloadResolutionAnyBeatsString for example.

#KT-2272 Fixed
2012-06-14 14:06:17 +04:00
Stepan Koltsov 441e975323 fix order of parameters in assert in ReplInterpreterTest 2012-06-14 14:06:17 +04:00
Andrey Breslav a7aff72a4d Enum test case extracted: testMethod added 2012-06-14 13:01:33 +04:00
Andrey Breslav bdae2021b5 Enum test case extracted 2012-06-14 12:36:12 +04:00
Stepan Koltsov 87871d0f91 repl: do not print null is last expression type is unit 2012-06-13 22:43:11 +04:00
Stepan Koltsov 55ffd797a4 test imports work in the following lines of REPL 2012-06-13 22:32:36 +04:00
Stepan Koltsov 6384ee9393 test imports in scripts 2012-06-13 22:32:36 +04:00
Stepan Koltsov 4d06660243 parse imports in scripts 2012-06-13 22:32:36 +04:00
Stepan Koltsov 5f3daa08ff fix compilation 2012-06-13 21:13:34 +04:00
Stepan Koltsov 1ca80f74fd better DeclarationDescriptorVisitor
* it is interface
* no methods for abstract classes
* DescriptorRenderer now uses it do not forget about anything
2012-06-13 21:11:08 +04:00
Stepan Koltsov a9d82880e0 remove unused code 2012-06-13 21:11:01 +04:00
Andrey Breslav bcb93751ae Support for properties defined by object declarations 2012-06-13 20:34:14 +04:00
Andrey Breslav acc658e9c1 Support properties declared in the primary constructor parameter list 2012-06-13 20:34:14 +04:00
Andrey Breslav 743cff4161 resolveToDescriptor() supported for:
* classes
* functions
* class objects
* type parameters
* packages
2012-06-13 20:34:14 +04:00
Andrey Breslav 2cd7d8505a Pointless TODO removed 2012-06-13 20:34:14 +04:00
Andrey Breslav 4d0aad1347 Injector creation pulled up 2012-06-13 20:34:14 +04:00
Andrey Breslav 290a2a0620 AbstractLazyResolveTest extracted 2012-06-13 20:34:13 +04:00
Svetlana Isakova 56bd86f8aa frontend part of KT-1922
VerifyError: Default value of constructor parameter should be resolved to previous parameter, not to property of class
2012-06-13 20:19:55 +04:00
Stepan Koltsov dfd3aac900 ExceptionUtils.closeQuietly 2012-06-13 20:00:54 +04:00
Stepan Koltsov edad5c9266 merge analyzeBodies functions from JS and JVM backend 2012-06-13 19:53:08 +04:00
Stepan Koltsov 9290f55bad JavaDescriptorResolver is not needed for body resolver
* create InjectorForBodyResolve
* split ScriptDescriptor into ScriptDeclarationResolve and ScriptBodyResolver
2012-06-13 19:27:17 +04:00
Svetlana Isakova 2f0278d63b KT-2262 Cannot access protected member from inner class of subclass
#KT-2262 fixed
2012-06-13 17:03:04 +04:00