Пример #1
0
        public IEnumerable <ActiveStatementTextSpan> GetSpans(SourceText source)
        {
            TrackingSession session = _session;

            if (session == null)
            {
                return(SpecializedCollections.EmptyEnumerable <ActiveStatementTextSpan>());
            }

            return(session.GetSpans(source));
        }
 public IEnumerable <ActiveStatementTextSpan> GetSpans(SourceText source)
 {
     return(_session?.GetSpans(source) ?? SpecializedCollections.EmptyEnumerable <ActiveStatementTextSpan>());
 }