/// <summary> /// Frees persistent resources used by the <see cref="Analyzer"/>. /// </summary> /// <remarks> /// <para> /// The default implementation closes the internal <see cref="TokenStream"/>s /// used by the analyzer. /// </para> /// </remarks> public virtual void Close() { if (tokenStreams != null) { tokenStreams.Close(); } tokenStreams = null; }
protected virtual void Dispose(bool disposing) { if (isDisposed) { return; } if (disposing) { if (tokenStreams != null) { tokenStreams.Close(); tokenStreams = null; } } isDisposed = true; }