MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / PushScope

Method PushScope

src/twparser/parserhelper.cpp:858–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856
857
858void cParserHelper::PushScope(cAttrScopeInfo* pSI)
859{
860 // add previous scope's info to this one
861 if (!mScopedAttrs.empty())
862 {
863 pSI->GetAttrList()->MergeNoOverwrite(mScopedAttrs.back()->GetAttrList());
864 }
865
866 mScopedAttrs.push_back(pSI);
867}
868
869
870//=========================================================================

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
MergeNoOverwriteMethod · 0.80
GetAttrListMethod · 0.45

Tested by

no test coverage detected