Exemple #1
0
 void DisposeCurrentParser()
 {
     editorParser.Dispose();
     editorParser = null;
     parseComplete.Dispose();
     parseComplete = null;
     ClearLastChange();
 }
Exemple #2
0
        void CreateParserFor(string fileName)
        {
            editorParser = new MonoDevelop.Web.Razor.EditorParserFixed.RazorEditorParser(CreateRazorHost(fileName), fileName);

            parseComplete = new AutoResetEvent(false);
            editorParser.DocumentParseComplete += (sender, args) =>
            {
                capturedArgs = args;
                parseComplete.Set();
            };

            lastParsedFile = fileName;
        }
		void DisposeCurrentParser ()
		{
			editorParser.Dispose ();
			editorParser = null;
			parseComplete.Dispose ();
			parseComplete = null;
			ClearLastChange ();
		}
		void CreateParserFor (string fileName)
		{
			editorParser = new MonoDevelop.Web.Razor.EditorParserFixed.RazorEditorParser (CreateRazorHost (fileName), fileName);

			parseComplete = new AutoResetEvent (false);
			editorParser.DocumentParseComplete += (sender, args) =>
			{
				capturedArgs = args;
				parseComplete.Set ();
			};

			lastParsedFile = fileName;
		}