1 type derived from JSSimpleTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
175internal sealed record JSInvalidTypeInfo() : JSSimpleTypeInfo(KnownManagedType.None);
17 instantiations of JSSimpleTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (17)
JSManagedTypeInfo.cs (17)
20return new JSSimpleTypeInfo(KnownManagedType.Void) 25return new JSSimpleTypeInfo(KnownManagedType.Boolean) 30return new JSSimpleTypeInfo(KnownManagedType.Byte) 35return new JSSimpleTypeInfo(KnownManagedType.Char) 40return new JSSimpleTypeInfo(KnownManagedType.Int16) 45return new JSSimpleTypeInfo(KnownManagedType.Int32) 50return new JSSimpleTypeInfo(KnownManagedType.Int64) 55return new JSSimpleTypeInfo(KnownManagedType.Single) 60return new JSSimpleTypeInfo(KnownManagedType.Double) 66return new JSSimpleTypeInfo(KnownManagedType.IntPtr) 71return new JSSimpleTypeInfo(KnownManagedType.DateTime) 76return new JSSimpleTypeInfo(KnownManagedType.DateTimeOffset) 81return new JSSimpleTypeInfo(KnownManagedType.Exception) 86return new JSSimpleTypeInfo(KnownManagedType.Object) 91return new JSSimpleTypeInfo(KnownManagedType.String) 96return new JSSimpleTypeInfo(KnownManagedType.JSObject) 119return new JSTaskTypeInfo(new JSSimpleTypeInfo(KnownManagedType.Void, SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword))));
28 references to JSSimpleTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (28)
JSGeneratorFactory.cs (7)
45case { TypeInfo: JSSimpleTypeInfo(KnownManagedType.Void), JSType: JSTypeFlags.DiscardNoWait }: 47case { TypeInfo: JSSimpleTypeInfo(KnownManagedType.Void), JSType: JSTypeFlags.Discard }: 48case { TypeInfo: JSSimpleTypeInfo(KnownManagedType.Void), JSType: JSTypeFlags.Void }: 49case { TypeInfo: JSSimpleTypeInfo(KnownManagedType.Void), JSType: JSTypeFlags.None }: 50case { TypeInfo: JSSimpleTypeInfo(KnownManagedType.Void), JSType: JSTypeFlags.Missing }: 62case { TypeInfo: JSSimpleTypeInfo simple }: 82case { TypeInfo: JSTaskTypeInfo(JSSimpleTypeInfo(KnownManagedType.Void)) task }:
JSManagedTypeInfo.cs (14)
103if (CreateJSTypeInfoForTypeSymbol(nullable.TypeArguments[0]) is JSSimpleTypeInfo uti) 111if (CreateJSTypeInfoForTypeSymbol(elementType) is JSSimpleTypeInfo eti) 121if (CreateJSTypeInfoForTypeSymbol(taskType.TypeArguments[0]) is JSSimpleTypeInfo rti) 129if (CreateJSTypeInfoForTypeSymbol(spanType.TypeArguments[0]) is JSSimpleTypeInfo sti) 137if (CreateJSTypeInfoForTypeSymbol(arraySegmentType.TypeArguments[0]) is JSSimpleTypeInfo gti) 145return new JSFunctionTypeInfo(true, Array.Empty<JSSimpleTypeInfo>()); 148.Select(arg => CreateJSTypeInfoForTypeSymbol(arg) as JSSimpleTypeInfo) 159.Select(argName => CreateJSTypeInfoForTypeSymbol(argName) as JSSimpleTypeInfo) 187internal sealed record JSArrayTypeInfo(JSSimpleTypeInfo ElementTypeInfo) : JSTypeInfo(KnownManagedType.Array); 189internal sealed record JSSpanTypeInfo(JSSimpleTypeInfo ElementTypeInfo) : JSTypeInfo(KnownManagedType.Span); 191internal sealed record JSArraySegmentTypeInfo(JSSimpleTypeInfo ElementTypeInfo) : JSTypeInfo(KnownManagedType.ArraySegment); 193internal sealed record JSTaskTypeInfo(JSSimpleTypeInfo ResultTypeInfo) : JSTypeInfo(KnownManagedType.Task); 195internal sealed record JSNullableTypeInfo(JSSimpleTypeInfo ResultTypeInfo) : JSTypeInfo(KnownManagedType.Nullable); 197internal sealed record JSFunctionTypeInfo(bool IsAction, JSSimpleTypeInfo[] ArgsTypeInfo) : JSTypeInfo(IsAction ? KnownManagedType.Action : KnownManagedType.Function);
Marshaling\FuncJSGenerator.cs (2)
79var sourceType = info.ArgsTypeInfo[i]; 100var sourceType = info.ArgsTypeInfo[i];
Marshaling\TaskJSGenerator.cs (5)
25if (jsty.ResultTypeInfo is JSSimpleTypeInfo(KnownManagedType.Void)) 51yield return jsty.ResultTypeInfo is JSSimpleTypeInfo(KnownManagedType.Void) 58yield return jsty.ResultTypeInfo is JSSimpleTypeInfo(KnownManagedType.Void) 70yield return jsty.ResultTypeInfo is JSSimpleTypeInfo(KnownManagedType.Void) 77yield return jsty.ResultTypeInfo is JSSimpleTypeInfo(KnownManagedType.Void)