2 writes to JSType
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSMarshalAsAttributeInfoParser.cs (1)
57
JSType
= jsType,
JSMarshallingInfo.cs (1)
25
JSType
= JSTypeFlags.Missing;
16 references to JSType
Microsoft.Interop.JavaScript.JSImportGenerator (16)
JSGeneratorFactory.cs (16)
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 }:
51
return ResolvedGenerator.Resolved(new VoidGenerator(info, context, jsMarshalingInfo.
JSType
== JSTypeFlags.Void ? MarshalerType.Void : MarshalerType.Discard));
54
case {
JSType
: JSTypeFlags.Discard }:
58
case {
JSType
: JSTypeFlags.DiscardNoWait }:
63
return Create(info, context, isToJs, simple.KnownType, [], jsMarshalingInfo.
JSType
, Array.Empty<JSTypeFlags>(), fail);
67
return Create(info, context, isToJs, nullable.KnownType, [nullable.ResultTypeInfo.KnownType], jsMarshalingInfo.
JSType
, null, fail);
71
return Create(info, context, isToJs, array.KnownType, [array.ElementTypeInfo.KnownType], jsMarshalingInfo.
JSType
, jsMarshalingInfo.JSTypeArguments, fail);
75
return Create(info, context, isToJs, segment.KnownType, [segment.ElementTypeInfo.KnownType], jsMarshalingInfo.
JSType
, jsMarshalingInfo.JSTypeArguments, fail);
79
return Create(info, context, isToJs, span.KnownType, [span.ElementTypeInfo.KnownType], jsMarshalingInfo.
JSType
, jsMarshalingInfo.JSTypeArguments, fail);
83
return Create(info, context, isToJs, task.KnownType, [], jsMarshalingInfo.
JSType
, jsMarshalingInfo.JSTypeArguments, fail);
85
return Create(info, context, isToJs, task.KnownType, [task.ResultTypeInfo.KnownType], jsMarshalingInfo.
JSType
, jsMarshalingInfo.JSTypeArguments, fail);
89
return Create(info, context, isToJs, function.KnownType, function.ArgsTypeInfo.Select(a => a.KnownType).ToArray(), jsMarshalingInfo.
JSType
, jsMarshalingInfo.JSTypeArguments, fail);