scope_directive_replacement(Entity,Predicate,DirectiveIndex,Occurrence,PrintMutation) — Logtalk 3.100.1

object

# `scope_directive_replacement(Entity,Predicate,DirectiveIndex,Occurrence,PrintMutation)`

- `Entity` - Identifier of the entity being mutated.

- `Predicate` - Predicate or non-terminal indicator selecting directives.

- `DirectiveIndex` - 1-based index for the selected matching scope directive.

- `Occurrence` - 1-based mutation occurrence index selecting an alternative visibility for the directive.

- `PrintMutation` - Boolean flag to print the original and mutated term plus source location.

Hook object implementing the `scope_directive_replacement` mutator by replacing matching scope directives with an alternative visibility.

Availability:
`logtalk_load(mutation_testing(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-03-20
Compilation flags:
`static, context_switching_calls`
Implements:
`public` expanding
`public` directive_mutator_protocol
Imports:
`public` mutator_common
Remarks:
(none)
Inherited public predicates:
coverage_clause_mutator/0 goal_expansion/2 mutation/2 reset/0 term_expansion/2

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

(no local declarations; see entity ancestors if any)

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)