Emitter\Model\PEModuleBuilder.cs (13)
695diagnostics.Add(ErrorCode.ERR_ExportedTypeConflictsWithDeclaration, NoLocation.Singleton, type, type.ContainingModule);
715diagnostics.Add(ErrorCode.ERR_ExportedTypesConflict, NoLocation.Singleton, type, type.ContainingModule, contender, contender.ContainingModule);
720diagnostics.Add(ErrorCode.ERR_ForwardedTypeConflictsWithExportedType, NoLocation.Singleton, type, type.ContainingAssembly, contender, contender.ContainingModule);
1494if ((object)Compilation.SourceModule != symbol.ContainingModule)
1505if ((object)Compilation.SourceModule != symbol.ContainingModule)
1516if ((object)Compilation.SourceModule != symbol.ContainingModule)
1527if ((object)Compilation.SourceModule != symbol.ContainingModule)
1538if ((object)Compilation.SourceModule != symbol.ContainingModule)
1554if ((object)Compilation.SourceModule != symbol.ContainingModule)
1615if ((object)module != symbol && (object)module != symbol.ContainingModule)
1643if ((object)Compilation.SourceModule != symbol.ContainingModule)
1689if ((object)Compilation.SourceModule != symbol.ContainingModule)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (15)
44Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
50Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
56Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
62Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
88Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
94Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
100Debug.Assert(ReferenceEquals(symbol.ContainingModule, _underlyingModule));
279var module = type.ContainingModule;
341if ((object)type.ContainingModule == (object)_retargetingModule.UnderlyingModule)
663if ((object)symbol.OriginalDefinition.ContainingModule == (object)_retargetingModule.UnderlyingModule &&
876Debug.Assert(ReferenceEquals(method.ContainingModule, this.UnderlyingModule));
886if (ReferenceEquals(method.ContainingModule, this.UnderlyingModule) && ReferenceEquals(method, method.OriginalDefinition))
926Debug.Assert(ReferenceEquals(property.ContainingModule, this.UnderlyingModule));
934if (ReferenceEquals(property.ContainingModule, this.UnderlyingModule) && ReferenceEquals(property, property.OriginalDefinition))
950if (ReferenceEquals(@event.ContainingModule, this.UnderlyingModule) && ReferenceEquals(@event, @event.OriginalDefinition))