Skip to main content

Crate ontocore_refactor

Crate ontocore_refactor 

Source
Expand description

Workspace refactoring for OntoCore (v0.8).

Published as ontocore-refactor.

Structs§

FileChange
Hunk
RefactorPlan
Usage

Enums§

RefactorError
RefactorRequest
UsageKind

Functions§

apply_refactor_plan
Apply a refactor plan to disk. When preview_only is true, no files are written.
apply_refactor_plan_checked
Apply plan and return count of files written.
apply_refactor_plan_checked_with_overrides
Apply plan with optional open-buffer overrides used for compare-and-swap.
find_usages
Find all usages of target_iri across the indexed workspace.
find_usages_with_overrides
Find usages, preferring unsaved document text from document_overrides.
plan_touches_path
plans_equivalent
Returns true when client-submitted plan matches a server re-preview byte-for-byte.
preview_extract_module
preview_migrate_namespace
preview_move_entity
preview_refactor
Preview a refactor. Client-supplied paths (target_file / output_file) are jailed under workspace_root before any filesystem read.
preview_rename_iri
validate_refactor_plan_paths
Validate every path in a refactor plan is within the workspace jail.

Type Aliases§

Result