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); }
public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider = null) { throw new NotImplementedException(); }
public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider) { return(SpecialType.UnknownType); }
public override void ApplyInterningProvider(InterningProvider provider) { base.ApplyInterningProvider(provider); parameters = provider.InternList(parameters); }
/// <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);
/// <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)); }
public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider) { throw new NotSupportedException(); }
public virtual ITypeReference ToTypeReference(InterningProvider intern) { return(this as ITypeReference); }