[MonoDevelop] Binding parser's Resolve method

Lluis Sanchez lluis at ximian.com
Thu Feb 2 11:57:09 EST 2006

> >
> > I don't know where are you using that code. You only need to implement
> > the Parse() method from the IParser interface. The parser service will
> > call this method to parse whatever is needed to parse.
> >
> > Lluis.
> >   
> This is my implementation of the Parse method. I'm getting all files, 
> and all project references, and getting the type tree for them. I don't 
> know if this is totally correct, altough it works most of the times.
> However, the GLib exception is sometimes thrown, or other times it 
> crashes randomly and shows and empty Class View. I think it is maybe for 
> two subsequent calls to Parse which would need a lock(...) in my code.

You don't need to parse the whole project in the IParser.Parse method.
You only need to parse the file provided as parameter, and return the
ICompilationUnit for that file only. The ParserService will make several
calls to that method to parse the files of the project when needed.


More information about the Monodevelop-list mailing list