public override void ApplyInterningProvider(InterningProvider provider)
		{
			base.ApplyInterningProvider(provider);
			if (provider != null) {
				returnTypeAttributes = provider.InternList(returnTypeAttributes);
				typeParameters = provider.InternList(typeParameters);
				parameters = provider.InternList(parameters);
			}
		}
		/// <summary>
		/// Uses the specified interning provider to intern
		/// strings and lists in this entity.
		/// This method does not test arbitrary objects to see if they implement ISupportsInterning;
		/// instead we assume that those are interned immediately when they are created (before they are added to this entity).
		/// </summary>
		public virtual void ApplyInterningProvider(InterningProvider provider)
		{
			if (provider == null)
				throw new ArgumentNullException("provider");
			FreezableHelper.ThrowIfFrozen(this);
			name = provider.Intern(name);
			attributes = provider.InternList(attributes);
			constraints = provider.InternList(constraints);
		}
		public override void ApplyInterningProvider(InterningProvider provider)
		{
			base.ApplyInterningProvider(provider);
			interfaceImplementations = provider.InternList(interfaceImplementations);
		}
 public virtual void ApplyInterningProvider(InterningProvider provider)
 {
 }
 /// <summary>
 /// Uses the specified interning provider to intern
 /// strings and lists in this entity.
 /// This method does not test arbitrary objects to see if they implement ISupportsInterning;
 /// instead we assume that those are interned immediately when they are created (before they are added to this entity).
 /// </summary>
 public virtual void ApplyInterningProvider(InterningProvider provider)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     ThrowIfFrozen();
     name = provider.Intern(name);
     attributes = provider.InternList(attributes);
     if (rareFields != null)
         rareFields.ApplyInterningProvider(provider);
 }
Example #6
0
 public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider = null)
 {
     throw new NotImplementedException();
 }
 public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider)
 {
     return(SpecialType.UnknownType);
 }
Example #8
0
 public override void ApplyInterningProvider(InterningProvider provider)
 {
     base.ApplyInterningProvider(provider);
     interfaceImplementations = provider.InternList(interfaceImplementations);
 }
Example #9
0
 public override void ApplyInterningProvider(InterningProvider provider)
 {
     base.ApplyInterningProvider(provider);
     parameters = provider.InternList(parameters);
 }
Example #10
0
 /// <summary>
 /// Create an ITypeReference for this AstType.
 /// </summary>
 /// <remarks>
 /// The resulting type reference will read the context information from the
 /// <see cref="ITypeResolveContext"/>:
 /// For resolving type parameters, the CurrentTypeDefinition/CurrentMember is used.
 /// For resolving simple names, the current namespace and usings from the CurrentUsingScope
 /// (on CSharpTypeResolveContext only) is used.
 /// </remarks>
 public abstract ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider = null);
Example #11
0
 /// <summary>
 /// Create an ITypeReference for this AstType.
 /// Uses the context (ancestors of this node) to determine the correct <see cref="NameLookupMode"/>.
 /// </summary>
 /// <remarks>
 /// The resulting type reference will read the context information from the
 /// <see cref="ITypeResolveContext"/>:
 /// For resolving type parameters, the CurrentTypeDefinition/CurrentMember is used.
 /// For resolving simple names, the current namespace and usings from the CurrentUsingScope
 /// (on CSharpTypeResolveContext only) is used.
 /// </remarks>
 public ITypeReference ToTypeReference(InterningProvider interningProvider = null)
 {
     return(ToTypeReference(GetNameLookupMode(), interningProvider));
 }
Example #12
0
 public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider)
 {
     throw new NotSupportedException();
 }
 public override void ApplyInterningProvider(InterningProvider provider)
 {
     base.ApplyInterningProvider(provider);
     parameters = provider.InternList(parameters);
 }
 public virtual void ApplyInterningProvider(InterningProvider provider)
 {
 }
Example #15
0
 public virtual ITypeReference ToTypeReference(InterningProvider intern)
 {
     return(this as ITypeReference);
 }