public ScopedNameResolver(ScopedNameResolver parentResolver = null) { ParentResolver = parentResolver; _typeToQuery = new Dictionary <CoReTypeName, Query>(); _idToQuery = new Dictionary <string, Query>(); }
private bool Equals(ScopedNameResolver other) { var isTypeMapEq = EqualityUtils.Equals(_typeToQuery, other._typeToQuery); var isIdMapEq = EqualityUtils.Equals(_idToQuery, other._idToQuery); return(Equals(ParentResolver, other.ParentResolver) && isTypeMapEq && isIdMapEq); }
public void LeaveCurrentScope() { Asserts.NotNull(NameResolver.ParentResolver); NameResolver = NameResolver.ParentResolver; Asserts.NotNull(Enclosings.Parent); Enclosings = Enclosings.Parent; }
public void EnterNewScope() { NameResolver = new ScopedNameResolver(NameResolver); Enclosings = new ScopedEnclosings(Enclosings); }
public UsageContext() { Enclosings = new ScopedEnclosings(); AllQueries = Lists.NewList <Query>(); NameResolver = new ScopedNameResolver(); }