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

Method ResolveClasses

source/script.cpp:6590–6607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6588}
6589
6590ResultType Script::ResolveClasses()
6591{
6592 LPTSTR name;
6593 Object *base = mUnresolvedClasses->GetUnresolvedClass(name);
6594 if (!base)
6595 return OK;
6596 // There is at least one unresolved class.
6597 ExprTokenType token;
6598 if (base->GetOwnProp(token, _T("Line")))
6599 {
6600 // In this case (an object in the mUnresolvedClasses list), it is always an integer
6601 // containing the file index and line number:
6602 mCurrFileIndex = int(token.value_int64 >> 32);
6603 mCombinedLineNumber = LineNumberType(token.value_int64);
6604 }
6605 mCurrLine = NULL;
6606 return ScriptError(_T("Unknown class."), name);
6607}
6608
6609
6610

Callers

nothing calls this directly

Calls 2

GetUnresolvedClassMethod · 0.80
GetOwnPropMethod · 0.80

Tested by

no test coverage detected