Commit Graph

8347 Commits

Author SHA1 Message Date
Svetlana Isakova 41e355da51 invoke 'moveAllMyDataTo' on call.getTrace()
instead of 'commit'
to let such invocations on cached calls
2012-10-29 14:41:50 +04:00
Svetlana Isakova b395d33ff0 debug names for temporary traces added 2012-10-29 14:41:49 +04:00
Andrey Breslav 6c1d3aa813 Annoying wrong inspection turned off 2012-10-26 20:01:26 +04:00
Alexander Udalov e2809b8080 Revert changes introduced in a31b7480
JavaElementFinder is no longer needed to find namespace$src$ classes
2012-10-25 21:42:09 +04:00
Alexander Udalov 6e2e724b99 Implement JetPositionManager.getSourcePosition() properly
JetPositionManager now finds a PsiFile to create a SourcePosition correctly.
This fixes problems with breakpoints and navigation between frames when there's
more than one file with the given name (not necessarily in the same package)
2012-10-25 21:41:26 +04:00
Alexander Udalov 04a3aa8763 Test JetPositionManager.getSourcePosition() 2012-10-25 21:33:34 +04:00
Alexander Udalov 1469c1fe5e Fix numbering in debugger tests
Line number in SourcePosition is actually 0-based
2012-10-25 21:33:30 +04:00
Alexander Udalov 3ce4d68c3b Refactor tests for JetPositionManager
PositionManagerTestCase now inherits from MultiFileTestCase, which allows to
call configureByFile to configure tests properly.

Also multi-file tests are now done by copying test project file structure
2012-10-25 21:33:26 +04:00
Alexander Udalov f42478f82f JetExceptionFilter handles correctly the case of several files with the same name
Extract the logic to DebuggerUtils.findSourceFileForClass()

This fixes navigation from stack trace to a file, when there's more than one
file with this name in this package in the project
2012-10-25 21:32:32 +04:00
Alexander Udalov 880852861c A couple utility methods
PsiCodegenPredictor.getFileForCodegenNamedClass() returns JetFile which
contains a declaration which will produce a class with a given name.
PsiCodegenPredictor.getFileForNamespacePartName() returns JetFile which
produces a namespace part with the given name.

BindingContextUtils.getContainingFile() returns JetFile which contains a
declaration which is matched to a given descriptor.

DescriptorUtils.findTopLevelParent() finds a top-level (i.e. its containing
declaration is NamespaceDescriptor) parent for a descriptor.

Also DescriptorUtils.isTopLevelFunction() is changed a little to accept not
only a function, but any descriptor
2012-10-25 21:28:43 +04:00
Alexander Udalov a8798de8d0 NamespaceCodegen.getNamespacePartInternalName()
Should be used instead of getMultiFileNamespaceInternalName()
2012-10-25 21:28:42 +04:00
Alexander Udalov e7a7afa0be Sort all namespace files by name prior to assigning names in codegen
This helps to make names of closures etc. stable across compilation, should
also probably help to implement incremental compilation.

No new tests added
2012-10-25 21:28:41 +04:00
Alexander Udalov dd6d7d90bc Fix navigation from stack trace
JetExceptionFilter now correctly assigns hyperlinks to items of form
"namespace$...", found in exception stack traces

 #KT-2489 Fixed
 #KT-2941 Fixed
2012-10-25 21:28:41 +04:00
Alexander Udalov eb6da4bb8b Test for JetExceptionFilter 2012-10-25 21:28:40 +04:00
Alexander Udalov 34a940fa3b Create JetExceptionFilter, add as an extension point
Add delegation to the default ExceptionFilter & placeholders for patching
hyperlinks with Kotlin-specific info
2012-10-25 21:28:39 +04:00
James Strachan 0506708e70 include the maps.js standard JS file in the maven plugin (fixing up issues caused by the refactoring of kotlin_lib.js into 2 files) 2012-10-25 16:56:13 +01:00
Natalia.Ukhorskaya bf489c9ed8 KT-2701 Prevent redeclaration in multi-declaration
#KT-2701 Fixed
2012-10-25 19:03:36 +04:00
Natalia.Ukhorskaya 34a9d6a469 EA-39486 Fixed - IAE: AnnotationResolver.resolveAnnotationArgument 2012-10-25 19:03:35 +04:00
Nikolay Krasko b62fe5f5fb Move caret into generated else branch 2012-10-25 18:55:53 +04:00
Nikolay Krasko 6a6282b038 Replace usages of createWhiteSpace(project, ''\n") to specific method 2012-10-25 18:55:52 +04:00
Nikolay Krasko 33240f167d Add else entry for when quick fix 2012-10-25 18:55:52 +04:00
Nikolay Krasko 6f60d08c3a Drop cached qualified name after changing nodes in subtree
#KT-2969 Fixed
2012-10-25 18:55:51 +04:00
Andrey Breslav 97ed6854ea In-block expressions classified 2012-10-25 18:04:42 +04:00
Andrey Breslav 2ea56a1c3c Errors re-ordered: some classification introduced 2012-10-25 17:10:09 +04:00
Andrey Breslav 55cd9246ad The only non-constant strategy made a constant (for readability) 2012-10-25 17:10:09 +04:00
Andrey Breslav 71ea3f7330 Unused errors removed 2012-10-25 17:10:09 +04:00
Andrey Breslav b5385788a3 Don't generate UNNECESSARY_SAFE_CALL on variables of generic type <T: Any?> 2012-10-25 17:05:28 +04:00
Andrey Breslav 3e38870ecc KT-2991 Don't generate UNNECESSARY_NOT_NULL_ASSERTION on variables of
generic type T:Any?

 #KT-2991 Fixed
2012-10-25 17:05:27 +04:00
Sergey Mashkov edb8797fa6 KT-2987 java.lang.AbstractMethodError/java.lang.NoSuchMethodError for delegated class by parameterized parent
#KT-2987 Fixed
2012-10-25 16:26:58 +04:00
James Strachan c843d23416 allow the maven plugin to have its source directories to be configured on a per execution basis (e.g. so that you can have different directories for JS compilation as to JVM based compilation). Its a shame to require 2 fields for configuration; but tried all other permutations I could think of but could not figure out a cleaner way -better approaches welcome! :) 2012-10-25 10:57:31 +01:00
James Strachan 3043577949 temporarily enforce jdk 1.6 in the maven build to provide a non-confusing compile error message if someone accidentally tries to build on JDK 7 which does not yet work (see KT-2988) 2012-10-24 09:23:32 +01:00
James Strachan ef0c8ab162 added explicit source plugin version 2012-10-24 09:08:07 +01:00
Natalia.Ukhorskaya cacb2a6761 Change tooltip message for deprecated items 2012-10-24 11:56:43 +04:00
Natalia.Ukhorskaya 4db732c11b KT-2948 Assertion fails on a local enum
#KT-2948 Fixed
2012-10-23 19:23:16 +04:00
Evgeny Gerashchenko 91bbd7378e Added TODOs in ConfigureKotlinLibraryNotificationProvider to make it easier to migrate to newer IDEA. 2012-10-23 18:06:16 +04:00
Evgeny Gerashchenko 38a27b3e6b KT-2169 "Specify type" fix should be accessible for the whole function signature
#KT-2169 fixed
2012-10-23 18:06:16 +04:00
Evgeny Gerashchenko 0c43e77ac0 Minor. Fixed references to KotlinBuiltIns.UNIT_ALIAS. 2012-10-23 18:06:16 +04:00
Evgeny Gerashchenko 1817b3daa7 EA-39710 - assert: JavaDescriptorPropertiesResolver.resolveNamedGroupProperties 2012-10-23 18:06:16 +04:00
Natalia.Ukhorskaya 37288a337b #KT-2981 Fixed Show deprecated items after not deprecated in completion list 2012-10-23 13:21:59 +04:00
Natalia.Ukhorskaya a79a31cf01 #KT-2811 Fixed VerifyError on smart-cast 'this' 2012-10-23 13:20:29 +04:00
Nikolay Krasko a3b86f5f8b Special behaviour for space completion char on function literal insertion 2012-10-23 12:14:53 +04:00
Natalia.Ukhorskaya 2abf9ac051 #KT-2945 Fixed Mark deprecated classes, properties and functions in completion 2012-10-22 14:27:45 +04:00
Natalia.Ukhorskaya c112e3e042 Mark deprecated classes, properties and functions in go to action 2012-10-22 14:27:29 +04:00
Andrey Breslav 583dd1564d If t is of type T, comparison (t == null) may be true. No warning in this case 2012-10-20 23:33:50 +04:00
Andrey Breslav d58038d3ef Deparenthesize 'null' before checking the constant expression 2012-10-20 23:33:50 +04:00
Nikolay Krasko 3861bfaaa0 KT-1801 Auto-insert closing angle bracket when entering a generic type parameter
#KT-1801 Fixed
2012-10-19 22:56:15 +04:00
Nikolay Krasko 75bd7d606d Add override annotations - remove warnings 2012-10-19 21:57:19 +04:00
Andrey Breslav e8bd42b691 KT-2729 Warn on 'T?' where 'T' has a nullable upper bound 2012-10-19 19:42:54 +04:00
Andrey Breslav 80039d8533 A warning for redundant '?' in types 2012-10-19 19:24:14 +04:00
Andrey Breslav 92ef1c9417 Some 200 warnings eliminated from stdlib code 2012-10-19 16:17:51 +04:00