Commit Graph

16275 Commits

Author SHA1 Message Date
Pavel V. Talanov 72bdacb074 Add explicit return types to several test data files so that AST access is not needed
Test cases are chosen so that addition/removal of explicit type will not interfere with the original purpose of the test
2014-05-21 15:40:08 +04:00
Pavel V. Talanov a807712ce7 Mark test data files for cases which can't be resolved without AST access 2014-05-21 15:40:07 +04:00
Pavel V. Talanov fd3d322300 Add LazyResolveByStubTest
Tests that lazy resolve uses stubs instead of AST
2014-05-21 15:40:05 +04:00
Pavel V. Talanov 977f4ac070 Get parent by stub in ScopeProvider 2014-05-21 15:40:04 +04:00
Pavel V. Talanov 2f72731d85 Get parent by stub in DescriptorResolver 2014-05-21 15:40:04 +04:00
Pavel V. Talanov ba014552c8 Get parent by stub in LazyTypeParameterDescriptor 2014-05-21 15:40:03 +04:00
Pavel V. Talanov 97ad9320ad Get parent by stub in PsiCodegenPredictor 2014-05-21 15:40:02 +04:00
Pavel V. Talanov f15d363087 Do not invoke getDelegateExpression before it is needed 2014-05-21 15:40:01 +04:00
Pavel V. Talanov 5078be1564 JetFunctionTypeReceiver#getTypeReference() by stub 2014-05-21 15:40:00 +04:00
Pavel V. Talanov c7c9b5f584 JetEnumEntry#getDelegationSpecifiers() by stub 2014-05-21 15:39:59 +04:00
Pavel V. Talanov 77cb81f282 Stubs for JetInitializerList 2014-05-21 15:39:58 +04:00
Pavel V. Talanov 5ad1fac2b2 JetPropertyAccessor#isGetter(), isSetter(), hasBody(), getReturnTypeReference() by stub 2014-05-21 15:39:57 +04:00
Pavel V. Talanov b9aaab12d4 Introduce JetParameter#hasDefaultValue() and use it instead of getDefaultValue() where appropriate 2014-05-21 15:39:56 +04:00
Pavel V. Talanov 5bf5dfc5a4 Use hasInitializer() instead of getInitializer() in DescriptorResolver 2014-05-21 15:39:55 +04:00
Pavel V. Talanov b67b5f92f8 Remove AST query in DescriptorResolver#resolvePrimaryConstructorParameterToAProperty() 2014-05-21 15:39:54 +04:00
Pavel V. Talanov 24ffe3dbb9 Do not call getInitializer() for variables before it is needed when computing compile time constants 2014-05-21 15:39:53 +04:00
Pavel V. Talanov 9aba5beec7 Add hasInitializer() to JetWithExpressionInitializer interface 2014-05-21 15:39:52 +04:00
Pavel V. Talanov 6759d625f7 JetProperty#getAccessors() by stub 2014-05-21 15:39:51 +04:00
Pavel V. Talanov ada9845b5f JetProperty#getReceiverTypeRef() and getReturnTypeRef() by stub 2014-05-21 15:39:50 +04:00
Pavel V. Talanov abda0deac8 Stubs for JetPropertyAccessor 2014-05-21 15:39:49 +04:00
Pavel V. Talanov ba578422cd Add hasReceiverTypeRef() and hasReturnTypeRef() to PsiJetPropertyStub 2014-05-21 15:39:48 +04:00
Pavel V. Talanov 86ac8bbd65 Use stubs in has* methods of JetProperty 2014-05-21 15:39:47 +04:00
Pavel V. Talanov 736465f1c6 Add hasDelegate(), hasDelegateExpression() and hasInitializer() to PsiJetPropertyStub 2014-05-21 15:39:46 +04:00
Pavel V. Talanov a61ab440d7 Extract JetProperty#hasInitializer() and use it where appropriate 2014-05-21 15:39:45 +04:00
Pavel V. Talanov 58651d02c2 Extract JetProperty#hasDelegate() and hasDelegateExpression() and use it where appropriate 2014-05-21 15:39:44 +04:00
Pavel V. Talanov e424b89d82 Extract JetProperty#hasDelegateExpressionOrInitializer() and use it where appropriate 2014-05-21 15:39:43 +04:00
Pavel V. Talanov c14843bc49 Remove unused fields and redundant constructor from PsiJetPropertyStubImpl 2014-05-21 15:39:42 +04:00
Pavel V. Talanov bfd5489e90 Rewrite DescriptorResolver#checkParameterHasNoModifier() to avoid accessing tree before illegal modifier is detected 2014-05-21 15:39:41 +04:00
Pavel V. Talanov 904e2fe1fc JetAnnotation#getEntries() by stub 2014-05-21 15:39:40 +04:00
Pavel V. Talanov 40311144f4 JetTypeConstraint#getBoundTypeReference() by stub 2014-05-21 15:39:39 +04:00
Pavel V. Talanov 31bebf924a JetTypeConstraint#getStubTypeParameterName() and isClassObjectConstraint() by stub 2014-05-21 15:39:38 +04:00
Pavel V. Talanov cbbcb861bb JetTypeConstraintList#getConstraints() by stub 2014-05-21 15:39:37 +04:00
Pavel V. Talanov dce4d259d9 Stubs for JetTypeConstraint 2014-05-21 15:39:36 +04:00
Pavel V. Talanov 9aa5681d80 Introduce JetParameter#hasValOrVarNode() and use it instead of getValOrVarNode() 2014-05-21 15:39:35 +04:00
Pavel V. Talanov 26452c845c Positioning strategy used in "conflicting upper bounds" error messages 2014-05-21 15:39:34 +04:00
Pavel V. Talanov 94270e3486 Use stubs in JetAnnotationEntry#getValueArgumentList() 2014-05-21 15:39:33 +04:00
Pavel V. Talanov f0a36ae4e0 Add hasValueArguments() to PsiJetAnnotationEntryStub 2014-05-21 15:39:32 +04:00
Pavel V. Talanov 12d701b071 JetAnnotationEntry#getCalleeExpression() by stub 2014-05-21 15:39:31 +04:00
Pavel V. Talanov 46d2d95de6 JetConstructorCalleeExpression#getTypeReference() by stub 2014-05-21 15:39:30 +04:00
Pavel V. Talanov 8b95fd1d0c JetDelegatorToSuperCall#getCalleeExpression() by stub 2014-05-21 15:39:29 +04:00
Pavel V. Talanov 029a792165 JetNullableType#getInnerType() by stub 2014-05-21 15:39:28 +04:00
Pavel V. Talanov 3dbc77c809 Stubs for JetConstructorCalleeExpression 2014-05-21 15:39:27 +04:00
Pavel V. Talanov f22e9e185a Move utility to JetStubbedPsiUtil
Extract utility to obtain child of several possible element types
2014-05-21 15:39:26 +04:00
Pavel V. Talanov b08f37345e JetDelegationSpecifier#getTypeReference() by stub 2014-05-21 15:39:25 +04:00
Pavel V. Talanov e5cec5aaeb JetDelegationSpecifierList#getDelegationSpecifiers() by stub 2014-05-21 15:39:24 +04:00
Pavel V. Talanov 5d8d743600 JetObjectDeclaration#getBody() by stub 2014-05-21 15:39:23 +04:00
Pavel V. Talanov ea42b77cdb JetObjectDeclaration#getDelegationSpecifierList() by stub 2014-05-21 15:39:22 +04:00
Pavel V. Talanov e4ab5b93b1 Retrieve containing class for JetClassObject by stub in ResolveSession#getClassObjectDescriptor() 2014-05-21 15:39:21 +04:00
Pavel V. Talanov cb4dadb9aa Retrieve JetClassObject element by stub in ResolveSession#getClassDescriptor() 2014-05-21 15:39:20 +04:00
Pavel V. Talanov faa7f8fc6b Add util class for stubbed PSI
Implement methods to find parent by stub
2014-05-21 15:39:19 +04:00