Example #1
0
		public override IUnresolvedEntity VisitUsingAliasDeclaration(UsingAliasDeclaration usingDeclaration, object data)
		{
			TypeOrNamespaceReference u = usingDeclaration.Import.ToTypeReference(SimpleNameLookupMode.TypeInUsingDeclaration) as TypeOrNamespaceReference;
			if (u != null) {
				if (interningProvider != null)
					u = interningProvider.Intern(u);
				usingScope.UsingAliases.Add(new KeyValuePair<string, TypeOrNamespaceReference>(usingDeclaration.Alias, u));
			}
			return null;
		}
		public MemberTypeOrNamespaceReference(TypeOrNamespaceReference target, string identifier, IList<ITypeReference> typeArguments)
		{
			if (target == null)
				throw new ArgumentNullException("target");
			if (identifier == null)
				throw new ArgumentNullException("identifier");
			this.target = target;
			this.identifier = identifier;
			this.typeArguments = typeArguments ?? EmptyList<ITypeReference>.Instance;
		}
Example #3
0
 public MemberTypeOrNamespaceReference(TypeOrNamespaceReference target, string identifier, IList <ITypeReference> typeArguments)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     if (identifier == null)
     {
         throw new ArgumentNullException("identifier");
     }
     this.target        = target;
     this.identifier    = identifier;
     this.typeArguments = typeArguments ?? EmptyList <ITypeReference> .Instance;
 }
Example #4
0
 void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
 {
     target        = provider.Intern(target);
     identifier    = provider.Intern(identifier);
     typeArguments = provider.InternList(typeArguments);
 }
		void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
		{
			target = provider.Intern(target);
			identifier = provider.Intern(identifier);
			typeArguments = provider.InternList(typeArguments);
		}