Commit Graph

1363 Commits

Author SHA1 Message Date
Alexander Udalov 5cc043314d KT-2376 java.lang.Number should be visible in Kotlin as jet.Number
#KT-2376 Fixed
2012-07-11 14:31:10 +04:00
Andrey Breslav acd0d5eb56 Lazy resolve: Anonymous initializers do not declare anything relevant 2012-07-10 22:48:49 +04:00
Andrey Breslav 3266c2bdde Lazy resolve: Proper scope when inferring types of member properties 2012-07-10 22:48:49 +04:00
Andrey Breslav 33dfd5bb6b Lazy resolve: Package-level objects are handled properly 2012-07-10 22:48:49 +04:00
Andrey Breslav 853dc31510 toString() for debugging 2012-07-10 22:48:49 +04:00
Svetlana Isakova ab9d1c935f KT-2379 Compilation error after running "ant dist" from terminal on Debian system with openjdk
#KT-2379 fixed
2012-07-10 19:53:29 +04:00
Andrey Breslav 8b2ad52ce6 Formatting 2012-07-10 14:48:09 +04:00
Andrey Breslav 9f0f6f862a Fixing modality in fake overrides
The modality was nondeterministic before.
The main change sits in OverrideResolver: the logic of "fake override" generation is restructured so that
all the descriptors a newly created "fake" one overrides are known by the time it is created, so its
modality can be determined properly from their modalities.

Also, the ReadJavaBinaryClassTestGenerated is now a clear JUnit3 test case
2012-07-09 13:39:05 +04:00
Andrey Breslav 2a1fd7e7d6 Java packages are declared externally for the Kotlin PSI
Same for JetStandardLibrary classes
2012-07-09 13:39:04 +04:00
Andrey Breslav e42f91a7de Do not add error supertypes
If we add them, error functions and such will be in the member scope + the type checker will be confused when an ambivalent type will appear in this position
2012-07-09 13:39:04 +04:00
Andrey Breslav 1f95636bdf Injectors regenerated 2012-07-09 13:39:03 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 4781d62dd2 Created CompilerConfiguration and classpath/annotations path keys. 2012-07-07 20:33:23 +04:00
Pavel V. Talanov 6354d1bae0 Custom equals operator (includes little patch to frontend)
#KT-2354 fixed
2012-07-05 16:25:33 +04:00
James Strachan 2090b422c0 added compiler scope to the exception thats thrown 2012-07-05 08:52:19 +01:00
James Strachan 85782179c6 added extra diagnostics on assertions so its clear which bit of code caused the problem 2012-07-04 22:02:09 +01:00
Pavel V. Talanov 92231d2eae Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java
	js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestToJSTest.java
2012-07-04 18:32:24 +04:00
Alexander Udalov b2defb2cb4 KT-2317 Wrong UNNECESSARY_SAFE_CALL
#KT-2317 Fixed
2012-07-04 15:39:58 +04:00
Pavel V. Talanov 9f4a48bb1c Remove some strange code from StaticContext. Also use Collection<JetFile> instead of List<JetFile> in some APIs 2012-07-04 12:42:46 +04:00
Pavel V. Talanov 62ff95205c Better fix for class object's visibility problem 2012-07-02 18:09:30 +04:00
Pavel V. Talanov 187c90ed3b Update for the previous fix for class object's visibility. 2012-07-02 17:29:06 +04:00
Pavel V. Talanov 2975cda4d6 Fix a bug which caused class object's visibility to be ignored 2012-07-02 17:29:04 +04:00
Nikolay Krasko 72271cbdd4 Allow store nullable qualified names in object stubs 2012-07-02 17:16:09 +04:00
Nikolay Krasko de4e302578 Index package-level properties 2012-07-02 15:16:49 +04:00
Nikolay Krasko 5f2c22f944 Remove endless recursive call 2012-06-29 18:23:55 +04:00
Nikolay Krasko ce283d038a Declaration providers on stubs 2012-06-29 18:07:04 +04:00
Nikolay Krasko ede771935f Stub for object 2012-06-29 14:27:46 +04:00
Nikolay Krasko fed9df9858 Add qualified name to top level functions stub 2012-06-29 14:19:44 +04:00
Nikolay Krasko a0bbf24709 Add isAnnotation to class stub 2012-06-28 16:46:30 +04:00
Andrey Breslav 0c910dba8b Supporting (predefined) classifier aliases in Lazy Resolve 2012-06-26 23:23:06 +02:00
Andrey Breslav eb4bcc35c0 Tuple classes have constructors 2012-06-26 23:13:54 +02:00
Andrey Breslav 06aa1478e6 A private constructor added to Nothing 2012-06-26 23:13:54 +02:00
Andrey Breslav 1361c70f68 FunctionN and ExtensionFunctionN are now abstract classes, not traits
+ Indexing of their type parameters is fixed (should match actual positions in the parameter list)

 The reason to make them classes:
 * This is how they are actually implemented in the JVM back-end (for performance)

 This can be reconsidered later, but seems to be a reasonable solution
2012-06-26 23:13:54 +02:00
Andrey Breslav a10d0e9c2b Type parameters of tuples and functions are not reified 2012-06-26 23:13:53 +02:00
Andrey Breslav 61d4f51cde THe 'reified' annotation respected in Lazy resolve 2012-06-26 23:13:53 +02:00
Andrey Breslav f0e0411847 Special classes (for Any and Nothing) introduced to Lazy Resolve 2012-06-26 23:13:53 +02:00
Andrey Breslav ac06825f08 jet.Any: modality and constructor straightened 2012-06-26 23:13:53 +02:00
Nikolay Krasko d3041d410e Merge pull request #80 from Frostman/quickfix-impr
Fix for KT-2174 Need "Replace with unsafe call" intention
2012-06-26 13:42:34 -07:00
Andrey Breslav fe394b9827 Set return type for the fake constructor of a class object 2012-06-26 18:00:23 +02:00
Andrey Breslav 2c688a5e3c Lazy resolve of enum entries 2012-06-26 17:51:16 +02:00
Andrey Breslav 6632c6abfc Inherited visibility resolution fixed 2012-06-26 17:51:15 +02:00
Andrey Breslav 150b54a615 Support enum entries as members (not matching the eager resolve behavior) 2012-06-26 17:51:15 +02:00
Andrey Breslav c4484cf81d getContainingPackageFqName() added to JetClassLikeInfo 2012-06-26 17:51:15 +02:00
Andrey Breslav eb8c0ec81c toString() for lazy scopes 2012-06-26 17:51:15 +02:00
Andrey Breslav 3fbe7a2c9b PSI data abstract through JetClassInfo, to facilitate enum literal resolution 2012-06-26 17:51:15 +02:00
Andrey Breslav b3272feb63 Lazy resolve passes DescriptorRenderer tests except for the Enum case 2012-06-26 17:51:15 +02:00
Andrey Breslav e92f706c64 Typo fixed 2012-06-26 17:51:15 +02:00
Nikolay Krasko 72ef07acef Don't stub parameter if it's a loop parameter 2012-06-25 17:05:01 +04:00
Nikolay Krasko 6b82429587 Don't create stubs for properties inside function initializers (EA-36861) 2012-06-25 15:07:10 +04:00
Nikolay Krasko 7499ba0255 Stub for enum entry 2012-06-25 11:41:34 +04:00