Commit Graph

3849 Commits

Author SHA1 Message Date
Mikhael Bogdanov d73ffc2f48 Diagnostic update to support default parameters in inline methods 2014-05-21 13:56:08 +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 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
Svetlana Isakova 3bcdbee2bf Removed LabelName class, used Name instead 2014-05-20 14:58:49 +04:00
Alexander Udalov 54a44b1533 Introduce AbstractTypeParameterDescriptor
- pull the logic up from TypeParameterDescriptorImpl and
  AbstractLazyTypeParameterDescriptor (it was mostly duplicated)
- delete some unused methods
2014-05-19 19:50:59 +04:00
Alexander Udalov 31e8622471 Remove suspicious JetTypeImpl constructors
Most of the time they were used for classes without type parameters, and
getDefaultType() is supposed to be used there (additionally it may be cached)
2014-05-19 19:50:59 +04:00
Alexander Udalov 3ffa7cdcf8 Minor optimization in KotlinBuiltIns.isSpecialClassWithNoSupertypes 2014-05-19 19:50:58 +04:00
Alexander Udalov 5fdb9e6218 Change logic of loading "suppress" annotation class descriptor
Instead of loading the descriptor and checking equals(), we now check if the
annotation is in fact "suppress" by simply comparing its FQ name. This allows
us to suppress warnings while compiling built-ins: the problem is that
built-ins have its own "suppress" annotation class (defined in the sources)
which differs from the one loaded by the compiler (from kotlin-compiler.jar)
2014-05-19 19:50:58 +04:00
Alexander Udalov 845e3323f9 Create error type if reflection class isn't found
Introduce a new diagnostic fired when reflection types aren't found in the
classpath
2014-05-19 19:50:57 +04:00
Alexander Udalov 0c2c203e96 Move KFunctionN classes to package "kotlin.reflect" 2014-05-19 19:50:57 +04:00
Alexander Udalov c1cd8bf069 Use module instead of KotlinBuiltIns in ReflectionTypes 2014-05-19 19:50:56 +04:00
Alexander Udalov b27b8bf8b2 Extract DescriptorUtils.getContainingModule() 2014-05-19 19:50:56 +04:00
Nikolay Krasko 5839fda22f Fix recovery in enum initializers 2014-05-16 17:09:56 +04:00
Nikolay Krasko ad0e6dadf4 Minor: code clean up 2014-05-16 17:09:55 +04:00
Mikhael Bogdanov 30e921fa89 Diagnostic: support anonymous objects in inline functions 2014-05-16 15:55:11 +04:00
Natalia Ukhorskaya 9785c15736 Minor: rename 2014-05-15 17:19:12 +04:00
Natalia Ukhorskaya fd8d292c02 Add getSignificantElement method in JetCodeFragment 2014-05-15 13:54:27 +04:00
Natalia Ukhorskaya 0677075335 Parser for JetBlockCodeFragment 2014-05-15 13:54:25 +04:00
Natalia Ukhorskaya 787f428133 Minor: make properties private 2014-05-15 13:54:24 +04:00
Natalia Ukhorskaya a0549f0ff5 Evaluate expression: allow to call invisible members
#KT-4935 Fixed
2014-05-15 13:54:22 +04:00
Natalia Ukhorskaya 5237674139 Make call return JetElement instead of PsiElement 2014-05-15 13:54:22 +04:00
Andrey Breslav aa20af3cf3 Minor. Unused code removed
Follow-up for https://github.com/JetBrains/kotlin/commit/db00500404e4862548ed5eb49f7289e1e8eba99c#commitcomment-6242775
2014-05-12 19:02:17 +04:00
Alexander Udalov 7c44938151 Drop unused AnalyzerFacadeForEverything 2014-05-12 18:03:02 +04:00
Alexey Sedunov 5fc1725b33 Extract Function: Type parameters inference 2014-05-12 12:55:02 +04:00
Alexander Udalov c7277250d9 Use ReflectionTypes instead of KotlinBuiltIns in type checker 2014-05-08 16:45:15 +04:00
Alexander Udalov 6004c6cefe Introduce ReflectionTypes, use it in JVM back-end
Make FunctionTypesUtil a component
2014-05-08 16:45:14 +04:00
Valentin Kipyatkov d781626201 Smart completion: only overloads with all previous arguments matched are considered 2014-05-07 22:50:21 +04:00
Alexander Udalov 42d167d17e Add missing copyrights across the project 2014-05-05 20:43:35 +04:00
Alexander Udalov b7746cbee7 Move module 'serialization' to core/ 2014-05-05 20:43:34 +04:00
Natalia Ukhorskaya 98532f321d Evaluate expression: add ability to import class 2014-05-05 16:12:38 +04:00
Natalia Ukhorskaya 3f95cdb7bb Return firstChildNode for codeFragments in doParseContents as expected 2014-05-05 16:12:36 +04:00
Natalia Ukhorskaya 54cc5d1440 Make JetCodeFragment implements JavaCodeFragment 2014-05-05 16:12:35 +04:00
Natalia Ukhorskaya 876878a54c Delete interface for JetTypeCodeFragmentImpl 2014-05-05 16:12:33 +04:00
Natalia Ukhorskaya 8bbbe8f0f6 Convert JetCodeFragment to Kotlin 2014-05-05 16:12:32 +04:00
Natalia Ukhorskaya eb8b5c0823 Remove interface for JetExpressionCodeFragment 2014-05-05 16:12:30 +04:00
Natalia Ukhorskaya 429be58685 Rename JetCodeFragmentImpl to JetCodeFragment 2014-05-05 16:12:29 +04:00
Andrey Breslav f64f792ede CompositeBindingContext introduced 2014-04-30 18:04:21 +04:00
Andrey Breslav db00500404 Unused code removed 2014-04-30 16:30:17 +04:00
Svetlana Isakova b33147d3eb Do not complete type inference for all candidates for inner calls 2014-04-30 13:34:35 +04:00
Svetlana Isakova 3df6eb8ffa Refactored ResolutionResultsCacheImpl
Used map instead of trace to store data
Rewrote it to Kotlin
2014-04-30 13:34:34 +04:00