correction = nelson.lang.correction.ConvertToFunctionNotationCorrection(method)
| Parameter | Description |
|---|---|
| method | method name that should be called using function notation. |
| Parameter | Description |
|---|---|
| correction | a nelson.lang.correction.ConvertToFunctionNotationCorrection object. |
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.
ME = MException('nelson:useFunctionForm', 'Use function syntax to call this method.');
correction = nelson.lang.correction.ConvertToFunctionNotationCorrection('isvalid');
ME = addCorrection(ME, correction)
ME.Correction.Method
| Version | Description |
|---|---|
| 2.0.0 | initial version |