MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / SectionTracker

Method SectionTracker

unittests/catch.hpp:10254–10264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10252 }
10253
10254 SectionTracker::SectionTracker( NameAndLocation const& nameAndLocation, TrackerContext& ctx, ITracker* parent )
10255 : TrackerBase( nameAndLocation, ctx, parent )
10256 {
10257 if( parent ) {
10258 while( !parent->isSectionTracker() )
10259 parent = &parent->parent();
10260
10261 SectionTracker& parentSection = static_cast<SectionTracker&>( *parent );
10262 addNextFilters( parentSection.m_filters );
10263 }
10264 }
10265
10266 bool SectionTracker::isSectionTracker() const { return true; }
10267

Callers

nothing calls this directly

Calls 1

isSectionTrackerMethod · 0.80

Tested by

no test coverage detected