14 overrides of AsNativeInteger
Microsoft.CodeAnalysis.CSharp (12)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
264internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
307internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\ErrorTypeSymbol.cs (1)
535internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
2491internal override NamedTypeSymbol AsNativeInteger() 2588internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\NativeIntegerTypeSymbol.cs (1)
175internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
394internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
170internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1642internal override NamedTypeSymbol AsNativeInteger()
Symbols\SubstitutedNamedTypeSymbol.cs (1)
434internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedContainer.cs (1)
201internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
189internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EENamedTypeSymbol.cs (1)
351internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\MockNamedTypeSymbol.cs (1)
327internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
7 references to AsNativeInteger
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Crefs.cs (1)
373builder.Add(this.GetSpecialType(memberName == "nint" ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, diagnostics, syntax).AsNativeInteger());
Binder\Binder_Symbols.cs (1)
1021return this.GetSpecialType(specialType, diagnostics, node).AsNativeInteger();
Compilation\CSharpCompilation.cs (1)
3819return GetSpecialType(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr).AsNativeInteger();
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
124(true, false) => type.AsNativeInteger(),
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
212return result.SpecialType == SpecialType.None ? result : result.AsNativeInteger();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (2)
363Assert.Same(nativeIntegerType, underlyingType.AsNativeInteger()); 365VerifyEqualButDistinct(underlyingType, underlyingType.AsNativeInteger());