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