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