Esempio n. 1
0
        public override void Dispose()
        {
            try {
                // Clear the special sources
                foreach (PythonSource 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();
            }
        }
Esempio n. 2
0
 public override IScanner GetScanner(IVsTextLines buffer)
 {
     if (scanner == null)
     {
         scanner = new PythonScanner();
     }
     return(scanner);
 }
 public override IScanner GetScanner(IVsTextLines buffer)
 {
     if (scanner == null) {
         scanner = new PythonScanner();
     }
     return scanner;
 }
        public override void Dispose()
        {
            try {
                // Clear the special sources
                foreach(PythonSource 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();
            }
        }