Commit Graph

493 Commits

Author SHA1 Message Date
Nikolay Krasko 38256d3240 toString() for filter 2014-11-17 16:15:21 +03:00
Valentin Kipyatkov b13c0f2248 Renamed methods 2014-11-12 21:57:50 +03:00
Valentin Kipyatkov 5f5d2de5e0 Moved KindFilter and DescriptorKindExclude out of JetScope, moved constants as well and renamed them 2014-11-12 21:57:49 +03:00
Valentin Kipyatkov 8e992abe58 Minor 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 25d8db37db Completion optimizations: do not search classes in java package when no SAM-constructors needed or when only singleton classifiers needed 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 95b3885aa5 Refactored filtering by descriptor kind so that no knowledge about SAM-constructors required in core 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 048d34b964 Minor changes after code review 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov fe5dbbf9b3 More efficient code completion + fixed a few bugs 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov 6f2da4930a Descriptor kind filter replaced with bit mask 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov 43df891515 More precise descriptor kind filtering (preparing to optimize smart completion) 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov 8d02c58e0a Added name filter to PackageFragmentProvider.getSubPackagesOf but do not know how to use it actually 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov d2d7529d9f Split file with 3 classes into 3 files 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov e51993d339 LazyPackageFragmentScopeForJavaPackage uses name filter in getDescriptors() for methods and properties as well 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov c7527e4a4d Name filters filter by Name instead of String 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov 8b2f6007c2 Minor 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov b08e444aa0 LazyPackageFragmentScopeForJavaPackage uses name filter in getDescriptors() for classes 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov 5059ae5182 Removed kotlin.Boolean qualification 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov 2f9b8a21ce LazyPackageFragmentScopeForJavaPackage uses filters in getDescriptors() and does not cache it 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov f8b278464e Minor code editings 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov 1983a9f3da Replaced usages of JetScope.getAllDescriptors() with JetScope.getDescriptors() (where makes sense) 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov 760b9c4389 Added JetScope.getDescriptors(nameFilter, kindFilter) but the filters are never used yet 2014-11-12 21:24:55 +03:00
Alexander Udalov eb96b97bc8 Get rid of underscores in private property names
They were used to workaround duplicate signature errors, but this is no longer
relevant since no accessors are generated for private properties with backing
fields
2014-11-11 18:35:37 +03:00
Alexander Udalov 66d27fad13 Move utilities out of 'core' to where they are used 2014-11-11 18:10:42 +03:00
Alexander Udalov d3f210f73c Move SAM resolution to frontend.java 2014-11-11 18:10:42 +03:00
Alexander Udalov 0b6bb38bb3 Move SAM function type calculation to SamConversionResolver 2014-11-11 18:10:42 +03:00
Alexander Udalov 344c6f0b3f Move SAM adapter resolution logic to SamConversionResolver 2014-11-11 18:10:41 +03:00
Alexander Udalov ae78b0e216 Minor, merge two sematically identical functions 2014-11-11 18:10:41 +03:00
Alexander Udalov 4350da5f24 Extract SAM constructor resolution logic to a component 2014-11-11 18:10:40 +03:00
Nikolay Krasko c242665cd3 Extract isCompatibleAbiVersion from kinds enum and store read kinds even for incompatible version 2014-11-11 17:33:13 +03:00
Andrey Breslav 4892369cf4 Diagnostic tests are logging their lazy activity 2014-11-10 17:24:04 +02:00
Andrey Breslav adafd70730 Abstract lazy type moved to descriptors 2014-11-08 15:51:41 +02:00
Valentin Kipyatkov 72e0546fde Converted JavaPackage and its implementation to Kotlin 2014-11-05 21:42:15 +03:00
Valentin Kipyatkov e2e7210b37 Converted DeserializedPackageMemberScope to Kotlin 2014-11-05 21:42:14 +03:00
Valentin Kipyatkov c2a3fde969 Converted JetScope to Kotlin 2014-11-05 21:42:12 +03:00
Nikolay Krasko 7e1546d3e7 Merge stored empty lists and sets to singe object 2014-11-02 14:55:00 +03:00
Andrey Breslav 60ff2df597 Memory optimization: Do not retain LinkedHashSets in caches
LinkedHashSets are replaced with tight ArrayLists
2014-11-01 13:38:24 +02:00
Andrey Breslav a14eefcea3 KT-6077 Compiler does not issue error on unsafe access to ArrayList with nullable values
#KT-6077 Fixed
2014-10-22 00:41:20 +04:00
Alexander Udalov f632a34959 Delete unused JavaSignatureFormatter 2014-10-17 21:27:21 +04:00
Andrey Breslav b1e452b568 type unescaped in *.kt files 2014-10-14 13:02:13 +04:00
Andrey Breslav b20439027c Advancing ABI version
Related changes:
 - serialization of flexible types supported
 - Intrinsics.checkExpressionValueIsNotNull() added
2014-10-13 15:38:23 +04:00
Andrey Breslav f1675a9162 Minor. Getters replaced by properties 2014-10-13 15:38:21 +04:00
Andrey Breslav 070a7d4d72 Serialization of flexible types supported 2014-10-13 15:38:20 +04:00
Andrey Breslav 013dd7261e Extensible specificity expressed as a type capability 2014-10-13 15:38:11 +04:00
Andrey Breslav 91b0b83ec3 Java declaration annotations are treated as type annotations
This is needed, for example, to approximate flexible types correctly when rendering them in the code
2014-10-13 15:38:06 +04:00
Andrey Breslav 220c360081 Null-aware types introduced
Flexible types should drive their own conversions to nullable/not-null
2014-10-13 15:37:58 +04:00
Andrey Breslav 969beb7898 Account for substitutions of one variable for another (it must remain a variable) 2014-10-13 15:37:57 +04:00
Andrey Breslav 583694a450 Flexible types for primitive arrays 2014-10-13 15:37:54 +04:00
Andrey Breslav dd2e95b3bc Substitution implemented for flexible occurrences of Java type parameters 2014-10-13 15:37:52 +04:00
Andrey Breslav bf53222bd9 Flexible types in SAM conversions 2014-10-13 15:37:51 +04:00
Andrey Breslav 2529bb24d1 Don't create flexible types for ".class" expressions in annotation arguments 2014-10-13 15:37:51 +04:00