public override void Dispose() { try { // Clear the special sources foreach (FoxProSource source in specialSources.Values) { source.Dispose(); } specialSources.Clear(); // Dispose the preferences. if (null != preferences) { preferences.Dispose(); preferences = null; } // Dispose the scanner. if (null != scanner) { scanner.Dispose(); scanner = null; } } finally { base.Dispose(); } }
public override IScanner GetScanner(IVsTextLines buffer) { if (scanner == null) { scanner = new FoxProScanner(); } return(scanner); }