Commit Graph

15591 Commits

Author SHA1 Message Date
Pavel V. Talanov 1d3a3aea09 Introduce helper method to get stub or psi children as list
Add ArrayFactory to JetStubElement
Remove redundant array factories
2014-05-21 15:38:00 +04:00
Pavel V. Talanov eb27020340 Stubs: reduce the amount of boilerplate code
Extract a common type for placeholder stub elements
2014-05-21 15:37:59 +04:00
Pavel V. Talanov 512d1c05df Minor: make JetTypeElement an interface 2014-05-21 15:37:58 +04:00
Pavel V. Talanov c504082eb7 JetTypeParameterListOwnerStub#getTypeConstraintList() by stub 2014-05-21 15:37:57 +04:00
Pavel V. Talanov 5c0202c735 Stubs for JetTypeConstraintList 2014-05-21 15:37:56 +04:00
Pavel V. Talanov 3b5ee6fdf0 JetDeclaration#getModifierList() by stub
JetClass#getPrimaryConstructorModifierList() by stub
2014-05-21 15:37:55 +04:00
Pavel V. Talanov 97d19d4b16 Stubs for JetModifierList 2014-05-21 15:37:54 +04:00
Pavel V. Talanov 78c1717eed JetFile#getImportList() and JetImportList#getImports() by stubs 2014-05-21 15:37:53 +04:00
Pavel V. Talanov 2ab81d3b79 JetTypeParameterListOwnerStub#getTypeParameterList by stub 2014-05-21 15:37:52 +04:00
Pavel V. Talanov b19288cd47 Stubs for JetImportDirective 2014-05-21 15:37:51 +04:00
Pavel V. Talanov 684ead7b58 Stubs for JetImportList 2014-05-21 15:37:50 +04:00
Pavel V. Talanov 43e22ab5c1 Make JetSimpleNameExpression#getReceiverExpression extension function and move it to util class 2014-05-21 15:37:49 +04:00
Pavel V. Talanov e84eebec5b Make JetSimpleNameExpression a trait 2014-05-21 15:37:48 +04:00
Pavel V. Talanov 6413691c33 Rewrite JetSimpleNameExpression and inheritors to Kotlin 2014-05-21 15:37:47 +04:00
Pavel V. Talanov c2f28a16b4 Make JetReferenceExpression an interface 2014-05-21 15:37:46 +04:00
Pavel V. Talanov 00eabde4ec Make JetSimpleNameExpression abstract, create subclasses for each element type
It's not a good practice to have one PSI class to correspond to several element types
2014-05-21 15:37:45 +04:00
Andrey Breslav 5c1cb6cbd1 Minor. More specific return type 2014-05-21 15:26:05 +04:00
Andrey Breslav 773cb9efbe Signature comparison used to find super functions in SignaturesPropagationData
#KT-4509 Fixed
2014-05-21 15:26:05 +04:00
Andrey Breslav 44849f8504 Move JvmMethodSignature to frontend.java 2014-05-21 15:26:04 +04:00
Mikhael Bogdanov a622638e45 Code clean 2014-05-21 13:56:09 +04:00
Mikhael Bogdanov 6ad2814b01 Suppot inlining default methods, inlining function into its default. 2014-05-21 13:56:09 +04:00
Mikhael Bogdanov b3fef4a7a0 Substitute Call with JetElement in InliningContext to support default inlining (there is no call) 2014-05-21 13:56:08 +04:00
Mikhael Bogdanov 086208f7b9 Code clean 2014-05-21 13:56:08 +04:00
Mikhael Bogdanov d73ffc2f48 Diagnostic update to support default parameters in inline methods 2014-05-21 13:56:08 +04:00
Andrey Breslav 3bd1329846 Fix file name case 2014-05-21 13:38:08 +04:00
Andrey Breslav 269e4ae828 SwapBinaryExpression: implementation cleaned up, tests renamed
#KT-4868 Fixed
2014-05-21 12:56:43 +04:00
Lingzhang acf1dc1912 KT-4868 Bug Fix for Swap Binary Expression Intention 2014-05-21 12:56:39 +04:00
Natalia Ukhorskaya 7e66d67b95 EvaluateExpression: pass invokePolicy flag to eval4j 2014-05-21 12:26:58 +04:00
Natalia Ukhorskaya 51b95181f0 Eval4j: add invokePolicy flag to jdiEval 2014-05-21 12:26:58 +04:00
Alexander Udalov 9c04c9ea38 Fix stdlib tests on JVM
#KT-5064 Open
2014-05-21 02:04:36 +04:00
Alexander Udalov af3d56b44e Fix JVM type mapping of arrays of type variables
#KT-4262 Fixed
 #KT-5056 Fixed
2014-05-20 19:22:53 +04:00
Alexander Udalov 4e8d6d4882 Report ABI version errors before diagnostics and other errors
Otherwise they're difficult to find in the end of the compiler messages
2014-05-20 19:22:53 +04:00
Valentin Kipyatkov c56b5bfd61 Added 2 tests 2014-05-20 18:56:48 +04:00
Valentin Kipyatkov 5ce3df4845 KT-5025 Unnecessary qualifier inserted for class
#KT-5025 Fixed
2014-05-20 18:56:48 +04:00
Natalia Ukhorskaya 58b82baa2b Remove unnecessary error report from extract function 2014-05-20 16:12:55 +04:00
Natalia Ukhorskaya d263621ef5 Evaluate expression: refactor error messages 2014-05-20 16:12:53 +04:00
Natalia Ukhorskaya 47ecfd0f8d Evaluate expression: rethrow exceptions from evaluate expression 2014-05-20 15:38:14 +04:00
Svetlana Isakova cab8709f1c Rename: JetNodeTypes.LABEL_REFERENCE -> LABEL
There is LABEL_REFERENCE node in LabeledExpression, but it isn't a reference there
2014-05-20 15:07:03 +04:00
Svetlana Isakova e0f37bbef0 Generate parse error on label without name '@' 2014-05-20 15:07:03 +04:00
Svetlana Isakova f109cfc303 Replaced PrefixExpression with LabeledExpression
where labeled expression is used

Added 'visitLabeledExpression'
2014-05-20 15:07:02 +04:00
Svetlana Isakova 04729f5985 Added JetLabeledExpression; added support to parser 2014-05-20 15:07:01 +04:00
Svetlana Isakova f187c4f093 Minor: added annotation, used util method 2014-05-20 15:07:01 +04:00
Svetlana Isakova 07c0d87a8f Rename
JetLabelQualifiedExpression -> JetExpressionWithLabel
JetLabelQualifiedInstanceExpression -> JetInstanceExpressionWithLabel
2014-05-20 15:07:00 +04:00
Svetlana Isakova 9b70ab7d16 Removed AT, ATAT tokens
Checks 'in LABELS token set' replaced with LABEL_IDENTIFIER equality
2014-05-20 15:07:00 +04:00
Svetlana Isakova 012953529c Don't parse @, @@ as independent tokens
Regenerated lexer
2014-05-20 15:06:59 +04:00
Svetlana Isakova 69e5444ddf Added tests on labels
#KT-1703 Fixed
 #KT-361 Fixed
 #KT-3920 Fixed
 #KT-3988 Fixed
 #KT-4247 Fixed
 #KT-4586 Fixed
 #KT-4603 Fixed
 #KT-591 Fixed
2014-05-20 15:06:59 +04:00
Svetlana Isakova a02af7344e LabelResolver refactoring: rename public methods
resolveLabel -> resolveControlLabel
resolveThisLabel -> resolveThisOrSuperLabel
+ small improvements
2014-05-20 14:58:50 +04:00
Svetlana Isakova 8c8db832f1 LabelResolver refactoring: removed 'reportUnresolved' parameter 2014-05-20 14:58:50 +04:00
Svetlana Isakova 2952ff558a Made LabelResolver a singleton 2014-05-20 14:58:50 +04:00
Svetlana Isakova f3f2bf5123 Removed cache for labeled elements
Resolve labels on the fly
2014-05-20 14:58:50 +04:00