Commit Graph

20933 Commits

Author SHA1 Message Date
Stanislav Erokhin 2627dc76c2 Compilation fix. 2015-03-12 17:11:54 +03:00
Stanislav Erokhin 8accdcc5cb Fix type inference for function expression parameters 2015-03-12 17:11:53 +03:00
Stanislav Erokhin af4aff38e5 Minor: remove duplicate code 2015-03-12 17:11:53 +03:00
Stanislav Erokhin f47f285868 Expected function type used for parameter types inference in function expression 2015-03-12 17:11:53 +03:00
Stanislav Erokhin 639003b8a8 Allowed function parameter without type declaration in the parser 2015-03-12 17:11:52 +03:00
Stanislav Erokhin d9882a6d0b Move inference parameter type in FunctionDescriptorResolver 2015-03-12 17:11:52 +03:00
Stanislav Erokhin 0c74675e6e Changed element parameter for EXPECTED_PARAMETERS_NUMBER_MISMATCH diagnostic 2015-03-12 17:11:52 +03:00
Stanislav Erokhin 072a9f4977 Refactoring: extract FunctionResolver from DescriptorResolver 2015-03-12 17:11:51 +03:00
Stanislav Erokhin 8ed3314b2c Divided resolveFunctionDescriptor method in to several pieces 2015-03-12 17:11:51 +03:00
Stanislav Erokhin 07a691f4b7 Merge methods resolveFunctionDescriptor && resolveFunctionDescriptorWithAnnotationArguments 2015-03-12 17:11:50 +03:00
Stanislav Erokhin dbcb4fb060 Minor: used util method 2015-03-12 17:11:50 +03:00
Stanislav Erokhin 4050e7a48b Rename ClosureExpressionsTypingVisitor to FunctionsTypingVisitor. 2015-03-12 17:11:50 +03:00
Stanislav Erokhin 711c5bb88f Rename ClosureExpressionsTypingVisitor.java -> .kt 2015-03-12 17:11:49 +03:00
Stanislav Erokhin 779c6deb34 Convert ClosureExpressionsTypingVisitor to kotlin 2015-03-12 17:11:49 +03:00
Stanislav Erokhin ee4892c99f Moved method visitNamedFunction from BasicExpressionTypingVisitor to ClosureExpressionsTypingVisitor. 2015-03-12 17:11:48 +03:00
Stanislav Erokhin bd525eac31 Moved method visitObjectLiteralExpression from ClosureExpressionsTypingVisitor to BasicExpressionTypingVisitor. 2015-03-12 17:11:48 +03:00
Stanislav Erokhin 6fb8af1dda Move util backend function isNamedFun && isNamedFunOrLambda to frontend 2015-03-12 17:11:47 +03:00
Stanislav Erokhin fa9ca54e78 Fixed local return inside function expression. 2015-03-12 17:11:47 +03:00
Stanislav Erokhin 929f1bc9ba Fixed method hasTypeParameterListBeforeFunctionName in JetNamedFunction 2015-03-12 17:11:47 +03:00
Stanislav Erokhin a89b48c577 Backend support for function expression 2015-03-12 17:11:46 +03:00
Stanislav Erokhin 44895a23cf Frontend support for function as expression 2015-03-12 17:11:46 +03:00
Stanislav Erokhin 6ccd8ab764 Move method visitNamedFunction from ExpressionTypingVisitorForStatements to BasicExpressionTypingVisitor.
This commit done only for clean history
2015-03-12 17:11:45 +03:00
Stanislav Erokhin a235110d44 Fixed function expression recovery 2015-03-12 17:11:45 +03:00
Stanislav Erokhin 983e1bc932 Added function as expression support to parser 2015-03-12 17:11:44 +03:00
Stanislav Erokhin 560c32c0f1 Added diagnostic error when in function declaration name was omitted 2015-03-12 17:11:44 +03:00
Stanislav Erokhin a8536fef9b Mute syntax error when function name was omitted 2015-03-12 17:11:44 +03:00
Stanislav Erokhin a33450395c Resolve parenthesized element as expression 2015-03-12 17:11:43 +03:00
Stanislav Erokhin 3b92cab9e0 Changed containing declaration for PropertyDeclarationInnerScope 2015-03-12 17:11:43 +03:00
Stanislav Erokhin 49b77a1523 Reformat code 2015-03-12 17:11:43 +03:00
Andrey Breslav d7297304b9 Create multi-declarations-in-parameters.md 2015-03-12 17:11:42 +03:00
Stanislav Erokhin 2c8cf05f7a Added backend tests with closure local function in local class 2015-03-12 17:11:42 +03:00
Michael Nedzelsky 7a5e54c691 jsHeaderLibraryDetectonUtil: refactoring after conversion 2015-03-12 16:35:36 +03:00
Michael Nedzelsky a29172c1ca jsHeaderLibraryDetectonUtil: rename .java -> .kt 2015-03-12 16:35:33 +03:00
Michael Nedzelsky 4dc4e6a021 jsHeaderLibraryDetectonUtil.java: convert to kotlin 2015-03-12 16:35:30 +03:00
Michael Nedzelsky cea65e0770 add NotNull annotation into BasicTest 2015-03-12 16:35:25 +03:00
Michael Nedzelsky 54bbe0711d JS backend: reuse analysisResult from K2JSCompiler in translator 2015-03-12 16:35:22 +03:00
Michael Nedzelsky 95768db9a1 fix NPE while creating new Kotlin/Javascript project 2015-03-12 15:58:14 +03:00
Andrey Breslav 2f39cb6243 Remove useless casts after fixing subtyping for star projections 2015-03-12 15:46:40 +03:00
Alexander Udalov b8674beac0 Fix build-protobuf-java-lite macro in update_dependencies.xml
Apparently vmlauncher=false invokes antRun which is missing in the Ant support
plugin in IDEA, so invoking update from IDEA was failing
2015-03-12 14:33:07 +03:00
Nikolay Krasko dcd29cb65d Revert "Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416)"
This reverts commit 6ba120bba8.
2015-03-12 14:18:22 +03:00
Nikolay Krasko 6ba120bba8 Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416) 2015-03-12 12:59:22 +03:00
Nikolay Krasko 38809761e2 Other base method 2015-03-12 12:35:11 +03:00
Michael Bogdanov 30832ed774 Properly report diagnostics on platformStatic annotations
#KT-6937 Fixed
2015-03-12 10:29:00 +03:00
Alexey Sedunov 84ad6c394e Create from Usage: Respect smart-casts when suggesting parameter type candidates
#KT-6781 Fixed
2015-03-11 23:34:00 +03:00
Alexey Sedunov b033c17426 Caller Hierarchy: NPE fix
#EA-66031 Fixed
2015-03-11 23:33:59 +03:00
Alexey Sedunov 11a4cdf7ec Control-Flow Analysis: Fix NPE for array assignments without right-hand side
#EA-63602 Fixed
2015-03-11 23:33:58 +03:00
Alexey Sedunov 56031cb270 Control-Flow Analysis: Fix bug in finally-block repetition in the presence of non-local returns
#EA-65982 Fixed
2015-03-11 23:33:57 +03:00
Alexey Sedunov f0b0fd07c5 Create From Usage: Add support of star projections/incorrect type arguments
#EA-62661 Fixed
2015-03-11 23:33:56 +03:00
Alexey Sedunov ab5a691612 Create From Usage: Place generated declarations next to original element container if they have common parent
#KT-6687 Fixed
2015-03-11 23:33:55 +03:00
Alexey Sedunov fe9b08f93d Create From Usage: Place local variable declaration right before its usage
#KT-6704 Fixed
2015-03-11 23:33:54 +03:00