| 12982 | } |
| 12983 | |
| 12984 | ResultType Script::VarIsReadOnlyError(Var *aVar, int aErrorType) |
| 12985 | { |
| 12986 | TCHAR buf[127]; |
| 12987 | sntprintf(buf, _countof(buf), _T("This %s cannot %s.") |
| 12988 | , VarKindForErrorMessage(aVar) |
| 12989 | , aErrorType == VARREF_LVALUE ? _T("be assigned a value") |
| 12990 | : aErrorType == VARREF_REF ? _T("have its reference taken") |
| 12991 | : _T("be used as an output variable")); |
| 12992 | return ScriptError(buf, aVar->mName); |
| 12993 | } |
| 12994 | |
| 12995 | ResultType Line::VarIsReadOnlyError(Var *aVar, int aErrorType) |
| 12996 | { |
no test coverage detected