Andrey Breslav
fe9de64487
Enabling creating different descriptors for different Java classes
2014-05-21 23:31:32 +04:00
Andrey Breslav
bee4dbc672
Error types should not be compared by FqName
2014-05-21 23:31:32 +04:00
Andrey Breslav
a66f44e4f5
TypeConstructor's equality for classes relies on FqNames
...
This is needed because different modules/libraries may define classes with the same FqNames, which may be identical or slightly different.
Such classes must be considered equal, because your dependencies may rely on different packagings of the same codebase, and the classes there will be distinct though identical
(think intellij-core vs idea-full).
2014-05-21 23:31:32 +04:00
Andrey Breslav
f714382bd8
ErrorClassDescriptor moved to ErrorUtils
2014-05-21 23:31:31 +04:00
Pavel V. Talanov
e2efae3f46
Fix copying filename raising an exception
...
#KT-4990 Fixed
2014-05-21 19:21:50 +04:00
Natalia Ukhorskaya
903f262a79
Rewrite suppressing visibility errors for debugger
2014-05-21 18:37:51 +04:00
Pavel V. Talanov
2f878c1b69
Increase stub version before pushing to master
2014-05-21 16:51:03 +04:00
Pavel V. Talanov
c8a9381904
Minor: reformat JetStubElementTypes
...
After a series of messy merges :(
2014-05-21 16:51:01 +04:00
Pavel V. Talanov
b4b24262a0
Build stubs for insides of local objects and classes
2014-05-21 16:50:59 +04:00
Pavel V. Talanov
e33144f89a
Define toString() for stub impl classes via reflection
...
Update outdated test data for stub builder test
2014-05-21 16:50:55 +04:00
Pavel V. Talanov
ab4d4a309a
Remove redundant isAnnotation(), isEnum() and isInner() from PsiJetClassStub
2014-05-21 15:40:45 +04:00
Pavel V. Talanov
f5495a21d2
Minor: rename and move constant
2014-05-21 15:40:44 +04:00
Pavel V. Talanov
ed7e3b558a
Array factory used in JetDotQualifiedExpression
2014-05-21 15:40:43 +04:00
Pavel V. Talanov
0a576995c7
Use getDebugText() in LazyImportScope
2014-05-21 15:40:42 +04:00
Pavel V. Talanov
15574a2026
Store fqName as StringRef in PsiJetParameterStub
2014-05-21 15:40:41 +04:00
Pavel V. Talanov
dee1437d92
Use stub in JetImportDirective#isValidImport()
2014-05-21 15:40:40 +04:00
Pavel V. Talanov
2858552ba2
Add isValid() to PsiJetImportDirectiveStub
2014-05-21 15:40:39 +04:00
Pavel V. Talanov
fedbe424df
Use getDebugText() in AnalyzingUtils
2014-05-21 15:40:38 +04:00
Pavel V. Talanov
d50c50c0ec
Use getDebugText() in CallMaker
2014-05-21 15:40:37 +04:00
Pavel V. Talanov
ef4c15a2c8
Implement getDebugText() which should be used instead of getText() for debug purposes
2014-05-21 15:40:36 +04:00
Pavel V. Talanov
409f677559
Move getImportPath and related utils from JetPsiUtil to JetImportDirective
2014-05-21 15:40:35 +04:00
Pavel V. Talanov
c8d2bda880
Add visitJetConstructorCalleeExpression to visitors
2014-05-21 15:40:34 +04:00
Pavel V. Talanov
69890bd6ec
Refactor: Store token in JetProjectionKind
2014-05-21 15:40:33 +04:00
Pavel V. Talanov
bf20377759
Remove redundant field and constructor from PsiJetTypeParameterStubImpl
2014-05-21 15:40:32 +04:00
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