Bug 438091 - TypeInference isn't use IContext correctly, refactor PHPModelUtils and/or write dedicated tools
Summary: TypeInference isn't use IContext correctly, refactor PHPModelUtils and/or wri...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2014-06-24 15:14 EDT by Dawid Pakula CLA
Modified: 2020-05-14 10:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Pakula CLA 2014-06-24 15:14:13 EDT
Current TI implementation highly using PHPModelUtils, and this class internally searching for:

1. Current namespace (INamespaceContext contains it)
2. AST cache  (ISourceModuleContaxt contains it)
3. References
4. IType/IMethod
5. Type hierarchy

Besides some methods in this class require:
1. IModelAccessCache (available in IModelCacheContext)
2. ITypeHierarchy (can be readed from IModelAccessCache)
3. IModelAccessCache and IContext 
4. Current offset
5. Sometimes nothing from above, even if should, for example while collecting type fields or methods