Commit Graph

14693 Commits

Author SHA1 Message Date
Steven Allen 626ec6519c Give tokens a value when possible
When a token can only have one value, store that value along with the
token. This is useful for unparsing kotlin.
2014-03-19 11:40:38 -04:00
Mikhael Bogdanov fa67ab481b VarRemapper -> LocalVarRemapper 2014-03-19 19:20:36 +04:00
Mikhael Bogdanov 86a02b54fa Fix for debugger to support inlined lambdas 2014-03-19 19:20:36 +04:00
Mikhael Bogdanov 93367ffd3b Generate local variable table for inlined lambda 2014-03-19 19:20:35 +04:00
Mikhael Bogdanov 75c57f9827 VarRemapper.ParamRemapper class merged into VarRemapper 2014-03-19 19:20:35 +04:00
Mikhael Bogdanov f000d208a6 Removed generateLocalVarTable method 2014-03-19 19:20:35 +04:00
Mikhael Bogdanov d059467727 Write line numbers for inlined lambdas 2014-03-19 19:20:35 +04:00
Nikolay Krasko 3b60dfa45b Refactoring: rename weight result enums 2014-03-19 17:59:43 +04:00
Nikolay Krasko 607314989c KT-1633 support completion of named function parameters 2014-03-19 17:59:41 +04:00
Nikolay Krasko 5a5f234377 Update dependency to 13.1 (135.475) 2014-03-19 17:53:32 +04:00
Andrey Breslav 3255aaf231 Minor. Grammar rules fixed 2014-03-19 17:41:49 +04:00
Zalim Bashorov d728f6ba92 JS backend: using JetPsiFactory instead of JetFileUtils. Drop JetFileUtils. 2014-03-19 17:36:45 +04:00
Zalim Bashorov 9bc5cc60ee JS stdlib: added some JSDoc annotations to handwritten js files. 2014-03-19 17:36:44 +04:00
Zalim Bashorov 31d8a75b1a Minor in JS backend: moved the Kotlin.modules declaration from koltin_lib.js to koltin_lib_ecma5.js 2014-03-19 17:36:43 +04:00
Zalim Bashorov c10e7dd94b JS backend: fixed extra code generation for increment, decrement and operations with assignment. 2014-03-19 17:36:43 +04:00
Alexey Sedunov 482d228253 Allow to move Kotlin file if it contains single top-level class/object 2014-03-19 15:31:30 +04:00
Alexey Sedunov 2f0d0c4d26 Move top-level declarations: Refactoring UI 2014-03-19 15:31:30 +04:00
Alexey Sedunov abcba89ad3 Move top-level declarations: Implement refactoring processor 2014-03-19 15:31:29 +04:00
Alexey Sedunov 5836bb41b6 Move file/directory-related refactorings to separate package 2014-03-19 15:31:27 +04:00
Alexey Sedunov 1772e453e5 Unwrap light elements before filtering out non-source search targets 2014-03-19 15:31:26 +04:00
Alexey Sedunov 05d93df8b8 Unwrap light elements before getting FqName 2014-03-19 15:31:26 +04:00
Alexey Sedunov acaa900ee9 Introduce reference shortening mode 2014-03-19 15:31:25 +04:00
Alexey Sedunov a0ab7f6f22 Add utility function for Kotlin file creation 2014-03-19 15:31:24 +04:00
Alexey Sedunov e2d0ecc437 Extract utility function 2014-03-19 15:31:23 +04:00
Alexey Sedunov a094ea6550 Rename class 2014-03-19 15:31:22 +04:00
Mikhael Bogdanov e4cdde4ebf Rename transformation methods to folding 2014-03-19 11:41:24 +04:00
Mikhael Bogdanov 001945cd12 Fix for duplicated fields in regenerated lambda 2014-03-19 11:41:05 +04:00
Mikhael Bogdanov 961cb7d349 Added nullability annotations 2014-03-19 10:42:41 +04:00
Tal Man baac1b9b0b Fix to a bug in the intention to move lambda expressions inside parentheses, type arguments were being deleted 2014-03-18 19:25:50 +04:00
Nikolay Krasko 5362b81ea5 Don't search in random directories for existent libraries
#KT-4644 In Progress
2014-03-18 16:16:24 +04:00
Nikolay Krasko 3911a6f54b Search library kinds
#KT-4644 In Progress
2014-03-18 16:16:24 +04:00
Nikolay Krasko 6b0298b933 Silently disable other incompatible framework
#KT-4644 In Progress
2014-03-18 16:16:23 +04:00
Nikolay Krasko 8ddbdab8c8 Support library create with relative paths
#KT-4644 In Progress
2014-03-18 16:16:22 +04:00
Nikolay Krasko 16018ccfe8 Minor: add @TestOnly annotation 2014-03-18 16:16:22 +04:00
Zalim Bashorov 71bfa51ab2 JS backend: fix access to class object members from containing class with implicit receiver.
#KT-4130 Fixed
2014-03-18 13:09:49 +04:00
Zalim Bashorov 1ba0b01456 Minor in JS backend: dropped unnecessary aliasing in ExpressionVisitor when translate local named function. 2014-03-18 13:09:48 +04:00
Zalim Bashorov 8fd38e261f JS backend: fix access to enum entries by implicit receiver and explicit this. 2014-03-18 13:09:47 +04:00
Andrey Breslav 6b72d44929 Report useless and hidden imports in LAZY mode 2014-03-17 21:55:18 +04:00
Andrey Breslav 66b4c8d1a9 CONFLICTING_UPPER_BOUNDS reported in LAZY mode 2014-03-17 21:55:18 +04:00
Andrey Breslav db6a6470f9 FINAL_UPPER_BOUNDS checked for classes in LAZY mode 2014-03-17 21:55:18 +04:00
Andrey Breslav f7c5dc179c Eager resolve does not record class object bounds (which are unsupported anyways) 2014-03-17 21:55:17 +04:00
Andrey Breslav 9964ecc883 NAME_IN_CONSTRAINT_IS_NOT_A_TYPE_PARAMETER check for classes is moved to DescriptorResolver 2014-03-17 21:55:16 +04:00
Andrey Breslav 39de1f131b Bind references to type parameters in contraints in LAZY mode 2014-03-17 21:55:16 +04:00
Andrey Breslav 2a82c15465 Report UNSUPPORTED on class object constraints in lazy resolve 2014-03-17 21:55:15 +04:00
Andrey Breslav b72bcfd8ae Type bounds check for class headers moved to DeclarationsChecker 2014-03-17 21:55:15 +04:00
Andrey Breslav 8be40c29cf CYCLIC_INHERITANCE_HIERARCHY reworked
We do not try to recover too gracefully from a cyclic hierarchy any more:
we simply remove all the edges that belong to a cycle instead of intelligently finding one most convenient edge to cut.
This is done in both lazy and eager resolve to keep tests passing.
2014-03-17 21:55:15 +04:00
Andrey Breslav ed81102b2f Minor. Name clash removed (workaround for KT-1) 2014-03-17 21:40:22 +04:00
Andrey Breslav e70571bafb Register properties declared in primary constructors in c.getMembers() 2014-03-17 21:40:22 +04:00
Andrey Breslav 1e0910f9c6 Redeclaration check supported in LAZY mode 2014-03-17 21:40:21 +04:00
Andrey Breslav 674d990ba1 More precise return type in ClassDescriptorWithResolutionScopes.getClassObjectDescriptor() 2014-03-17 21:40:21 +04:00