summaryrefslogtreecommitdiff
path: root/phpinspect-imports.el
AgeCommit message (Collapse)Author
2025-06-05Bump version to 3.0.1externals/phpinspectHugo Thunnissen
2025-06-05Update copyright headersHugo Thunnissen
2025-05-30Bump version to 3.0.0Hugo Thunnissen
2024-09-28Refactor s/filename/file-name/g; s/typename/type-name/g + fix a bugHugo Thunnissen
Made `phpinspect-type-name-to-file-name' more robust by adding some additional test inputs.
2024-09-28Improve performance of parser (and phpinspect-meta)Hugo Thunnissen
- Add `phpinspect--recycle-token' which attempts to re-use all eligible righthand siblings. - Change important search functions of phpinspect-meta to inline functions and optimize their code. - Introduce `phpinspect-meta--point-offset-base' which see docstring.
2024-09-23Implement automatic re-indexation of autoloader + refactor phpinspect-nameHugo Thunnissen
- phpinspect-name functions and types have been moved to a separate file (phpinspect-name.el) - phpinspect--after-save-action now re-executes the autoload strategy for the current directory when a new file is saved. - all occurences of bare-name have been replaced with base-name - phpinspect-name objects now have functions that return their namespace and base parts and cache the result in designated slots. Other changes: - `phpinspect--type-name' -> `phpinspect--type-name-string' - `phpinspect--type-name-symbol' -> phpinspect--type-name'
2024-09-14Bump version to 2.1.0Hugo Thunnissen
2024-09-10Fix compilation errors (move `phpinspect-project-read-type-name' to ↵Hugo Thunnissen
phpinspect-imports.el)
2024-09-10Add interactive function to insert a type name and auto-import itHugo Thunnissen
2024-09-02Bump version to 2.0.1Hugo Thunnissen
2024-09-02Add test for behaviour of `phpinspect-imports-remove-unused' variable + fix bugHugo Thunnissen
2024-08-31Bump version to 2.0.0Hugo Thunnissen
2024-08-31Make import removal configurableHugo Thunnissen
2024-08-31Replace phpinspect--class with new phpinspect-typedef structureHugo Thunnissen
Typedef is more flexible and allows for more finegrained management of methods and their origins.
2024-08-31Bump version to 1.2.1Hugo Thunnissen
2024-08-31Correctly index the name by which a function return type was referenced as ↵Hugo Thunnissen
used type
2024-08-22Bump version to 1.2.0Hugo Thunnissen
2024-08-21Bump version to 1.1.0Hugo Thunnissen
2024-08-21Make import sort function customizable + only sort when necessaryHugo Thunnissen
2024-08-21Increase version number to 1.0Hugo Thunnissen
2024-08-20Index types used in class property initializers and combine change calls for ↵Hugo Thunnissen
fix-imports
2024-08-19Add tests for aliased imports + fix bugsHugo Thunnissen
2024-08-17Wrap buffer edit logic in `save-excursion'Hugo Thunnissen
2024-08-17s/class/namespace/Hugo Thunnissen
2024-08-17Remove unused lexical variables and fix invalid inline-functionHugo Thunnissen
2024-08-17Test + improve `phpinspect-fix-imports' (and parse enums as classes)Hugo Thunnissen
- `phpinspect-fix-imports' now sorts the imports alphabetically - `phpinspect-fix-imports' removes excess trailing newlines - "enum" keywords are now regarded like "class" keywords. (enum cases not yet supported) - Namespaces were added to token index
2024-08-17Add test for phpinspect-fix-importsHugo Thunnissen
2024-08-14Introduce `phpinspect-buffer-fresh-p' and ↵Hugo Thunnissen
`phpinspect-buffer-reparse-if-not-fresh' + use in `phpinspect-fix-imports' instead of `phpinspect-buffer-reparse'
2024-08-14Reparse buffer when fixing import (+ add comment explaining why)Hugo Thunnissen
2024-08-14Infer namespace token within import manipulation loopHugo Thunnissen
2024-08-14Implement removal of unused imports in `phpinspect-fix-imports'Hugo Thunnissen
2024-08-04Fix namespace resolution bug in phpinspect-fix-importsHugo Thunnissen
Incorrect use of phpinspect-namespace-name caused phpinspect-fix-imports to incorrectly determine the current namespace. This resulted in imports being suggested/added for types that already were available in the current namespace. It did not make the PHP code invalid, but it did cause unnecessary use statements for types in the same namespace. This bug has now been fixed.
2024-03-22Convert names to alist for use as completing-read collectionHugo Thunnissen
Fixes bug in `phpinspect-fix-imports'
2024-03-22Fix bug in autoloader that caused registration of only one FQN per typeHugo Thunnissen
2023-08-20Use `phpinspect-message' in stead of `message'Hugo Thunnissen
2023-08-20Implement stub index for builtin functions and typesHugo Thunnissen
Misc: - Removed Cask in favor of dependency install script - Rework makefile to provide simple build/install process
2023-08-15Run relint and fix detected regexp issuesHugo Thunnissen
2023-08-15Update copyright statements and apply some code style improvementsHugo Thunnissen
As suggested by Stefan Monniers patch: - https://mail.gnu.org/archive/html/emacs-devel/2023-08/msg00367.html
2023-08-15Fix all byte compilation warnings and errors (for real this time (probably))Hugo Thunnissen
2023-08-14Keep index synchronized with buffer stateHugo Thunnissen
2023-08-07Fix byte compilation warningsHugo Thunnissen
2023-08-07Fix a variety of bugsHugo Thunnissen
- phpinspect--index-tokens no longer errors upon unexpected return annotation values - phpinspect-fixt-imports now also fixes imports outside of classes - Functions are no longer included in statements when deriving types
2023-08-06Fix all remaining byte compiler warningsHugo Thunnissen
2023-08-06Reimplement `phpinspect-fix-imports' using metadata objectsHugo Thunnissen
2023-07-28Remove obsolete comment (incremental parsing has been implemented)Hugo Thunnissen
2023-07-16Fix some bugs introduced by the incremental parsing featureHugo Thunnissen
Among other things: - use-keyword parser handler result being registered for two positions due to wrong use of "root" parser parameter. - phpinspect-fix-imports was broken
2023-07-16Implement Incremental ParsingHugo Thunnissen
2023-07-02Refactor phpinspect--project to phpinspect-projectHugo Thunnissen
2022-11-04Fix bugs in phpinspect-fix-importsHugo Thunnissen
2022-11-01Transition from index script to autoloaderHugo Thunnissen