15 writes to CurrentStage
Microsoft.Interop.SourceGeneration (15)
GeneratedStatements.cs (14)
33
Setup = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.Setup }),
34
Marshal = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.Marshal }),
35
Pin = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.Pin }).Cast<FixedStatementSyntax>().ToImmutableArray(),
36
PinnedMarshal = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.PinnedMarshal }),
38
Unmarshal = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.UnmarshalCapture })
39
.AddRange(GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.Unmarshal })),
40
NotifyForSuccessfulInvoke = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.NotifyForSuccessfulInvoke }),
41
GuaranteedUnmarshal = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.GuaranteedUnmarshal }),
42
CleanupCallerAllocated = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.CleanupCallerAllocated }),
43
CleanupCalleeAllocated = GenerateStatementsForStubContext(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.CleanupCalleeAllocated }),
56
InvokeStatement = GenerateStatementForNativeInvoke(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.Invoke }, expressionToInvoke)
63
InvokeStatement = GenerateStatementForManagedInvoke(marshallers, context with {
CurrentStage
= StubIdentifierContext.Stage.Invoke }, expressionToInvoke)
165
managedExceptionMarshaller.Generate(context with {
CurrentStage
= StubIdentifierContext.Stage.Marshal }));
167
managedExceptionMarshaller.Generate(context with {
CurrentStage
= StubIdentifierContext.Stage.PinnedMarshal }));
Marshalling\GenericFriendlyPointerIdentifierContext.cs (1)
22
CurrentStage
= inner.CurrentStage;
33 references to CurrentStage
Microsoft.Interop.ComInterfaceGenerator (6)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
42
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Unmarshal)
Marshallers\KeepAliveThisMarshaller.cs (1)
20
if (context.
CurrentStage
!= StubIdentifierContext.Stage.NotifyForSuccessfulInvoke)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (2)
42
if (context.
CurrentStage
!= StubIdentifierContext.Stage.NotifyForSuccessfulInvoke)
70
if (context.
CurrentStage
!= StubIdentifierContext.Stage.NotifyForSuccessfulInvoke)
Marshallers\ObjectUnwrapperResolver.cs (1)
38
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Unmarshal)
Marshallers\StructAsHResultMarshallerFactory.cs (1)
36
switch (context.
CurrentStage
)
Microsoft.Interop.JavaScript.JSImportGenerator (13)
Marshaling\BaseJSGenerator.cs (1)
48
if (context.
CurrentStage
== StubIdentifierContext.Stage.Setup)
Marshaling\FuncJSGenerator.cs (4)
48
if (context.
CurrentStage
== StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && TypeInfo.IsManagedReturnPosition)
53
if (context.
CurrentStage
== StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && TypeInfo.IsManagedReturnPosition)
63
if (context.
CurrentStage
== StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsManagedReturnPosition)
68
if (context.
CurrentStage
== StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsManagedReturnPosition)
Marshaling\PrimitiveJSGenerator.cs (4)
36
if (context.
CurrentStage
== StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && TypeInfo.IsManagedReturnPosition)
41
if (context.
CurrentStage
== StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && TypeInfo.IsManagedReturnPosition)
51
if (context.
CurrentStage
== StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsManagedReturnPosition)
56
if (context.
CurrentStage
== StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsManagedReturnPosition)
Marshaling\TaskJSGenerator.cs (4)
49
if (context.
CurrentStage
== StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && TypeInfo.IsManagedReturnPosition)
56
if (context.
CurrentStage
== StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && TypeInfo.IsManagedReturnPosition)
68
if (context.
CurrentStage
== StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsManagedReturnPosition)
75
if (context.
CurrentStage
== StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsManagedReturnPosition)
Microsoft.Interop.SourceGeneration (14)
GeneratedStatements.cs (3)
83
SyntaxTriviaList newLeadingTrivia = GenerateStageTrivia(context.
CurrentStage
);
93
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Invoke)
127
if (context.
CurrentStage
!= StubIdentifierContext.Stage.Invoke)
Marshalling\BlittableMarshaller.cs (2)
46
if (context.
CurrentStage
== StubIdentifierContext.Stage.Pin)
67
switch (context.
CurrentStage
)
Marshalling\BoolMarshaller.cs (1)
54
switch (context.
CurrentStage
)
Marshalling\CharMarshaller.cs (2)
53
if (context.
CurrentStage
== StubIdentifierContext.Stage.Pin)
84
switch (context.
CurrentStage
)
Marshalling\CustomTypeMarshallingGenerator.cs (1)
31
switch (context.
CurrentStage
)
Marshalling\DelegateMarshaller.cs (1)
34
switch (context.
CurrentStage
)
Marshalling\GenericFriendlyPointerIdentifierContext.cs (1)
22
CurrentStage = inner.
CurrentStage
;
Marshalling\MarshallingGenerator.cs (2)
119
/// <see cref="StubIdentifierContext.
CurrentStage
" /> of <paramref name="context"/>.
132
/// <see cref="StubIdentifierContext.
CurrentStage
" /> of <paramref name="context"/> may not be valid.
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
74
if (context.
CurrentStage
== StubIdentifierContext.Stage.Pin)