1 instantiation of NoMarshallingInfo
Microsoft.Interop.SourceGeneration (1)
MarshallingAttributeInfo.cs (1)
45
public static readonly MarshallingInfo Instance = new
NoMarshallingInfo
();
60 references to NoMarshallingInfo
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
223
public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) => new TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation.ExplicitlyUnsupported,
NoMarshallingInfo
.Instance);
ComInterfaceGenerator.cs (1)
305
&& returnSwappedSignatureElements[i].MarshallingAttributeInfo.Equals(
NoMarshallingInfo
.Instance))
VirtualMethodPointerStubGenerator.cs (1)
218
if (methodStub.ExceptionMarshallingInfo !=
NoMarshallingInfo
.Instance)
VtableIndexStubGenerator.cs (3)
333
return
NoMarshallingInfo
.Instance;
351
?
NoMarshallingInfo
.Instance
362
return
NoMarshallingInfo
.Instance;
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSMarshalAsAttributeInfoParser.cs (1)
55
return new JSMarshallingInfo(
NoMarshallingInfo
.Instance, JSTypeInfo.CreateJSTypeInfoForTypeSymbol(type))
JSMarshallingInfo.cs (1)
12
:this(
NoMarshallingInfo
.Instance, new JSInvalidTypeInfo())
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelStringMarshallingInfoProvider.cs (1)
32
return _defaultMarshallingInfo.CharEncoding == CharEncoding.Undefined ?
NoMarshallingInfo
.Instance : new MarshallingInfoStringSupport(_defaultMarshallingInfo.CharEncoding);
Microsoft.Interop.SourceGeneration (51)
ArrayMarshallingInfoProvider.cs (2)
62
return
NoMarshallingInfo
.Instance;
84
return
NoMarshallingInfo
.Instance;
BlittableTypeMarshallingInfoProvider.cs (1)
32
return
NoMarshallingInfo
.Instance;
BooleanMarshallingInfoProvider.cs (1)
25
return
NoMarshallingInfo
.Instance;
BoundGenerators.cs (1)
23
IBoundMarshallingGenerator defaultBoundGenerator = fallbackGenerator.Bind(new TypePositionInfo(SpecialTypeInfo.Void,
NoMarshallingInfo
.Instance), context);
ComInterfaceMarshallingInfoProvider.cs (2)
37
return
NoMarshallingInfo
.Instance;
51
return
NoMarshallingInfo
.Instance;
CustomMarshallingInfoHelper.cs (15)
26
return
NoMarshallingInfo
.Instance;
33
return
NoMarshallingInfo
.Instance;
51
return
NoMarshallingInfo
.Instance;
67
return
NoMarshallingInfo
.Instance;
75
return
NoMarshallingInfo
.Instance;
87
return
NoMarshallingInfo
.Instance;
99
return
NoMarshallingInfo
.Instance;
109
return
NoMarshallingInfo
.Instance;
121
/// <returns>The marshalling info for the given managed type and marshaller entrypoint type, or <see cref="
NoMarshallingInfo
.Instance" /> if the marshaller requires use-site information.</returns>
142
return
NoMarshallingInfo
.Instance;
149
return
NoMarshallingInfo
.Instance;
159
return
NoMarshallingInfo
.Instance;
167
return
NoMarshallingInfo
.Instance;
177
return
NoMarshallingInfo
.Instance;
189
return
NoMarshallingInfo
.Instance;
ManualTypeMarshallingHelper.cs (1)
142
return TryGetMarshallersFromEntryType(entryPointType, managedType, isLinearCollectionMarshalling, compilation, _ =>
NoMarshallingInfo
.Instance, onArityMismatch, out marshallers);
MarshalAsWithCustomMarshallersParser.cs (2)
56
return
NoMarshallingInfo
.Instance;
59
MarshallingInfo elementMarshallingInfo =
NoMarshallingInfo
.Instance;
Marshalling\CharMarshallingGeneratorResolver.cs (1)
37
if (marshalInfo is
NoMarshallingInfo
)
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (16)
41
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_SByte }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.I1, _) }
42
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Byte }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.U1, _) }
43
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int16 }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.I2, _) }
44
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UInt16 }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.U2, _) }
45
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int32 }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.I4 or UnmanagedType.Error, _) }
46
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UInt32 }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.U4 or UnmanagedType.Error, _) }
47
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int64 }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.I8, _) }
48
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UInt64 }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.U8, _) }
49
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_IntPtr }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.SysInt, _) }
50
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UIntPtr }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.SysUInt, _) }
51
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Single }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.R4, _) }
52
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Double }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.R8, _) }:
57
case { ManagedType: EnumTypeInfo enumType, MarshallingAttributeInfo:
NoMarshallingInfo
}:
67
case { ManagedType: PointerTypeInfo{ IsFunctionPointer: false }, MarshallingAttributeInfo:
NoMarshallingInfo
}:
71
case { ManagedType: PointerTypeInfo { IsFunctionPointer: true }, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.FunctionPtr, _) }:
87
case { ManagedType: DelegateTypeInfo, MarshallingAttributeInfo:
NoMarshallingInfo
or MarshalAsInfo(UnmanagedType.FunctionPtr, _) }:
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
18
if (info.MarshallingAttributeInfo is
NoMarshallingInfo
&& CustomTypeToErrorMessageMap.TryGetValue(info.ManagedType, out string errorMessage))
MarshallingInfoParser.cs (3)
252
return GetMarshallingInfoForType(type, indirectionDepth, useSiteAttributes, GetMarshallingInfo) ??
NoMarshallingInfo
.Instance;
316
info = new TypePositionInfo(SpecialTypeInfo.Void,
NoMarshallingInfo
.Instance);
345
info = new TypePositionInfo(SpecialTypeInfo.Void,
NoMarshallingInfo
.Instance);
MarshalUsingAttributeParser.cs (1)
48
return
NoMarshallingInfo
.Instance;
NativeMarshallingAttributeParser.cs (1)
33
return
NoMarshallingInfo
.Instance;
SafeHandleMarshallingInfoProvider.cs (2)
60
return
NoMarshallingInfo
.Instance;
70
return
NoMarshallingInfo
.Instance;
StringMarshallingInfoProvider.cs (1)
34
return
NoMarshallingInfo
.Instance;