[Monodevelop-patches-list] r935 - trunk/MonoDevelop/src/Main/Base/Services/ParserService

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Feb 17 21:10:33 EST 2004


Author: tberman
Date: 2004-02-17 21:10:33 -0500 (Tue, 17 Feb 2004)
New Revision: 935

Modified:
   trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs
Log:
safely workaround potential parser issues


Modified: trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs	2004-02-17 05:41:15 UTC (rev 934)
+++ trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs	2004-02-18 02:10:33 UTC (rev 935)
@@ -750,15 +750,15 @@
 		{
 			// added exception handling here to prevent silly parser exceptions from
 			// being thrown and corrupting the textarea control
-			//try {
+			try {
 				IParser parser = GetParser(fileName);
 				if (parser != null) {
 					return parser.Resolve(this, expression, caretLineNumber, caretColumn, fileName, fileContent);
 				}
 				return null;
-			//} catch {
-//				return null;
-			//}
+			} catch {
+				return null;
+			}
 		}
 		
 		public ResolveResult Resolve(string expression,
@@ -770,15 +770,15 @@
 		{
 			// added exception handling here to prevent silly parser exceptions from
 			// being thrown and corrupting the textarea control
-			//try {
+			try {
 				IParser p = language == "c#" || language == "C#" ? parser[0] : null;
 				if (p != null) {
 					return p.Resolve(this, expression, caretLineNumber, caretColumn, fileName, fileContent);
 				}
 				return null;
-			//} catch {
-//				return null;
-			//}
+			} catch {
+				return null;
+			}
 		}
 		
 		protected void OnParseInformationAdded(ParseInformationEventArgs e)




More information about the Monodevelop-patches-list mailing list