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

Function VarKindForErrorMessage

source/script.cpp:12955–12963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12953
12954
12955LPCTSTR VarKindForErrorMessage(Var *aVar)
12956{
12957 switch (aVar->Type())
12958 {
12959 case VAR_VIRTUAL: return _T("built-in variable");
12960 case VAR_CONSTANT: return aVar->Object()->Type();
12961 default: return Var::DeclarationType(aVar->Scope());
12962 }
12963}
12964
12965ResultType Script::ConflictingDeclarationError(LPCTSTR aDeclType, Var *aExisting)
12966{

Callers 2

VarIsReadOnlyErrorMethod · 0.85

Calls 2

TypeMethod · 0.45
ObjectMethod · 0.45

Tested by

no test coverage detected