bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { MemberTypeOrNamespaceReference o = other as MemberTypeOrNamespaceReference; return(o != null && this.target == o.target && this.parentTypeDefinition == o.parentTypeDefinition && this.parentUsingScope == o.parentUsingScope && this.identifier == o.identifier && this.typeArguments == o.typeArguments); }
protected static TypeOrNamespaceReference MakeReference(string namespaceName) { string[] nameParts = namespaceName.Split('.'); TypeOrNamespaceReference r = new SimpleTypeOrNamespaceReference(nameParts[0], new ITypeReference[0], NameLookupMode.TypeInUsingDeclaration); for (int i = 1; i < nameParts.Length; i++) { r = new MemberTypeOrNamespaceReference(r, nameParts[i], new ITypeReference[0]); } return(r); }
protected ITypeOrNamespaceReference MakeReference(string namespaceName) { string[] nameParts = namespaceName.Split('.'); ITypeOrNamespaceReference r = new SimpleTypeOrNamespaceReference(nameParts[0], new ITypeReference[0], resolver.CurrentTypeDefinition, resolver.UsingScope, true); for (int i = 1; i < nameParts.Length; i++) { r = new MemberTypeOrNamespaceReference(r, nameParts[i], new ITypeReference[0], resolver.CurrentTypeDefinition, resolver.UsingScope); } return(r); }