src/Generic/theories/Metadata.cpp
// ==================================================================
// Get all spans at an offset of a given type:
// ==================================================================

Get all spans at an offset of a given type.
Get all spans at an offset of a given type .
Span * Metadata::getStartingSpan(EDTOffset start_offset, const Symbol type) const
{
	SpanTypeFilter filter(type);
	SpanList *list = getStartingSpans(start_offset, &filter);
	Span *result = getSmallestSpan(list);
	delete list;
	return result;
}
Span * Metadata :: getStartingSpan ( EDTOffset start_offset , const Symbol type ) const { SpanTypeFilter filter ( type ) ; SpanList * list = getStartingSpans ( start_offset , & filter ) ; Span * result = getSmallestSpan ( list ) ; delete list ; return result ; }
Get all spans at an offset of a given type:
Get all spans at an offset of a given type :