1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Made type lookup errors 'var' instead of 'Object', less error cascading

This commit is contained in:
Brian Fiete 2019-10-04 10:38:36 -07:00
parent 570c03f25c
commit d48d03c58b
7 changed files with 107 additions and 28 deletions

View file

@ -1340,8 +1340,9 @@ public:
bool mWroteToLib;
bool mHadBuildError;
bool mHadBuildWarning;
bool mHadVarUsage;
bool mIgnoreErrors;
bool mIgnoreWarnings;
bool mIgnoreWarnings;
bool mSetIllegalSrcPosition;
bool mHadIgnoredError;
bool mReportErrors; // Still puts system in error state when set to false
@ -1362,6 +1363,7 @@ public:
void GetAccessAllowed(BfTypeInstance* checkType, bool& allowProtected, bool& allowPrivate);
bool CheckProtection(BfProtectionCheckFlags& flags, BfTypeInstance* memberOwner, BfProtection memberProtection, BfTypeInstance* lookupStartType);
void SetElementType(BfAstNode* astNode, BfSourceElementType elementType);
void SetHadVarUsage();
BfError* Fail(const StringImpl& error, BfAstNode* refNode = NULL, bool isPersistent = false);
BfError* FailAfter(const StringImpl& error, BfAstNode* refNode);
BfError* Warn(int warningNum, const StringImpl& warning, BfAstNode* refNode = NULL, bool isPersistent = false);