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

Method SetNamespaceState

IDEHelper/Compiler/BfDefBuilder.cpp:2606–2615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2604}
2605
2606void BfDefBuilder::SetNamespaceState(const NamespaceState& namespaceState)
2607{
2608 while ((int)mNamespaceSearch.size() > namespaceState.mNamespaceSearchCount)
2609 {
2610 BfAtomComposite& atomComposite = mNamespaceSearch[0];
2611 mSystem->ReleaseAtomComposite(atomComposite);
2612 mNamespaceSearch.RemoveAt(0);
2613 }
2614 mNamespace = namespaceState.mNamespace;
2615}
2616
2617void BfDefBuilder::Visit(BfNamespaceDeclaration* namespaceDeclaration)
2618{

Callers

nothing calls this directly

Calls 3

ReleaseAtomCompositeMethod · 0.80
sizeMethod · 0.45
RemoveAtMethod · 0.45

Tested by

no test coverage detected