Commit Graph

1270 Commits

Author SHA1 Message Date
Stepan Koltsov 40c0bd9d89 Revert "frontend: base class for JetScope implementations"
This reverts commit b33fc76c12.
2012-06-18 20:42:46 +04:00
Stepan Koltsov 5e1e685d69 Revert "jdr: properly fetch supertype member names"
This reverts commit 9b13a308f8.
2012-06-18 20:42:33 +04:00
Stepan Koltsov a1dfcfc55d Revert "frontend: optimize DescriptorPredicate.asNamePredicate"
This reverts commit 554a54bcc5.
2012-06-18 20:42:16 +04:00
Stepan Koltsov 3533107cfe Revert "move filtering logic to NamePredicateUtils"
This reverts commit e7d957436b.
2012-06-18 20:41:58 +04:00
Stepan Koltsov e7d957436b move filtering logic to NamePredicateUtils 2012-06-17 05:55:24 +04:00
Stepan Koltsov 554a54bcc5 frontend: optimize DescriptorPredicate.asNamePredicate 2012-06-17 05:55:24 +04:00
Stepan Koltsov 9b13a308f8 jdr: properly fetch supertype member names
previous implementation relied on Idea PSI resolver that doesn't
work well in certain situations
2012-06-17 05:28:01 +04:00
Stepan Koltsov b33fc76c12 frontend: base class for JetScope implementations 2012-06-17 05:28:01 +04:00
Stepan Koltsov a95cc798a2 remove JetStandardLibrary dependency from jvm backend 2012-06-17 03:53:12 +04:00
Stepan Koltsov 0c73115911 getContainigDeclaration cannot be null for all descriptors except ModuleDescriptor
Get rid of lot of warnings
2012-06-17 03:53:10 +04:00
Stepan Koltsov b9c8637b47 intrinsics methods are only callables 2012-06-17 03:53:10 +04:00
Stepan Koltsov 49178e6cff remove constructor parameter of JavaNamespaceDescriptor 2012-06-17 00:40:41 +04:00
Stepan Koltsov 1ce24b10cc FqName*.equalsTo, type safe unlike equals 2012-06-17 00:27:44 +04:00
Evgeny Gerashchenko 773cfbaec5 DescriptorRenderer should render visibility for constructors. 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko 075f0bb4b9 Setter should not be created for val property defined in class constructor. 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko 221e412ba7 Visibilities of property accessors were not resolved for properties overriding others. They had "internal" visibility after analysis passed. 2012-06-16 14:36:05 +04:00
Stepan Koltsov 5e2521046c add JetScope.getAllDescriptors for KDoc 2012-06-16 07:34:35 +04:00
Stepan Koltsov 65b74a19b4 use the power of DescriptorPredicate in completion 2012-06-16 06:44:17 +04:00
Stepan Koltsov 010db0495b smarter JavaClassOrPackageScope#getAllDescriptors 2012-06-16 06:44:16 +04:00
Stepan Koltsov a87f3e2a45 jdr: merge resolveMethod* methods, use DescriptorPredicate 2012-06-16 06:44:16 +04:00
Stepan Koltsov 4d229144cf smarter WritableScopeImpl.getAllDescriptors 2012-06-16 06:44:15 +04:00
Stepan Koltsov 3a9f6c0928 DescriptorMatcher 2012-06-16 06:44:15 +04:00
Stepan Koltsov 7116beb95a JetScope.get* return Collection, not Set 2012-06-16 06:44:12 +04:00
Stepan Koltsov c64dd90087 WritableScopeImpl should not check descriptor uniqueness 2012-06-16 02:45:56 +04:00
Stepan Koltsov 8b83c3f7cf descriptors in WritableScopeImpl are not ordered 2012-06-16 02:45:52 +04:00
Stepan Koltsov 4657567484 check state in WriteableScopeImpl
(nothing is written to allDescriptor after getAllDescriptors fetched)
2012-06-16 02:24:11 +04:00
Stepan Koltsov 5f1f854293 JavaDescriptorResolver: resolve constructors lazily
This speeds up analyze a bit (profiler shown about 10% of time
spent in constructor resolver during completion in KDoc).
2012-06-16 00:22:23 +04:00
Stepan Koltsov 8d1ef3ee6b frontend: do not set FunctionDescriptorImpl.returnValue more than once 2012-06-16 00:22:23 +04:00
Stepan Koltsov 3fd757e097 ClassDescriptor.getConstructor returns Collection 2012-06-16 00:22:23 +04:00
Stepan Koltsov 0b697847b2 ClassDescriptorFromSoruce
getUnsubstitutedPrimaryConstructor is needed only when analyzing source.
Primary constructor only exists in source code.
2012-06-16 00:22:22 +04:00
Nikolay Krasko 508759ca8b Jet class contributor. Contributes everything that can't be produced with Java. 2012-06-15 21:31:21 +04:00
Alexander Udalov 3e3b184ba8 create copy of typeInfo set in DataFlowInfo.or 2012-06-15 19:29:38 +04:00
Svetlana Isakova b940c1efc1 Merge pull request #75 from udalov/JetTypeInfo
JetTypeInfo
2012-06-15 06:13:58 -07:00
Alexander Udalov 3660d51f34 fix DataFlowInfo.equate 2012-06-15 17:06:55 +04:00
Alexander Udalov b2c42f4cc9 fix DataFlowInfo.or 2012-06-15 17:06:53 +04:00
Alexander Udalov d454086f28 calculate commonDataFlowInfo in visitWhenExpression 2012-06-15 17:06:52 +04:00
Alexander Udalov 650cc4ce40 delete get/setResultingDataFlowInfo 2012-06-15 17:06:49 +04:00
Alexander Udalov d377a7c070 change dataFlowInfo after do-while loop 2012-06-15 17:06:47 +04:00
Alexander Udalov b97d44c480 change dataFlowInfo after while loop 2012-06-15 17:06:46 +04:00
Alexander Udalov f5bb00240a change dataFlowInfo after if-then-else construction 2012-06-15 17:06:44 +04:00
Nikolay Krasko 3c1fb3951b Move IfNotParsed interface to separate class 2012-06-15 16:20:03 +04:00
Nikolay Krasko 0171e528da Stubs - remove unnecessary interface extending 2012-06-15 16:18:26 +04:00
Nikolay Krasko 33ecb68c27 Stubs:
- Activate stub behaviour for named functions
- Move information about stubs implementation to the suffix of class names
2012-06-15 16:07:14 +04:00
Nikolay Krasko 98f0919c3d Stubs - Make JetClass use stub base element 2012-06-15 16:07:12 +04:00
Nikolay Krasko e3e1219147 Stubs - Remove usage of JetExpressionImpl where interface should be used 2012-06-15 16:07:12 +04:00
Nikolay Krasko eb135ee81d Stubs - Extract interface for JetTypeParameterListOwner. Old implementation renamed to JetNotStubbedParameterListOwner. 2012-06-15 16:07:11 +04:00
Nikolay Krasko 7b5c9af33c Stubs - Extract interface for JetNamedDeclaration. Old implementation renamed to JetNotStubbedNamedDeclaration. 2012-06-15 16:07:10 +04:00
Nikolay Krasko 0d87012783 Stubs - Extract interface for JetDeclaration 2012-06-15 16:07:08 +04:00
Nikolay Krasko c159bc3a8c Stubs - Extract interface for JetElement and JetExpression (Stub psi element should extend StubBasedPsiElementBase but JetElement extended ASTWrapperPsiElement) 2012-06-15 16:07:07 +04:00
Alexander Udalov c3420e864e get resulting DataFlowInfo from JetTypeInfo instead of facade 2012-06-15 16:05:45 +04:00