Commit Graph

6855 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 13e62f1222 Adding sources to configuration before JetCoreEnvironment creation for CLI. Except for module case, because it's pretty complex. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko ba2ca55848 Removed unused method. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko b8543bed22 Passing sources via compiler configuration on analyzing module script. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko f45494548f Passing sources via compiler configuration in K2JSCompiler. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko ea6c4116df Passing sources via compiler configuration in BytecodeCompiler. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 8f4b7444f7 Passing sources via compiler configuration in TestlibTest. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko abfc54d5ab Removed unused KotlinToJVMBytecodeCompiler.compileText method and test for it. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 4609360bcc Removed unused method. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko b771a61d30 Rewritten CompileTextTest so it doesn't add class path to already created configuration. Removed JetCoreEnvironment.addToClasspathFromClassLoader() method. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 916f34ea7e Added parameter to JetCoreEnvironment.createCoreEnvironmentForJS. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko d8b0070f1e Added SOURCE_ROOTS_KEY for compiler configuration. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 8aee0e0543 Adding source roots right after JetCoreEnvironment creation. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 5414240fa6 Added comments for ConfigurationKind enum constants. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko f43b617fd8 More neat adding JDK to configuration used for module script compilation. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko e54767e9a6 Removed unused methods. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 58ff66b46c Eliminated JetCoreEnvironment.configure() method. Actual setting classpath/annotations path is performed in constructor instead. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko ffca0409d4 Changed types of JVM configuration keys from arrays to lists. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 4332a60b31 Added handy add/addAll/getList methods for list keys in CompilerConfiguration. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko 8124e477ce Renamed methods getUserData and putUserData to get and put, respectively. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko 7c7a64bc6b Replaced unnecessary inheritance with delegation. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko d32d2c0bda Reformatted Ant task code according to coding conventions. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko ae92d435d6 Removed checking for DELEGATE_KEY in ClsClassImpl, since alt-headers are not loaded anymore. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko b26dd5d7c3 Reverted accidentally commited files. 2012-07-23 17:36:07 +04:00
Evgeny Gerashchenko fb8d5d3903 Putting kotlin-jdk-annotations.jar into lib directory instead of lib/alt. 2012-07-23 17:24:05 +04:00
Andrey Breslav 46737dfb11 Don't create constructors for traits 2012-07-23 16:41:23 +04:00
Andrey Breslav df14462497 Trace record guarded for enums' class objects 2012-07-23 15:58:47 +04:00
Andrey Breslav ab283184a9 Debug name for DESCRIPTOR_TO_DECLARATION fixed 2012-07-23 15:27:32 +04:00
Andrey Breslav ea7e7f01fb Qualified "this" supported by lazy resolve:
- Appropriate scope methods implemented
- Class declarations recorded in the binding trace
2012-07-23 13:43:35 +04:00
Andrey Breslav 1500b1783d Clarifying messages 2012-07-23 13:42:37 +04:00
Evgeny Gerashchenko 5858726c65 Added editor error strip when Kotlin JDK annotations are not set. 2012-07-22 22:13:12 +04:00
Evgeny Gerashchenko c2024b68e6 Minor changes. 2012-07-22 22:11:45 +04:00
Evgeny Gerashchenko 1d2e80b157 Introduced PathUtil.JDK_ANNOTATIONS_JAR constant 2012-07-22 20:11:03 +04:00
Evgeny Gerashchenko 01834371ee Minor. Changed capitalization. 2012-07-22 20:03:44 +04:00
Evgeny Gerashchenko 5d8f3b95e3 Using correct logger id. 2012-07-22 19:54:40 +04:00
Evgeny Gerashchenko 03f38ef52a KT-2300 Auto-insertion of parenthesis by completion is not good for functions like "filter"
#KT-2300 fixed
2012-07-21 23:31:26 +04:00
Evgeny Gerashchenko 7c95c0a617 KT-2333 highlight class fields as method param default value
#KT-2333 fixed
2012-07-21 21:08:29 +04:00
Evgeny Gerashchenko a9564e7580 KT-2414 for (x in 0 downto 0) makes no steps
#KT-2414 fixed
2012-07-21 20:34:25 +04:00
Svetlana Isakova 18b6b53288 Merge pull request #106 from udalov/kt2457-fe
Senseless null in when (KT-2457 frontend part)
2012-07-20 09:25:35 -07:00
Alexander Udalov 0c0232f42b Senseless null in when (KT-2457 frontend part) 2012-07-20 19:51:48 +04:00
Svetlana Isakova 1cc54d178c regenerated tests 2012-07-20 19:47:16 +04:00
Svetlana Isakova ee285f5c54 added Comparable to 'isForceReal' function 2012-07-20 19:46:55 +04:00
Svetlana Isakova f3dce9a723 error place changed 2012-07-20 19:45:59 +04:00
Svetlana Isakova 6f8f151db5 added java.lang.Comparable to JavaTypeTransformer 2012-07-20 19:34:55 +04:00
Svetlana Isakova 084566aac4 classDescriptorMap used instead of classTypeMap
in JavaTypeTransformer
so 'getKotlinAnalog' now is used instead of 'unwrapPrimitive'

classTypeMap removed,
=> removed now unnecessary numberType, throwableType, etc. from JetStandardLibrary
2012-07-20 19:34:55 +04:00
Svetlana Isakova a4bb47a73f type inference with functional literal params changed
if there are function literals without declared parameter types,
try adding constraint with current substituted result first (known type parameters),
if there is error, try adding constraint with 'dont_care' substitution
2012-07-20 19:34:55 +04:00
Svetlana Isakova a54b162e36 map changed to function 2012-07-20 19:34:54 +04:00
Svetlana Isakova d2c65b8529 rename 2012-07-20 19:34:54 +04:00
Svetlana Isakova b161b6bfbf added error TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH 2012-07-20 19:34:54 +04:00
Svetlana Isakova 17c16d8bfc optimize imports 2012-07-20 19:34:54 +04:00
Svetlana Isakova 5edfc6e2eb 'reportTypeInferenceFailed' moved to tracing 2012-07-20 19:34:54 +04:00