Example #1
0
 void DisposeCurrentParser()
 {
     editorParser.Dispose();
     editorParser = null;
     parseComplete.Dispose();
     parseComplete = null;
     ClearLastChange();
 }
Example #2
0
        void CreateParserFor(string fileName)
        {
            editorParser = new RazorEditorParserFixed.RazorEditorParser(CreateRazorHost(fileName), fileName);

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

            lastParsedFile = fileName;
        }
Example #3
0
		void DisposeCurrentParser ()
		{
			editorParser.Dispose ();
			editorParser = null;
			parseComplete.Dispose ();
			parseComplete = null;
			ClearLastChange ();
		}
Example #4
0
		void CreateParserFor (string fileName)
		{
			editorParser = new RazorEditorParserFixed.RazorEditorParser (CreateRazorHost (fileName), fileName);

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

			lastParsedFile = fileName;
		}