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

Method Add

IDEHelper/Compiler/BfModule.cpp:381–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379//////////////////////////////////////////////////////////////////////////
380
381void BfAmbiguityContext::Add(int id, BfTypeInterfaceEntry* interfaceEntry, int methodIdx, BfMethodInstance* candidateA, BfMethodInstance* candidateB)
382{
383 Entry* entry = NULL;
384
385 if (mEntries.TryAdd(id, NULL, &entry))
386 {
387 entry->mInterfaceEntry = interfaceEntry;
388 entry->mMethodIdx = methodIdx;
389 }
390 if (!entry->mCandidates.Contains(candidateA))
391 entry->mCandidates.push_back(candidateA);
392 if (!entry->mCandidates.Contains(candidateB))
393 entry->mCandidates.push_back(candidateB);
394}
395
396void BfAmbiguityContext::Remove(int id)
397{

Callers 15

SetIntersectionMethod · 0.45
DoObjectCreateMethod · 0.45
BfModuleMethod · 0.45
StartNewRevisionMethod · 0.45
FixConstValueParamsMethod · 0.45
GetStringCharPtrMethod · 0.45
GetStringObjectValueMethod · 0.45
GetVisibleProjectSetMethod · 0.45
AddDependencyMethod · 0.45
AddCallDependencyMethod · 0.45

Calls 3

TryAddMethod · 0.45
ContainsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected