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
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
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
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
1d2e80b157
Introduced PathUtil.JDK_ANNOTATIONS_JAR constant
2012-07-22 20:11:03 +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
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
Svetlana Isakova
3f37fe49a8
no @Nullable tracing in parameters
2012-07-20 19:34:54 +04:00
Svetlana Isakova
4ca18b2fb6
rename
2012-07-20 19:34:54 +04:00
Svetlana Isakova
bd40ce18ff
added class ValueArgumentsCheckingResult
...
instead of null for List<JetType> in arguments
2012-07-20 19:34:54 +04:00
Svetlana Isakova
b567700545
added 'getCurrentSubstitutor' to ConstraintSystem
...
which returns DON_CARE type projection for unknown type parameters
2012-07-20 19:34:54 +04:00
Svetlana Isakova
e3d2b013da
added tests for specific type inference errors
2012-07-20 19:34:54 +04:00
Svetlana Isakova
4d281a40c8
removed method hasContradiction() from ConstraintSystem interface
...
rename
2012-07-20 19:34:54 +04:00
Svetlana Isakova
63ad4dbd17
javadoc for ConstraintSystem added
2012-07-20 19:34:54 +04:00
Svetlana Isakova
cf7d7bfafb
ConstraintKind moved to TypeConstraintsImpl
2012-07-20 19:34:54 +04:00
Svetlana Isakova
5c1a8a66a0
check for the same type constructors
...
otherwise type constructor mismatch error
(instead of checking for subclasses)
2012-07-20 19:34:54 +04:00
Svetlana Isakova
e2daefb1f3
added special method to replace type variables in constraint system
2012-07-20 19:34:54 +04:00
Svetlana Isakova
fd04717ecc
added 'hasErrorInConstrainingTypes'
...
not to report type inference error in such cases
2012-07-20 19:34:54 +04:00
Svetlana Isakova
fb3c80d98c
ConstraintsSystem interface changed
...
hasTypeConstructorMismatchAt(position) instead of getTypeConstructorMismatchConstraintPositions()
2012-07-20 19:34:53 +04:00