1 write to _underlyingType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
34_underlyingType = underlyingType;
94 references to _underlyingType
Microsoft.CodeAnalysis.CSharp (94)
Symbols\NativeIntegerTypeSymbol.cs (12)
42public override Symbol ContainingSymbol => _underlyingType.ContainingSymbol; 46internal override bool IsComImport => _underlyingType.IsComImport; 48internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _underlyingType.BaseTypeNoUseSiteDiagnostics; 50public override ExtendedSpecialType ExtendedSpecialType => _underlyingType.ExtendedSpecialType; 73ImmutableInterlocked.InterlockedInitialize(ref _lazyMembers, makeMembers(_underlyingType.GetMembers())); 82Debug.Assert(_underlyingType.Equals(underlyingMember.ContainingSymbol)); 148internal override NamedTypeSymbol GetDeclaredBaseType(ConsList<TypeSymbol> basesBeingResolved) => _underlyingType.GetDeclaredBaseType(basesBeingResolved); 166var useSiteInfo = _underlyingType.GetUseSiteInfo(); 177internal sealed override NamedTypeSymbol NativeIntegerUnderlyingType => _underlyingType; 197if (!_underlyingType.Equals(other, comparison)) 206public override int GetHashCode() => _underlyingType.GetHashCode(); 220var interfaces = _underlyingType.InterfacesNoUseSiteDiagnostics(basesBeingResolved).SelectAsArray((type, map) => map.SubstituteNamedType(type), GetTypeMap());
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (39)
52return new RetargetingNamedTypeSymbol(_retargetingModule, _underlyingType, newData); 76this.RetargetingTranslator.Retarget(_underlyingType.TypeParameters), default(ImmutableArray<TypeParameterSymbol>)); 105var underlying = _underlyingType.EnumUnderlyingType; 114return _underlyingType.MemberNames; 118internal override bool HasDeclaredRequiredMembers => _underlyingType.HasDeclaredRequiredMembers; 122return this.RetargetingTranslator.Retarget(_underlyingType.GetMembers()); 127return this.RetargetingTranslator.Retarget(_underlyingType.GetMembersUnordered()); 132return this.RetargetingTranslator.Retarget(_underlyingType.GetMembers(name)); 137foreach (FieldSymbol f in _underlyingType.GetFieldsToEmit()) 145bool isInterface = _underlyingType.IsInterfaceType(); 147foreach (MethodSymbol method in _underlyingType.GetMethodsToEmit()) 170foreach (PropertySymbol p in _underlyingType.GetPropertiesToEmit()) 178foreach (EventSymbol e in _underlyingType.GetEventsToEmit()) 186return this.RetargetingTranslator.Retarget(_underlyingType.GetEarlyAttributeDecodingMembers()); 191return this.RetargetingTranslator.Retarget(_underlyingType.GetEarlyAttributeDecodingMembers(name)); 196return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembersUnordered()); 201return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers()); 206return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers(name)); 211return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers(name, arity)); 218return this.RetargetingTranslator.Retarget(_underlyingType.ContainingSymbol); 224return this.RetargetingTranslator.GetRetargetedAttributes(_underlyingType.GetAttributes(), ref _lazyCustomAttributes); 229return this.RetargetingTranslator.RetargetAttributes(_underlyingType.GetCustomAttributesToEmit(moduleBuilder)); 252NamedTypeSymbol? underlyingResult = _underlyingType.LookupMetadataType(ref typeName); 260Debug.Assert((object)_underlyingType == underlyingResult.ContainingSymbol); 284var underlyingBase = _underlyingType.BaseTypeNoUseSiteDiagnostics; 325return this.RetargetingTranslator.Retarget(_underlyingType.GetInterfacesToEmit()); 332var underlyingBase = _underlyingType.GetDeclaredBaseType(basesBeingResolved); 344var underlyingBaseInterfaces = _underlyingType.GetDeclaredInterfaces(basesBeingResolved); 367NamedTypeSymbol coClass = _underlyingType.ComImportCoClass; 374get { return _underlyingType.IsComImport; } 387internal override bool IsFileLocal => _underlyingType.IsFileLocal; 388internal override FileIdentifier AssociatedFileIdentifier => _underlyingType.AssociatedFileIdentifier; 394internal sealed override bool IsRecord => _underlyingType.IsRecord; 395internal sealed override bool IsRecordStruct => _underlyingType.IsRecordStruct; 396internal sealed override bool HasPossibleWellKnownCloneMethod() => _underlyingType.HasPossibleWellKnownCloneMethod(); 400foreach ((MethodSymbol body, MethodSymbol implemented) in _underlyingType.SynthesizedInterfaceMethodImpls()) 414return _underlyingType.HasInlineArrayAttribute(out length); 420bool result = _underlyingType.HasCollectionBuilderAttribute(out builderType, out methodName); 430if (_underlyingType.HasAsyncMethodBuilderAttribute(out builderArgument))
Symbols\SubstitutedNamedTypeSymbol.cs (9)
142get { return _underlyingType; } 444return _underlyingType.HasCollectionBuilderAttribute(out builderType, out methodName); 449return _underlyingType.HasAsyncMethodBuilderAttribute(out builderArgument); 473internal sealed override bool IsFileLocal => _underlyingType.IsFileLocal; 474internal sealed override FileIdentifier AssociatedFileIdentifier => _underlyingType.AssociatedFileIdentifier; 480internal sealed override bool IsRecord => _underlyingType.IsRecord; 481internal sealed override bool IsRecordStruct => _underlyingType.IsRecordStruct; 482internal sealed override bool HasPossibleWellKnownCloneMethod() => _underlyingType.HasPossibleWellKnownCloneMethod(); 486return _underlyingType.HasInlineArrayAttribute(out length);
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (34)
41return _underlyingType; 47get { return _underlyingType.IsImplicitlyDeclared; } 54return _underlyingType.Arity; 62return _underlyingType.MightContainExtensionMethods; 70return _underlyingType.Name; 78return _underlyingType.MetadataName; 86return _underlyingType.HasSpecialName; 94return _underlyingType.MangleName; 100return _underlyingType.GetDocumentationCommentXml(preferredCulture, expandIncludes, cancellationToken); 107return _underlyingType.DeclaredAccessibility; 115return _underlyingType.TypeKind; 123return _underlyingType.IsInterface; 136return _underlyingType.Locations; 149return _underlyingType.DeclaringSyntaxReferences; 157return _underlyingType.IsStatic; 165return _underlyingType.IsAbstract; 173return _underlyingType.IsMetadataAbstract; 181return _underlyingType.IsSealed; 189return _underlyingType.IsMetadataSealed; 193internal override bool HasCodeAnalysisEmbeddedAttribute => _underlyingType.HasCodeAnalysisEmbeddedAttribute; 195internal override bool IsInterpolatedStringHandlerType => _underlyingType.IsInterpolatedStringHandlerType; 199get { return _underlyingType.ObsoleteAttributeData; } 204get { return _underlyingType.ShouldAddWinRTMembers; } 209get { return _underlyingType.IsWindowsRuntimeImport; } 214get { return _underlyingType.Layout; } 219get { return _underlyingType.MarshallingCharSet; } 224get { return _underlyingType.IsSerializable; } 229get { return _underlyingType.IsRefLikeType; } 234get { return _underlyingType.IsReadOnly; } 239get { return _underlyingType.HasDeclarativeSecurity; } 244return _underlyingType.GetSecurityInformation(); 249return _underlyingType.GetAppliedConditionalSymbols(); 254return _underlyingType.GetAttributeUsageInfo(); 259return _underlyingType.GetGuidString(out guidString);