Commit Graph

1477 Commits

Author SHA1 Message Date
Stepan Koltsov 3748507ac1 disable +JDK macro in JetDiagnosticsTest and fix (actually hide) revealed bugs
+JDK was not very helpful
2012-03-12 22:54:24 +04:00
Stepan Koltsov 07ff53d456 add trailing newlines to test files
otherwise I have to rollback dozens of files after using sed that follows conventions
2012-03-12 22:54:14 +04:00
Stepan Koltsov 61dc0c265c debugger-friendly formatting 2012-03-12 22:54:05 +04:00
Stepan Koltsov 9d66a9a842 asserts in JetScopeImpl, add enum entry to proper scope 2012-03-12 22:54:00 +04:00
Stepan Koltsov 88f55100ca make sure ClassDescriptor.toString does not crash so we can use it in exception messages 2012-03-12 22:53:55 +04:00
Stepan Koltsov 8be79b3f22 split some tests in JetDiagnosticsTest 2012-03-12 22:53:50 +04:00
Nikolay Krasko 55b0ea1e60 - Don't repeat reference variant lookup for empty prefix.
- Temporary disable duplicates search with PsiElement position.
2012-03-12 21:12:42 +04:00
Alex Tkachman c746a50406 annotations with parameters 2012-03-12 16:52:49 +02:00
Stepan Koltsov 7c8170cddd better diagnostics in JavaDescriptorResolverHelper 2012-03-12 17:31:30 +04:00
Andrey Breslav c315734665 EA-34240 - SIOOBE: CompileTimeConstantResolver.getCharValue 2012-03-12 16:58:01 +04:00
Alex Tkachman b4e2a5fb30 workaround for ACC_STATIC flag 2012-03-12 14:53:33 +02:00
Andrey Breslav 00142a7775 Assertions and a possible fix for EA-34423 - NPE: GenerationState.compileCorrectFiles 2012-03-12 16:42:31 +04:00
Andrey Breslav 9138d0f6d4 Comment added 2012-03-12 16:21:52 +04:00
Andrey Breslav 68698cb34a Unnecessary creation of the default namespace eliminated 2012-03-12 16:21:52 +04:00
Andrey Breslav c6fae0c18f Aggregating scope refactored to into proper imports 2012-03-12 16:21:52 +04:00
Andrey Breslav a0a4536c40 Debug output removed 2012-03-12 16:21:52 +04:00
Andrey Breslav 3c71512850 Minimal refactoring that eliminates importing Java's root namespace by default.
All tests pass. Some beautifying needed

#KT-1477 Fixed
2012-03-12 16:21:52 +04:00
Andrey Breslav 6bc3bbb53d Rename StandardConfiguration into DefaultModuleConfiguration 2012-03-12 16:21:52 +04:00
Andrey Breslav 61aac5d544 Configuration renamed into ModuleConfiguration 2012-03-11 18:57:38 +04:00
Nikolay Krasko fba492c492 Completion for top-level functions from class and jar files. 2012-03-11 16:54:06 +04:00
Stepan Koltsov 4443f912af fix PackageScope.getAllDescriptors
http://youtrack.jetbrains.com/issue/KT-1553
2012-03-11 15:49:54 +04:00
Stepan Koltsov 0c2b91aa10 KT-1536: parse Throwable as nullable in JavaDescriptorResolver 2012-03-11 15:24:46 +04:00
Andrey Breslav 67d2a8dcca Work around the shallowly analyzed files 2012-03-11 13:46:50 +04:00
Andrey Breslav 57fb669670 Work around the shallowly analyzed files 2012-03-11 13:42:30 +04:00
Evgeny Gerashchenko f7c969de36 removed unnecessary ": jet.Any" in class declarations. 2012-03-10 20:32:43 +04:00
Evgeny Gerashchenko e9bac5ce16 Added better rendering for objects in DescriptorRenderer. 2012-03-10 20:29:00 +04:00
Evgeny Gerashchenko d1f2c46d26 Removed unnecessary "abstract" before "trait" in DescriptorRenderer. 2012-03-10 19:23:32 +04:00
Evgeny Gerashchenko 8f5d469a0c Replaced short names with fully qualified in DescriptorRenderer. 2012-03-10 14:57:08 +04:00
Stepan Koltsov 997fbb60a3 using guice to wire TopDownAnalyzer beans
attempt 2
2012-03-10 00:54:16 +04:00
Andrey Breslav 97ec5b4344 Make JetLightClass analyze the whole project (with no caching, for now). This change is related to the following issues:
KT-1474 Execption when running kotlin project
KT-1501 Run script doesn't work in IDEA
In seems that to fix the problem completely, we need to avoid importing Java's default package into every file, but the problems reported in these requests are gone now.

#KT-1501 Fixed
#KT-1474 Fixed
2012-03-09 17:48:11 +04:00
Andrey Breslav 1aadf98951 Working around a problem with shallow analysis 2012-03-09 17:35:29 +04:00
Svetlana Isakova c857785910 KT-1002 If there's no return in function highlight only last token but not last statement 2012-03-09 12:20:10 +04:00
James Strachan 562ba6b4de further refactorings to work around kotlin compiler bugs (nested classes & access to public fields in java classes) so we can extend the KotlinCompiler from Kotlin code to add new arguments and compiler plugins 2012-03-08 11:58:02 +00:00
James Strachan 0c66d9db27 further minor refactorings so we can easily reuse the class and command line argument handling in other command line tools like kdoc 2012-03-08 09:19:15 +00:00
James Strachan f43fd0f4f6 minor refactor to make KotlinCompiler easier to extend (to make command line based compiler tools with configurable plugins) 2012-03-08 08:05:47 +00:00
Evgeny Gerashchenko ecf622dca4 Replaced hash sets with linked hash sets in JavaPackageScope. 2012-03-07 14:58:55 +04:00
Evgeny Gerashchenko 688fad7f8f Added COMPACT descriptor renderer (without "defined in ...") 2012-03-07 14:58:55 +04:00
Evgeny Gerashchenko 16f4ec70e9 Replaced HashMap with LinkedHashMap in JavaClassMembersScope, JavaDescriptorResolver and JavaDescriptorResolverHelper (so the order of members is deterministic). 2012-03-07 14:58:55 +04:00
Evgeny Gerashchenko 7627cb6ed1 Removed redundant "final" in DescriptorRenderer. 2012-03-07 14:58:55 +04:00
Andrey Breslav a94b77ffc9 Revert GUICE introduction 2012-03-07 12:58:37 +04:00
Svetlana Isakova e9a7a909f6 KT-1402 Create new Kotlin object from a Java public static inner class 2012-03-07 12:09:03 +04:00
James Strachan f6244f75ea minor refactoring to allow plugins to be added to the BytecodeCompiler 2012-03-07 07:36:18 +00:00
Stepan Koltsov c3e2fc947d using guice to wire TopDownAnalyzer beans 2012-03-07 04:09:12 +04:00
Stepan Koltsov 406c81fbb3 better diag in CompileEnvironmentTest 2012-03-07 04:09:00 +04:00
Stepan Koltsov 522083bf5a lang package 2012-03-07 04:08:18 +04:00
Stepan Koltsov 5ae9cdff6b link from method to similar 2012-03-07 04:07:14 +04:00
Stepan Koltsov c2026b89b8 missing test in ReadJavaBinaryClassTest 2012-03-07 04:07:10 +04:00
Evgeny Gerashchenko a79a36dd11 Updated DescriptorRenderer to to be aware of types like Iterator<#(Int, Boolean)> 2012-03-06 22:01:23 +04:00
Evgeny Gerashchenko 78b7c32cd5 Refactored JetStandardClasses and DescriptorRenderer: renderer for tuple and function types share common code. 2012-03-06 22:01:23 +04:00
Andrey Breslav c794da3c55 More paths fixed 2012-03-06 20:21:51 +04:00