Pavel V. Talanov
c9193818e7
Remove unused PsiJetFunctionStub#getAnnotations()
2014-05-21 15:40:31 +04:00
Pavel V. Talanov
c9eb313ec4
Add MultiFileHighlightingTest which checks that other files are not parsed during highlighting
2014-05-21 15:40:30 +04:00
Pavel V. Talanov
b3898cfb0d
Force the user of AstAccessControl to write at least one test violating restriction, implement such tests for existing tests
...
This is needed because the slightest change in the test setup can make the check useless without the client knowing
The solution is ugly but gives at least some protection against this
2014-05-21 15:40:29 +04:00
Pavel V. Talanov
071553c66b
Extract and use ModifiersChecker#reportIllegalModifiers()
2014-05-21 15:40:28 +04:00
Pavel V. Talanov
4e9103f7ab
Remove redundant PsiJetParameterStub#isVarArg()
2014-05-21 15:40:27 +04:00
Pavel V. Talanov
dd92132eff
Make JetPackageDirective extend JetModifierListOwnerStub
...
Simplify check in DeclarationsChecker to avoid AST access
2014-05-21 15:40:26 +04:00
Pavel V. Talanov
ce68fe93f6
Use stubs to get parent in DiagnosticsWithSuppression
2014-05-21 15:40:25 +04:00
Pavel V. Talanov
64731e526d
Rename JetStubbedPsiUtil#getContainingDeclaration(PsiElement, Class, boolean) to getPsiOrStubParent
2014-05-21 15:40:24 +04:00
Pavel V. Talanov
fd280abcce
JetClassBody#getAllClassObjects() by stub
2014-05-21 15:40:23 +04:00
Pavel V. Talanov
e42e923d4e
JetPackageDirective#getPackageNameExpression() by stub
2014-05-21 15:40:22 +04:00
Pavel V. Talanov
b7c1054198
JetFile#getPackageDirective() by stub
2014-05-21 15:40:21 +04:00
Pavel V. Talanov
760b5e8d3b
JetClassBody#getProperties() by stub
2014-05-21 15:40:20 +04:00
Pavel V. Talanov
f83bcf47b7
Get enclosing property for property accessor by stub in ScopeProvider
2014-05-21 15:40:19 +04:00
Pavel V. Talanov
3099ca6501
Stubs for dot qualified expression built inside package directive
2014-05-21 15:40:18 +04:00
Pavel V. Talanov
0eebdfcd7b
Fix positioning strategy for OVERRIDING_FINAL_MEMBER
...
Remove unneeded call to AST
2014-05-21 15:40:17 +04:00
Pavel V. Talanov
cf015f2526
Stubs for JetPackageDirective
2014-05-21 15:40:16 +04:00
Pavel V. Talanov
16f4477c38
JetClass#isLocal() by stub
2014-05-21 15:40:15 +04:00
Pavel V. Talanov
8354233f85
Add multi file test for completion of enum entry
2014-05-21 15:40:14 +04:00
Pavel V. Talanov
4c39886edc
Minor: fix test data
2014-05-21 15:40:13 +04:00
Pavel V. Talanov
e10a0cca59
JetObjectDeclaration#isLocal() by stub
2014-05-21 15:40:13 +04:00
Pavel V. Talanov
fbf2cded0d
Refactor AbstractMultiFileJvmBasicCompletionTest to extend CompletionTestCase
...
Extract common code from JetFixtureCompletionBaseTestCase to CompletionTestUtil.kt
Reason for this change is that I couldn't get the check that prohibits tree loading to work with fixture test case
2014-05-21 15:40:12 +04:00
Pavel V. Talanov
1bc4872baf
Avoid accessing stubs in JetFileStubBuilder
...
Probable fix of SOE in file stub building
2014-05-21 15:40:10 +04:00
Pavel V. Talanov
1f5b0b5abb
Minor: use getBody() in JetObjectDeclaration instead of obtaining it manually
2014-05-21 15:40:10 +04:00
Pavel V. Talanov
0d4feb3bf3
JetInitializerList#getInitializers() by stub
2014-05-21 15:40:09 +04:00
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