1 implementation of TypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Marshaling\BaseJSGenerator.cs (1)
24
public TypePositionInfo
TypeInfo
=> _inner.TypeInfo;
53 references to TypeInfo
Microsoft.Interop.ComInterfaceGenerator (1)
UnmanagedToManagedStubGenerator.cs (1)
103
allStatements.Add(ReturnStatement(IdentifierName(_context.GetIdentifiers(_marshallers.NativeReturnMarshaller.
TypeInfo
).native)));
Microsoft.Interop.JavaScript.JSImportGenerator (12)
JSExportCodeGenerator.cs (7)
54
if (_marshallers.ManagedReturnMarshaller.
TypeInfo
.MarshallingAttributeInfo is JSMarshallingInfo(_, JSTaskTypeInfo))
56
IBoundMarshallingGenerator spanArg = _marshallers.SignatureMarshallers.FirstOrDefault(m => m.
TypeInfo
.MarshallingAttributeInfo is JSMarshallingInfo(_, JSSpanTypeInfo));
59
diagnosticsBag.ReportGeneratorDiagnostic(new GeneratorDiagnostic.NotSupported(spanArg.
TypeInfo
)
179
statementsToUpdate.Add(LocalDeclarationStatement(VariableDeclaration(marshaller.
TypeInfo
.ManagedType.Syntax)
180
.WithVariables(SingletonSeparatedList(VariableDeclarator(marshaller.
TypeInfo
.InstanceIdentifier)))));
206
arguments.Add(Argument(IdentifierName(marshaller.
TypeInfo
.InstanceIdentifier)));
219
(string _, string nativeIdentifier) = _context.GetIdentifiers(_marshallers.ManagedReturnMarshaller.
TypeInfo
);
JSImportCodeGenerator.cs (4)
61
if (_marshallers.ManagedReturnMarshaller.
TypeInfo
.MarshallingAttributeInfo is JSMarshallingInfo(_, JSTaskTypeInfo))
63
IBoundMarshallingGenerator spanArg = _marshallers.SignatureMarshallers.FirstOrDefault(m => m.
TypeInfo
.MarshallingAttributeInfo is JSMarshallingInfo(_, JSSpanTypeInfo));
66
diagnosticsBag.ReportGeneratorDiagnostic(new GeneratorDiagnostic.NotSupported(spanArg.
TypeInfo
)
130
allStatements.Add(ReturnStatement(IdentifierName(_context.GetIdentifiers(_marshallers.ManagedReturnMarshaller.
TypeInfo
).managed)));
Marshaling\BaseJSGenerator.cs (1)
24
public TypePositionInfo TypeInfo => _inner.
TypeInfo
;
Microsoft.Interop.SourceGeneration (40)
BoundGenerators.cs (9)
70
managedParamMarshallers.Sort(static (m1, m2) => m1.
TypeInfo
.ManagedIndex.CompareTo(m2.
TypeInfo
.ManagedIndex));
71
nativeParamMarshallers.Sort(static (m1, m2) => m1.
TypeInfo
.NativeIndex.CompareTo(m2.
TypeInfo
.NativeIndex));
120
static m => GetInfoIndex(m.
TypeInfo
),
121
static m => GetInfoDependencies(m.
TypeInfo
))
185
public bool ManagedNativeSameReturn => ManagedReturnMarshaller.
TypeInfo
.IsNativeReturnPosition;
187
public bool IsManagedVoidReturn => ManagedReturnMarshaller.
TypeInfo
.ManagedType == SpecialTypeInfo.Void;
189
public bool IsUnmanagedVoidReturn => NativeReturnMarshaller.
TypeInfo
.ManagedType == SpecialTypeInfo.Void;
GeneratedStatements.cs (5)
106
if (marshallers.NativeReturnMarshaller.
TypeInfo
.ManagedType == SpecialTypeInfo.Void)
111
var (managed, native) = context.GetIdentifiers(marshallers.NativeReturnMarshaller.
TypeInfo
);
140
if (marshallers.ManagedReturnMarshaller.
TypeInfo
.ManagedType == SpecialTypeInfo.Void)
148
IdentifierName(context.GetIdentifiers(marshallers.ManagedReturnMarshaller.
TypeInfo
).managed),
162
var (managed, _) = context.GetIdentifiers(managedExceptionMarshaller.
TypeInfo
);
ManagedToNativeStubGenerator.cs (3)
84
noMarshallingNeeded &= (generator.IsBlittable() && !generator.
TypeInfo
.IsByRef) || generator.IsForwarder();
88
HasForwardedTypes |= generator.IsForwarder() && generator is {
TypeInfo
.ManagedType: not SpecialTypeInfo { SpecialType: Microsoft.CodeAnalysis.SpecialType.System_Void } };
191
allStatements.Add(ReturnStatement(IdentifierName(_context.GetIdentifiers(_marshallers.ManagedReturnMarshaller.
TypeInfo
).managed)));
Marshalling\ByValueContentsMarshalKindValidator.cs (2)
37
var support = generator.Generator.SupportsByValueMarshalKind(generator.Generator.
TypeInfo
.ByValueContentsMarshalKind, out GeneratorDiagnostic? diagnostic);
42
ByValueMarshalKindSupport.NotSupported => ResolvedGenerator.ResolvedWithDiagnostics(s_forwarder.Bind(generator.Generator.
TypeInfo
, context), generator.Diagnostics.Add(diagnostic!)),
Marshalling\MarshallingGeneratorExtensions.cs (11)
24
SignatureBehavior.ManagedTypeAndAttributes => generator.
TypeInfo
.ManagedType.Syntax,
43
if (generator.
TypeInfo
.MarshallingAttributeInfo is IForwardedMarshallingInfo forwarded
64
return GenerateForwardingParameter(generator.
TypeInfo
, context.GetIdentifiers(generator.
TypeInfo
).managed);
71
identifierName = context.GetIdentifiers(generator.
TypeInfo
).native;
81
(string managed, string native) = context.GetIdentifiers(generator.
TypeInfo
);
82
string param = context.GetAdditionalIdentifier(generator.
TypeInfo
, ParameterIdentifierSuffix);
85
ValueBoundaryBehavior.ManagedIdentifier => generator.
TypeInfo
.IsByRef ? param : managed,
141
TypePositionInfo info = generator.
TypeInfo
;
156
TypePositionInfo info = generator.
TypeInfo
;
167
TypePositionInfo info = generator.
TypeInfo
;
VariableDeclarations.cs (10)
23
TypePositionInfo info = marshaller.
TypeInfo
;
57
(string managed, string native) = context.GetIdentifiers(marshaller.
TypeInfo
);
60
if (marshaller.
TypeInfo
.IsManagedReturnPosition || marshaller.
TypeInfo
.IsNativeReturnPosition)
63
marshaller.
TypeInfo
.ManagedType.Syntax,
86
TypePositionInfo info = marshaller.
TypeInfo
;
114
(string managed, string native) = context.GetIdentifiers(marshaller.
TypeInfo
);
117
if (marshaller.
TypeInfo
.IsNativeReturnPosition)
123
marshaller.
TypeInfo
.ManagedType.Syntax,
170
marshaller.
TypeInfo
.ManagedType.Syntax,