nelson.lang.correction.ConvertToFunctionNotationCorrection
Correct error by converting to function notation.
📝Syntax
correction = nelson.lang.correction.ConvertToFunctionNotationCorrection(method)
📥Input Arguments
Parameter Description
method method name that should be called using function notation.
📤Output Arguments
Parameter Description
correction a nelson.lang.correction.ConvertToFunctionNotationCorrection object.
📄Description

Use nelson.lang.correction.ConvertToFunctionNotationCorrection objects in classes whose methods should not be called using dot notation.

correction = nelson.lang.correction.ConvertToFunctionNotationCorrection(method) creates a correction that suggests converting dot notation to function notation syntax for calling method.

The read-only Method property contains the method name.

💡Examples
ME = MException('nelson:useFunctionForm', 'Use function syntax to call this method.');
correction = nelson.lang.correction.ConvertToFunctionNotationCorrection('isvalid');
ME = addCorrection(ME, correction)
ME.Correction.Method
🔗See Also
addCorrectionnelson.lang.correction.AppendArgumentsCorrectionnelson.lang.correction.ReplaceIdentifierCorrection
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub