public RetargetingPropertySymbol(RetargetingModuleSymbol retargetingModule, PropertySymbol underlyingProperty) : base(underlyingProperty) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingProperty is RetargetingPropertySymbol)); _retargetingModule = retargetingModule; }
private DiagnosticInfo _lazyUseSiteDiagnostic = CSDiagnosticInfo.EmptyErrorInfo; // Indicates unknown state. public RetargetingFieldSymbol(RetargetingModuleSymbol retargetingModule, FieldSymbol underlyingField) : base (underlyingField) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingField is RetargetingFieldSymbol)); _retargetingModule = retargetingModule; }
public RetargetingTypeParameterSymbol(RetargetingModuleSymbol retargetingModule, TypeParameterSymbol underlyingTypeParameter) : base(underlyingTypeParameter) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingTypeParameter is RetargetingTypeParameterSymbol)); _retargetingModule = retargetingModule; }
private DiagnosticInfo _lazyUseSiteDiagnostic = CSDiagnosticInfo.EmptyErrorInfo; // Indicates unknown state. public RetargetingEventSymbol(RetargetingModuleSymbol retargetingModule, EventSymbol underlyingEvent) : base(underlyingEvent) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingEvent is RetargetingEventSymbol)); _retargetingModule = retargetingModule; }
private DiagnosticInfo _lazyUseSiteDiagnostic = CSDiagnosticInfo.EmptyErrorInfo; // Indicates unknown state. public RetargetingNamedTypeSymbol(RetargetingModuleSymbol retargetingModule, NamedTypeSymbol underlyingType) : base(underlyingType) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingType is RetargetingNamedTypeSymbol)); _retargetingModule = retargetingModule; }
public RetargetingNamespaceSymbol(RetargetingModuleSymbol retargetingModule, NamespaceSymbol underlyingNamespace) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingNamespace != null); Debug.Assert(!(underlyingNamespace is RetargetingNamespaceSymbol)); this.retargetingModule = retargetingModule; this.underlyingNamespace = underlyingNamespace; }
private DiagnosticInfo _lazyUseSiteDiagnostic = CSDiagnosticInfo.EmptyErrorInfo; // Indicates unknown state. public RetargetingNamedTypeSymbol(RetargetingModuleSymbol retargetingModule, NamedTypeSymbol underlyingType) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingType != null); Debug.Assert(!(underlyingType is RetargetingNamedTypeSymbol)); _retargetingModule = retargetingModule; _underlyingType = underlyingType; }
public RetargetingTypeParameterSymbol(RetargetingModuleSymbol retargetingModule, TypeParameterSymbol underlyingTypeParameter) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingTypeParameter != null); Debug.Assert(!(underlyingTypeParameter is RetargetingTypeParameterSymbol)); this.retargetingModule = retargetingModule; this.underlyingTypeParameter = underlyingTypeParameter; }
public RetargetingMethodSymbol(RetargetingModuleSymbol retargetingModule, MethodSymbol underlyingMethod) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingMethod != null); Debug.Assert(!(underlyingMethod is RetargetingMethodSymbol)); _retargetingModule = retargetingModule; _underlyingMethod = underlyingMethod; }
public RetargetingMethodSymbol(RetargetingModuleSymbol retargetingModule, MethodSymbol underlyingMethod) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingMethod != null); Debug.Assert(!(underlyingMethod is RetargetingMethodSymbol)); this.retargetingModule = retargetingModule; this.underlyingMethod = underlyingMethod; }
public RetargetingNamespaceSymbol(RetargetingModuleSymbol retargetingModule, NamespaceSymbol underlyingNamespace) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingNamespace != null); Debug.Assert(!(underlyingNamespace is RetargetingNamespaceSymbol)); this.retargetingModule = retargetingModule; this.underlyingNamespace = underlyingNamespace; }
public RetargetingTypeParameterSymbol(RetargetingModuleSymbol retargetingModule, TypeParameterSymbol underlyingTypeParameter) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingTypeParameter != null); Debug.Assert(!(underlyingTypeParameter is RetargetingTypeParameterSymbol)); this.retargetingModule = retargetingModule; this.underlyingTypeParameter = underlyingTypeParameter; }
public RetargetingPropertySymbol(RetargetingModuleSymbol retargetingModule, PropertySymbol underlyingProperty) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingProperty != null); Debug.Assert(!(underlyingProperty is RetargetingPropertySymbol)); this.retargetingModule = retargetingModule; this.underlyingProperty = underlyingProperty; }
private DiagnosticInfo lazyUseSiteDiagnostic = CSDiagnosticInfo.EmptyErrorInfo; // Indicates unknown state. public RetargetingEventSymbol(RetargetingModuleSymbol retargetingModule, EventSymbol underlyingEvent) { Debug.Assert((object)retargetingModule != null); Debug.Assert((object)underlyingEvent != null); Debug.Assert(!(underlyingEvent is RetargetingEventSymbol)); this.retargetingModule = retargetingModule; this.underlyingEvent = underlyingEvent; }
public RetargetingFieldSymbol( RetargetingModuleSymbol retargetingModule, FieldSymbol underlyingField ) : base(underlyingField) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingField is RetargetingFieldSymbol)); _retargetingModule = retargetingModule; }
public RetargetingEventSymbol( RetargetingModuleSymbol retargetingModule, EventSymbol underlyingEvent ) : base(underlyingEvent) { RoslynDebug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingEvent is RetargetingEventSymbol)); _retargetingModule = retargetingModule; }
public RetargetingTypeParameterSymbol( RetargetingModuleSymbol retargetingModule, TypeParameterSymbol underlyingTypeParameter ) : base(underlyingTypeParameter) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingTypeParameter is RetargetingTypeParameterSymbol)); _retargetingModule = retargetingModule; }
public RetargetingPropertySymbol( RetargetingModuleSymbol retargetingModule, PropertySymbol underlyingProperty ) : base(underlyingProperty) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingProperty is RetargetingPropertySymbol)); _retargetingModule = retargetingModule; }
public RetargetingNamedTypeSymbol( RetargetingModuleSymbol retargetingModule, NamedTypeSymbol underlyingType, TupleExtraData tupleData = null ) : base(underlyingType, tupleData) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingType is RetargetingNamedTypeSymbol)); _retargetingModule = retargetingModule; }
/// <summary> /// Constructor. /// </summary> /// <param name="underlyingAssembly"> /// The underlying AssemblySymbol, cannot be an instance of RetargetingAssemblySymbol. /// </param> /// <param name="isLinked"> /// Assembly is /l-ed by compilation that is using it as a reference. /// </param> public RetargetingAssemblySymbol(SourceAssemblySymbol underlyingAssembly, bool isLinked) { Debug.Assert((object)underlyingAssembly != null); _underlyingAssembly = underlyingAssembly; ModuleSymbol[] modules = new ModuleSymbol[underlyingAssembly.Modules.Length]; modules[0] = new RetargetingModuleSymbol(this, (SourceModuleSymbol)underlyingAssembly.Modules[0]); for (int i = 1; i < underlyingAssembly.Modules.Length; i++) { PEModuleSymbol under = (PEModuleSymbol)underlyingAssembly.Modules[i]; modules[i] = new PEModuleSymbol(this, under.Module, under.ImportOptions, i); } _modules = modules.AsImmutableOrNull(); _isLinked = isLinked; }
/// <summary> /// Constructor. /// </summary> /// <param name="underlyingAssembly"> /// The underlying AssemblySymbol, cannot be an instance of RetargetingAssemblySymbol. /// </param> /// <param name="isLinked"> /// Assembly is /l-ed by compilation that is using it as a reference. /// </param> public RetargetingAssemblySymbol(SourceAssemblySymbol underlyingAssembly, bool isLinked) { Debug.Assert((object)underlyingAssembly != null); _underlyingAssembly = underlyingAssembly; ModuleSymbol[] modules = new ModuleSymbol[underlyingAssembly.Modules.Length]; modules[0] = new RetargetingModuleSymbol(this, (SourceModuleSymbol)underlyingAssembly.Modules[0]); for (int i = 1; i < underlyingAssembly.Modules.Length; i++) { PEModuleSymbol under = (PEModuleSymbol)underlyingAssembly.Modules[i]; modules[i] = new PEModuleSymbol(this, under.Module, under.ImportOptions, i); } _modules = modules.AsImmutableOrNull(); _isLinked = isLinked; }