nelson.lang.correction.ReplaceIdentifierCorrection
Corrige une erreur en remplacant un identifiant dans un appel de fonction.
📝Syntaxe
correction = nelson.lang.correction.ReplaceIdentifierCorrection(identifier, replacement)
📥Arguments d'entrée
Paramètre Description
identifier identifiant incorrect dans l'appel de fonction.
replacement identifiant de remplacement.
📤Arguments de sortie
Paramètre Description
correction un objet nelson.lang.correction.ReplaceIdentifierCorrection.
📄Description

Utilisez les objets nelson.lang.correction.ReplaceIdentifierCorrection dans les fonctions qui levent un objet MException.

correction = nelson.lang.correction.ReplaceIdentifierCorrection(identifier, replacement) cree une correction qui suggere de remplacer identifier par replacement dans l'appel de fonction qui a leve l'objet MException.

Les proprietes en lecture seule Identifier et Replacement contiennent l'identifiant incorrect et l'identifiant de remplacement.

💡Exemples
ME = MException('nelson:unknownName', 'Unknown identifier.');
correction = nelson.lang.correction.ReplaceIdentifierCorrection('oldName', 'newName');
ME = addCorrection(ME, correction)
ME.Correction.Replacement
🔗Voir aussi
addCorrectionnelson.lang.correction.AppendArgumentsCorrectionnelson.lang.correction.ConvertToFunctionNotationCorrection
🕔Historique des versions
Version Description
2.0.0 version initiale
Modifier cette page sur GitHub