mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Improved emit marker resolve/build selection, emitted Go To Definition
This commit is contained in:
parent
faca458283
commit
6ded6a37cc
14 changed files with 216 additions and 44 deletions
|
@ -11509,6 +11509,7 @@ void BfModule::ClearConstData()
|
|||
mStringCharPtrPool.Clear();
|
||||
mStringPoolRefs.Clear();
|
||||
mUnreifiedStringPoolRefs.Clear();
|
||||
mStaticFieldRefs.Clear();
|
||||
}
|
||||
|
||||
BfTypedValue BfModule::GetTypedValueFromConstant(BfConstant* constant, BfIRConstHolder* constHolder, BfType* wantType)
|
||||
|
@ -14860,11 +14861,11 @@ BfTypedValue BfModule::ReferenceStaticField(BfFieldInstance* fieldInstance)
|
|||
}
|
||||
}
|
||||
|
||||
if ((mIsScratchModule) && (mCompiler->mIsResolveOnly))
|
||||
{
|
||||
if ((mIsScratchModule) && (mCompiler->mIsResolveOnly) && (!fieldInstance->mOwner->IsInstanceOf(mCompiler->mCompilerTypeDef)))
|
||||
{
|
||||
// Just fake it for the extern and unspecialized modules
|
||||
// We can't do this for compilation because unreified methods with default params need to get acutal global variable refs
|
||||
return BfTypedValue(mBfIRBuilder->CreateConstNull(), fieldInstance->GetResolvedType(), true);
|
||||
// We can't do this for compilation because unreified methods with default params need to get actual global variable refs
|
||||
return BfTypedValue(mBfIRBuilder->CreateConstNull(), fieldInstance->GetResolvedType(), true);
|
||||
}
|
||||
|
||||
BfIRValue* globalValuePtr = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue