10 writes to CurrentStage
Microsoft.Interop.SourceGeneration (10)
GeneratedStatements.cs (5)
52
StubIdentifierContext stageContext = context with {
CurrentStage
= stage };
73
StubIdentifierContext invokeContext = context with {
CurrentStage
= StubIdentifierContext.Stage.Invoke };
92
StubIdentifierContext invokeContext = context with {
CurrentStage
= StubIdentifierContext.Stage.Invoke };
148
marshaller.Generate(writer, context with {
CurrentStage
= StubIdentifierContext.Stage.Marshal });
149
marshaller.Generate(writer, context with {
CurrentStage
= StubIdentifierContext.Stage.PinnedMarshal });
Marshalling\ElementsMarshalling.cs (3)
277
CurrentStage
= StubIdentifierContext.Stage.Setup,
294
elementMarshaller.Generate(stagesWriter, identifierContext with {
CurrentStage
= stage });
309
elementMarshaller.Generate(writer, identifierContext with {
CurrentStage
= StubIdentifierContext.Stage.Setup });
Marshalling\GenericFriendlyPointerIdentifierContext.cs (1)
22
CurrentStage
= inner.CurrentStage;
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
128
CurrentStage
= innerContext.CurrentStage;
33 references to CurrentStage
Microsoft.Interop.ComInterfaceGenerator (6)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
36
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Unmarshal)
Marshallers\KeepAliveThisMarshaller.cs (1)
13
if (context.
CurrentStage
!= StubIdentifierContext.Stage.NotifyForSuccessfulInvoke)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (2)
37
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Unmarshal)
62
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Unmarshal)
Marshallers\ObjectUnwrapperResolver.cs (1)
33
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Unmarshal)
Marshallers\StructAsHResultMarshallerFactory.cs (1)
31
switch (context.
CurrentStage
)
Microsoft.Interop.JavaScript.JSImportGenerator (12)
Marshaling\BaseJSGenerator.cs (1)
33
if (context.
CurrentStage
== StubIdentifierContext.Stage.Setup
Marshaling\FuncJSGenerator.cs (4)
18
&& ((context.
CurrentStage
== StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged)
19
|| (context.
CurrentStage
== StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged)))
25
&& ((context.
CurrentStage
== StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged)
26
|| (context.
CurrentStage
== StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged)))
Marshaling\ImplicitArgumentGenerator.cs (1)
10
if (context.
CurrentStage
== StubIdentifierContext.Stage.Setup)
Marshaling\PrimitiveJSGenerator.cs (2)
19
if (context.
CurrentStage
== StubIdentifierContext.Stage.UnmarshalCapture && marshalDirection is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional)
24
if (context.
CurrentStage
== StubIdentifierContext.Stage.Marshal && marshalDirection is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional)
Marshaling\TaskJSGenerator.cs (4)
17
&& ((context.
CurrentStage
== StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged)
18
|| (context.
CurrentStage
== StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged)))
24
&& ((context.
CurrentStage
== StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged)
25
|| (context.
CurrentStage
== StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged)))
Microsoft.Interop.SourceGeneration (15)
Marshalling\BlittableMarshaller.cs (2)
40
if (context.
CurrentStage
== StubIdentifierContext.Stage.Pin)
49
switch (context.
CurrentStage
)
Marshalling\BoolMarshaller.cs (1)
49
switch (context.
CurrentStage
)
Marshalling\CharMarshaller.cs (3)
48
if (context.
CurrentStage
== StubIdentifierContext.Stage.Pin)
52
else if (context.
CurrentStage
== StubIdentifierContext.Stage.PinnedMarshal)
63
switch (context.
CurrentStage
)
Marshalling\CustomTypeMarshallingGenerator.cs (1)
27
switch (context.
CurrentStage
)
Marshalling\DelegateMarshaller.cs (1)
27
switch (context.
CurrentStage
)
Marshalling\ElementsMarshalling.cs (1)
212
GenerateContentsMarshallingStatement(contentsWriter, context, indexConstraint, elementMarshaller, context.
CurrentStage
);
Marshalling\GenericFriendlyPointerIdentifierContext.cs (1)
22
CurrentStage = inner.
CurrentStage
;
Marshalling\IidParameterIndexMarshallerResolver.cs (1)
35
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Marshal)
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
66
if (context.
CurrentStage
== StubIdentifierContext.Stage.Pin)
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (3)
105
if (context.
CurrentStage
== StubIdentifierContext.Stage.Setup)
112
inner.Generate(writer, context.
CurrentStage
== StubIdentifierContext.Stage.CleanupCallerAllocated
128
CurrentStage = innerContext.
CurrentStage
;