Commit Graph
311 Commits
Author SHA1 Message Date
Alexey Kudravtsev 511fa66cb1 reverted optimisation mentioned in IDEA-CR-16603 2016-12-08 15:07:54 +03:00
Alexey Kudravtsev d41140dcb9 optimisation: accessor can be referenced by its simple property name from non-java sources only (optimises getName() search) 2016-12-06 12:40:00 +03:00
peter 83761b1adf parse only needed parts in JavaNullMethodArgumentIndex and JavaFunctionalExpressionIndex (IDEA-CR-16298) 2016-11-30 14:20:47 +01:00
Roman Shevchenko cfffd966fb [java] resolve into multi-release modular libs 2016-11-29 15:04:19 +01:00
Vladimir Krivosheev 00c58fd4a8 cleanup — deprecate ModuleRootAdapter 2016-11-29 11:24:16 +01:00
Dmitry Batkovich bf442c391b java null argument index: always ignore test sources (IDEA-161270) 2016-11-28 13:11:00 +03:00
peter abe7643b32 revert JavaNullMethodArgumentIndex and JavaFunctionalExpressionIndex
repeated findElementAt calls don't reuse previously parsed chameleons
2016-11-27 12:33:20 +01:00
peter 919189979f parse only needed parts in JavaNullMethodArgumentIndex and JavaFunctionalExpressionIndex 2016-11-26 14:57:28 +01:00
Anna.Kozlova 87d9169d09 postpone check for accessible to prevent access to another (lombok) index (IDEA-159135) [^peter] 2016-11-23 11:53:29 +01:00
Dmitry Batkovich 65bb27d0e0 JavaNullArgumentIndex: fix for NPE on literal value extraction (EA-90268) 2016-11-02 12:57:27 +03:00
peter 2e19f144ed make JavaFunctionalExpressionIndex.getCalledMethodName private 2016-10-31 13:53:49 +01:00
Dmitry Batkovich 5bfddbb3f6 javac ast indices: inheritor/lambda search: cache only candidate's ids (in read action) and restore psi-elements only when a search client asks 2016-10-31 15:13:00 +03:00
Dmitry Batkovich e7705e5bba javac ast indices: de-generify to avoid possible CCE in service 2016-10-27 11:00:47 +03:00
Dmitry Batkovich 4901e1fc85 use ContainerUtil.process 2016-10-27 10:29:36 +03:00
peter b7c4e04a61 make NullityInference traverse light AST 2016-10-26 12:45:39 +02:00
Dmitry Batkovich 790e0f6480 function expression searcher: find most likely files only among of files where occurrences was found. method names should be found in sam-class use-scope (follow-up 4c72b12) 2016-10-25 19:38:23 +03:00
Dmitry Batkovich 1cb5141dbe revert redundant Project argument since getFilesToSearchInPsi() is accessed only in EDT 2016-10-24 17:54:33 +03:00
Dmitry Batkovich 4c72b12c6a function expression searcher: find most likely files only among of files where occurrences was found 2016-10-24 17:47:31 +03:00
Dmitry Batkovich ad29e453ac javac ast indices: do not search java direct inheritors for unknown language classes (AssertionError fixed) 2016-10-18 19:06:25 +03:00
Dmitry Batkovich 8b5963e5e5 javac ast indices: rename registry property 2016-10-17 21:34:36 +03:00
Dmitry Batkovich 1bc12672eb Merge branch 'db/javac-ast'
# Conflicts:
#	platform/util/resources/misc/registry.properties
2016-10-17 19:05:41 +03:00
Dmitry Batkovich fd9cde8660 javac ast indices: search for lambda expressions; version #2 (with lambda hierarchy) 2016-10-17 18:27:26 +03:00
Roman Shevchenko 156a98a67b [java] automatic modules 2016-10-14 19:08:29 +02:00
Alexey Kudravtsev ffa76a55d0 removed UnusedDeclaration suppression from deprecated members since their usages are ignored anyway now 2016-10-13 12:38:08 +03:00
Dmitry Batkovich 406304a272 javac indices: add missing read actions 2016-10-12 22:17:38 +03:00
Dmitry Batkovich cfbaa260fe direct inheritor search with javac indices: do not forget of classes declared in method body (when internal is A$1Name) 2016-10-12 19:19:42 +03:00
Dmitry Batkovich bc7bbf4866 search java direct inheritors using javac indices (initial): do not process lots of non-direct inheritors for library classes (IDEA-CR-14364) 2016-10-12 02:01:14 +03:00
Dmitry Batkovich 53c37a01a7 search java direct inheritors using javac indices: always use stubs to find classes by their internal names (IDEA-CR-14364) 2016-10-11 23:46:51 +03:00
Dmitry Batkovich d0fdbafa51 search java direct inheritors using javac indices: add javadoc (IDEA-CR-14364) 2016-10-11 23:43:48 +03:00
Dmitry Batkovich 81150c65e9 search java direct inheritors using javac indices: prettify JavaDirectInheritorSearcher (IDEA-CR-14364) 2016-10-11 23:43:41 +03:00
Dmitry Batkovich 6ac8c32b13 extract BaseExternalAnnotationsManager#preferCompilerElement to PsiUtil (IDEA-CR-14364) 2016-10-11 23:38:45 +03:00
Dmitry Batkovich 9f842c25a6 search java direct inheritors using javac indices (initial):
* use only one search adapter
* resolve anonymous child classes (e.g A$2$B)
* lazy iterate over candidates
2016-10-10 22:16:59 +03:00
Dmitry Batkovich 672ed0ac68 search java direct inheritors using javac indices (initial) 2016-10-10 20:27:20 +03:00
Dmitry Batkovich 71e717e81a CompilerReferenceService rename getScopeWithoutReferences -> getScopeWithoutCodeReferences 2016-10-04 19:34:57 +03:00
Dmitry Batkovich b6aa8d3927 rename IDEA-CR-14113 2016-10-03 15:30:07 +03:00
Dmitry Batkovich 3c70c7a381 combine UseScopeOptimizer and InCodeScopeOptimizer to ScopeOptimizer + renaming IDEA-CR-14113 2016-10-03 15:26:27 +03:00
Anna.Kozlova cfb011e3e1 check inheritance for classes in local scopes to check that metho overrides another method (IDEA-161863) 2016-09-30 09:33:28 +02:00
peter 53867e057f IDEA-161862 Lambda Expressions not showing as implementations of an interface 2016-09-29 11:31:20 +02:00
Dmitry Batkovich adbf11a951 javac ast indices is applied for lambda search 2016-09-28 18:30:40 +03:00
Dmitry Batkovich 0a22f2529b javac ast indices is applied for lambda search 2016-09-28 18:27:36 +03:00
Dmitry Batkovich 000b0a0e78 do not forget about comments while searching using javac ast 2016-09-28 15:22:37 +03:00
Dmitry Batkovich 89add86543 move CompilerReferenceService from indexing to java-indexing 2016-09-23 11:47:54 +03:00
Anna Kozlova 948028ac5c reenable index for tests 2016-09-21 22:46:52 +03:00
Anna Kozlova c7f20d26ee disable index for offline inspections as checks are disabled anyway 2016-09-21 19:32:10 +03:00
peter e9790ebb6a IDEA-161355 InjectionCache.getAnnoIndex should be faster 2016-09-16 15:54:58 +02:00
Roman Shevchenko 09cb3081a8 [java] resolves Java module references according to a project model 2016-09-08 22:34:26 +03:00
Alexey Kudravtsev db6d4e1fcc removed "suppress unused" for deprecated methods to avoid using them again, especially since some of them already are. 2016-09-07 14:12:33 +03:00
Alexey Kudravtsev 0798a43f7d Use resolveImaginarySuperCallInThisPlace() instead of enumerating all super class constructors; find usages of overloaded ctr should find only correct implicit super calls 2016-09-01 16:59:57 +03:00
peter 7d670211a6 decrease the invocation counts of psi.getText in several java places 2016-09-01 10:00:39 +02:00
Anna Kozlova 52ac0074cf find implicit constructor call: check this constructor only (IDEA-CR-13272) 2016-08-30 21:06:06 +03:00