MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ValidateVarUsage

Method ValidateVarUsage

source/script.cpp:12974–12982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12972
12973
12974ResultType Line::ValidateVarUsage(Var *aVar, int aUsage)
12975{
12976 if ( VARREF_IS_WRITE(aUsage)
12977 && (aUsage == Script::VARREF_REF
12978 ? aVar->Type() != VAR_NORMAL // Aliasing VAR_VIRTUAL is currently unsupported.
12979 : aVar->IsReadOnly()) )
12980 return VarIsReadOnlyError(aVar, aUsage);
12981 return OK;
12982}
12983
12984ResultType Script::VarIsReadOnlyError(Var *aVar, int aErrorType)
12985{

Callers 1

PreparseCatchVarMethod · 0.80

Calls 2

IsReadOnlyMethod · 0.80
TypeMethod · 0.45

Tested by

no test coverage detected