package polyglot.ast;
import polyglot.types.*;
import polyglot.visit.*;
import polyglot.util.*;
/**
* Utility class which is used to disambiguate ambiguous
* AST nodes (Expr, Type, Receiver, Qualifier, Prefix).
*/
public interface Disamb
{
/**
* Disambiguate the prefix and name into a unambiguous node of the
* appropriate type.
* @return An unambiguous AST node, or null if disambiguation fails.
*/
Node disambiguate(Ambiguous amb, ContextVisitor v, Position pos,
Prefix prefix, String name) throws SemanticException;
}