2 writes to _context
Microsoft.Interop.SourceGeneration (2)
ManagedToNativeStubGenerator.cs (2)
66
_context
= new DefaultIdentifierContext(ReturnIdentifier, $"{ReturnIdentifier}{StubIdentifierContext.GeneratedNativeIdentifierSuffix}", MarshalDirection.ManagedToUnmanaged)
73
_context
= new DefaultIdentifierContext(ReturnIdentifier, ReturnIdentifier, MarshalDirection.ManagedToUnmanaged)
5 references to _context
Microsoft.Interop.SourceGeneration (5)
ManagedToNativeStubGenerator.cs (5)
98
return
_context
.GetIdentifiers(info).native;
111
GeneratedStatements statements = GeneratedStatements.Create(_marshallers, StubCodeContext.DefaultManagedToNativeStub,
_context
, IdentifierName(targetIdentifier));
113
VariableDeclarations declarations = VariableDeclarations.GenerateDeclarationsForManagedToUnmanaged(_marshallers,
_context
, shouldInitializeVariables);
191
allStatements.Add(ReturnStatement(IdentifierName(
_context
.GetIdentifiers(_marshallers.ManagedReturnMarshaller.TypeInfo).managed)));
198
return _marshallers.GenerateTargetMethodSignatureData(
_context
);