mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Better support for @ name prefixes
This commit is contained in:
parent
7691c414c3
commit
aa56542fae
12 changed files with 158 additions and 40 deletions
|
@ -3852,6 +3852,9 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
|
|||
{
|
||||
auto varDecl = entry->mLocalVar;
|
||||
|
||||
if (varDecl != NULL)
|
||||
varSkipCount -= varDecl->mNamePrefixCount;
|
||||
|
||||
while ((varSkipCount > 0) && (varDecl != NULL))
|
||||
{
|
||||
varDecl = varDecl->mShadowedLocal;
|
||||
|
@ -4347,9 +4350,13 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
if (curCheckType->mTypeDef->mFieldSet.TryGetWith(findName, &entry))
|
||||
nextField = (BfFieldDef*)entry->mMemberDef;
|
||||
|
||||
if (nextField != NULL)
|
||||
varSkipCount -= nextField->mNamePrefixCount;
|
||||
|
||||
while ((varSkipCount > 0) && (nextField != NULL))
|
||||
{
|
||||
nextField = nextField->mNextWithSameName;
|
||||
varSkipCount--;
|
||||
}
|
||||
|
||||
BfProtectionCheckFlags protectionCheckFlags = BfProtectionCheckFlag_None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue