[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.dltk] Re: type hierarchy and code completion

Apparently, given the an ISourceModule I can get the corresponding 
ModuleDeclaration by calling:

package org.eclipse.dltk.core;
public class SourceParserUtil {

public static ModuleDeclaration getModuleDeclaration(ISourceModule module,

IProblemReporter reporter, int flags) {

If it is already parsed, it will return the cached copy of the AST tree.

If not, it will parse it (and thus it needs the IProblemReporter argument 
etc.)

Is this an appropriate way to proceed?

Thanks,

Chuck