MCPcopy Create free account
hub / github.com/beefytech/Beef / GetStringObjectValue

Method GetStringObjectValue

IDEHelper/Compiler/BfModule.cpp:1910–1918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1908}
1909
1910BfIRValue BfModule::GetStringObjectValue(int strId, bool define, bool force)
1911{
1912 BfIRValue* objValue;
1913 if (mStringObjectPool.TryGetValue(strId, &objValue))
1914 return *objValue;
1915
1916 auto stringPoolEntry = mContext->mStringObjectIdMap[strId];
1917 return GetStringObjectValue(stringPoolEntry.mString, define, force);
1918}
1919
1920BfIRValue BfModule::GetStringObjectValue(const StringImpl& str, bool define, bool force)
1921{

Callers 9

ResolveMethod · 0.80
GetGeneratorStringMethod · 0.80
CreateConstantMethod · 0.80
GetLiteralMethod · 0.80
CreateCallMethod · 0.80
VisitMethod · 0.80
DoInvocationMethod · 0.80

Calls 6

TryGetValueMethod · 0.80
GetStringLiteralIdMethod · 0.80
ContainsKeyMethod · 0.80
PopulateTypeMethod · 0.45
AddMethod · 0.45
CreateConstMethod · 0.45

Tested by

no test coverage detected