Commit Graph

6226 Commits

Author SHA1 Message Date
Dmitry Petrov 670b49ec5e Dropping package facades: remove unused imports from package facades
(not cleaned up automatically)
2015-10-16 11:23:22 +03:00
Michael Nedzelsky 114d19e6d9 use MainFunctionDetector in order to check for main function 2015-10-15 19:24:45 +03:00
Valentin Kipyatkov f67bd8c13f Even more precise keyword completion for modifiers 2015-10-15 19:20:11 +03:00
Valentin Kipyatkov 762900037e Minor 2015-10-15 19:20:11 +03:00
Valentin Kipyatkov 26768ad34b Renames 2015-10-15 19:20:11 +03:00
Valentin Kipyatkov dfcf459bf6 Minor 2015-10-15 19:20:11 +03:00
Valentin Kipyatkov 87cfccc2d9 Removed all places in parser where obsolete annotation syntax was allowed 2015-10-15 19:20:10 +03:00
Valentin Kipyatkov 875eaa52e3 Removing unused code 2015-10-15 19:20:10 +03:00
Valentin Kipyatkov 434be3be21 Adapted keyword completion to changed parser + more precise completion for modifier keywords 2015-10-15 19:20:09 +03:00
Valentin Kipyatkov d84020b1f3 Removed special support for parsing annotations for multi-declaration in for 2015-10-15 19:20:08 +03:00
Valentin Kipyatkov 98dc8f234e Drop suppport for annotation syntax without '@' from parser 2015-10-15 19:20:07 +03:00
Alexander Udalov 66417ed329 Parse type arguments after callable reference as error
Is likely to be supported in the future
2015-10-15 18:25:42 +03:00
Alexander Udalov bf4a681589 Deduce receiver type of callable reference from LHS, not from descriptor 2015-10-15 18:25:42 +03:00
Alexander Udalov 2cf437c0e2 Fix type of callable reference to fake override 2015-10-15 18:25:41 +03:00
Yan Zhulanow bff6639e2d Use stubs in checkParameterInFunctionType 2015-10-15 18:23:58 +03:00
Yan Zhulanow d52f245cf7 Rename unary plus/minus in builtins and stdlib 2015-10-15 18:23:58 +03:00
Yan Zhulanow f7ce0c2d20 Add new intrinsic methods: unaryPlus, unaryMinus 2015-10-15 18:23:58 +03:00
Pavel V. Talanov 53b21061fd Don't use StubBasedPsiElementBase#getStubOrPsiParent
#KT-9579 Fixed
2015-10-15 15:49:42 +03:00
Pavel V. Talanov bfcabad148 Don't override StubBasedPsiElementBase.getStub
#KT-9575 Fixed
2015-10-15 15:49:42 +03:00
Michael Nedzelsky 890ae3e914 Make single-file classes tolerant to having many main()'s 2015-10-15 15:46:26 +03:00
Dmitry Petrov 8cd624a58a Drop package facades: code cleanup in Kotlin project. 2015-10-15 10:33:47 +03:00
Michael Nedzelsky 57205f5721 drop BASE_WITH_NULLABLE_UPPER_BOUND 2015-10-14 20:51:01 +03:00
Alexander Udalov ced1edcf98 Prohibit callable references to object members
To be able to make them more useful in the future, i.e. bound to the object
instance
2015-10-14 20:45:56 +03:00
Alexander Udalov a6846b3967 Insert KProperty<*> when creating property delegate methods in IDE 2015-10-14 20:45:26 +03:00
Alexander Udalov ec1b4776fe Deprecate PropertyMetadata, use KProperty<*> for delegated properties instead 2015-10-14 20:45:25 +03:00
Mikhail Glukhikh 7ee1e555bc DataFlowValue enum property rename: name --> str 2015-10-14 20:40:15 +03:00
Denis Zharkov 0b9c9a6047 Support builtin properties in ConstantExpressionEvaluator 2015-10-14 20:39:53 +03:00
Denis Zharkov 1305d9755a Transform CharSequence.length to property 2015-10-14 20:39:29 +03:00
Yan Zhulanow 528482f625 Deprecated conventions (get -> getValue, plus -> unaryPlus) quickfix 2015-10-14 19:10:36 +03:00
Mikhail Glukhikh d2358c7fb4 Accidentally added code was rolled back 2015-10-14 18:55:26 +03:00
Alexey Tsvetkov 5449cea6b7 Make Array type parameter T non-reified 2015-10-14 18:36:53 +03:00
Mikhail Glukhikh c0faf82f77 Initializer is now required for mutable properties with backing fields and open or custom setter #KT-9449 Fixed
Setters without body are not taken into account accordingly to KT-9449.
Old INITIALIZATION_USING_BACKING_FIELD_SETTER are both dropped.
2015-10-14 18:00:13 +03:00
Mikhail Glukhikh 9c9ab671b3 Effective visibility: local is now considered private, TYPE_DEPENDS_ON_LOCAL_CLASS diagnostics removed as repeated #KT-9542 Fixed #KT-9526 Fixed 2015-10-14 18:00:10 +03:00
Mikhail Glukhikh c210ca5b4d Additional correctness check for noinline & crossinline #KT-9567 Fixed 2015-10-14 18:00:02 +03:00
Mikhail Glukhikh 96b567254d Deprecation fixes 2015-10-14 17:59:59 +03:00
Michael Nedzelsky 27b13dda65 improve diagnostic for KT-9484 Don't allow named arguments for inherited functions with parameter name conflicts
#KT-9484 Fixed
2015-10-14 16:58:19 +03:00
Michael Nedzelsky d05a7224c7 add check for escaped identifiers 2015-10-14 16:57:06 +03:00
Michael Nedzelsky 1818e9f1bd fix parse `` 2015-10-14 16:57:03 +03:00
Michael Nedzelsky cc2dfc4937 remove validation from Name.identifier 2015-10-14 16:56:55 +03:00
Michael Bogdanov d78b59eb73 Package private visibility for private top-level members 2015-10-14 16:03:54 +03:00
Pavel V. Talanov be15399313 Report errors for type parameters of properties that are not used in receiver types 2015-10-14 13:40:10 +03:00
Yan Zhulanow 275f3f8954 'operator' checks 2015-10-14 01:29:10 +03:00
Yan Zhulanow dc8e796e49 getValue()/setValue() should be marked with 'operator' 2015-10-14 01:29:09 +03:00
Yan Zhulanow bc3d1ddda0 Remove old 'get' delegate convention in interfaces 2015-10-14 01:29:09 +03:00
Alexey Sedunov 30d697109c Code Insight: "Generate secondary constructor" action
#KT-6970 Fixed
2015-10-13 20:56:52 +03:00
Alexander Udalov 78829b9e8f Minor, drop some obsolete usages of TRAIT in compiler 2015-10-13 20:29:39 +03:00
Alexander Udalov baaa3ef50a Remove KotlinSignature annotations from project code 2015-10-13 20:29:16 +03:00
Valentin Kipyatkov d728417f7f Fixed KT-9496 FQ-class name inserted in type argument on copy/paste
#KT-9496 Fixed
2015-10-13 19:13:22 +03:00
Mikhail Glukhikh f4e1f53549 Error message fixed 2015-10-13 17:13:17 +03:00
Alexey Tsvetkov 0e606a3210 Prohibit named parameters in function types in supertype position 2015-10-13 16:07:55 +03:00