1 type derived from JSSimpleTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
125internal sealed record JSInvalidTypeInfo() : JSSimpleTypeInfo(KnownManagedType.None, "");
18 instantiations of JSSimpleTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (18)
JSExportGenerator.cs (1)
160new JSMarshallingInfo(NoMarshallingInfo.Instance, new JSSimpleTypeInfo(KnownManagedType.Exception, Constants.ExceptionGlobal))
JSManagedTypeInfo.cs (17)
18return new JSSimpleTypeInfo(KnownManagedType.Void, "void"); 20return new JSSimpleTypeInfo(KnownManagedType.Boolean, "bool"); 22return new JSSimpleTypeInfo(KnownManagedType.Byte, "byte"); 24return new JSSimpleTypeInfo(KnownManagedType.Char, "char"); 26return new JSSimpleTypeInfo(KnownManagedType.Int16, "short"); 28return new JSSimpleTypeInfo(KnownManagedType.Int32, "int"); 30return new JSSimpleTypeInfo(KnownManagedType.Int64, "long"); 32return new JSSimpleTypeInfo(KnownManagedType.Single, "float"); 34return new JSSimpleTypeInfo(KnownManagedType.Double, "double"); 37return new JSSimpleTypeInfo(KnownManagedType.IntPtr, "nint"); 39return new JSSimpleTypeInfo(KnownManagedType.DateTime, fullTypeName); 41return new JSSimpleTypeInfo(KnownManagedType.DateTimeOffset, fullTypeName); 43return new JSSimpleTypeInfo(KnownManagedType.Exception, fullTypeName); 45return new JSSimpleTypeInfo(KnownManagedType.Object, "object"); 47return new JSSimpleTypeInfo(KnownManagedType.String, "string"); 49return new JSSimpleTypeInfo(KnownManagedType.JSObject, fullTypeName); 69return new JSTaskTypeInfo(new JSSimpleTypeInfo(KnownManagedType.Void, "void"));
16 references to JSSimpleTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (16)
JSGeneratorFactory.cs (1)
57case { TypeInfo: JSSimpleTypeInfo simple }:
JSManagedTypeInfo.cs (15)
53if (CreateJSTypeInfoForTypeSymbol(nullable.TypeArguments[0]) is JSSimpleTypeInfo uti) 61if (CreateJSTypeInfoForTypeSymbol(elementType) is JSSimpleTypeInfo eti) 71if (CreateJSTypeInfoForTypeSymbol(taskType.TypeArguments[0]) is JSSimpleTypeInfo rti) 79if (CreateJSTypeInfoForTypeSymbol(spanType.TypeArguments[0]) is JSSimpleTypeInfo sti) 87if (CreateJSTypeInfoForTypeSymbol(arraySegmentType.TypeArguments[0]) is JSSimpleTypeInfo gti) 95return new JSFunctionTypeInfo(true, Array.Empty<JSSimpleTypeInfo>()); 98.Select(arg => CreateJSTypeInfoForTypeSymbol(arg) as JSSimpleTypeInfo) 109.Select(argName => CreateJSTypeInfoForTypeSymbol(argName) as JSSimpleTypeInfo) 129internal sealed record JSArrayTypeInfo(JSSimpleTypeInfo ElementTypeInfo) : JSTypeInfo(KnownManagedType.Array); 131internal sealed record JSSpanTypeInfo(JSSimpleTypeInfo ElementTypeInfo) : JSTypeInfo(KnownManagedType.Span); 133internal sealed record JSArraySegmentTypeInfo(JSSimpleTypeInfo ElementTypeInfo) : JSTypeInfo(KnownManagedType.ArraySegment); 135internal sealed record JSTaskTypeInfo(JSSimpleTypeInfo ResultTypeInfo) : JSTypeInfo(KnownManagedType.Task); 137internal sealed record JSNullableTypeInfo(JSSimpleTypeInfo ResultTypeInfo) : JSTypeInfo(KnownManagedType.Nullable); 139internal sealed record JSFunctionTypeInfo(bool IsAction, JSSimpleTypeInfo[] ArgsTypeInfo) : JSTypeInfo(IsAction ? KnownManagedType.Action : KnownManagedType.Function) 153foreach (JSSimpleTypeInfo argument in ArgsTypeInfo)