52 references to Write
Microsoft.Interop.ComInterfaceGenerator (3)
GeneratedStubCodeContext.cs (2)
53
writer.
Write
(Body);
85
writer.
Write
(Body);
VirtualMethodPointerStubGenerator.cs (1)
112
writer.
Write
(body);
Microsoft.Interop.JavaScript.JSImportGenerator (9)
JSExportGenerator.cs (4)
64
writer.
Write
(generated.Source);
224
writer.
Write
(stubGenerator.GenerateStubBodyForMethod(context.SignatureContext.MethodName));
245
writer.
Write
(Constants.ArgumentsBuffer);
248
writer.
Write
($", {Constants.ArgumentsBuffer} + 1");
Marshaling\FuncJSGenerator.cs (1)
43
writer.
Write
(", ");
Marshaling\TaskJSGenerator.cs (1)
39
writer.
Write
(", ");
SignatureBindingHelpers.cs (3)
21
writer.
Write
(", ");
26
writer.
Write
(MarshalerTypeName(baseType));
30
writer.
Write
(string.Join(", ", subTypes.Select(MarshalerTypeName)));
Microsoft.Interop.SourceGeneration (40)
ContainingSyntaxContext.cs (3)
85
writer.
Write
(string.Join(" ", modifiers));
89
writer.
Write
(syntax.Name);
111
writer.
Write
(member);
IndentedTextWriter.cs (4)
128
Write
(content);
208
public void AppendLiteral(string value) => _writer.
Write
(value);
212
public void AppendFormatted(string? value) => _writer.
Write
(value);
225
_writer.
Write
(value is IFormattable formattable
ManagedToNativeStubGenerator.cs (15)
138
writer.
Write
(declarations.Initializations);
139
writer.
Write
(declarations.Variables);
140
writer.
Write
(statements.Setup);
157
writer.
Write
(statements.ErrorCleanupCalleeAllocated);
165
writer.
Write
(statements.GuaranteedUnmarshal);
166
writer.
Write
(statements.CleanupCalleeAllocated);
169
writer.
Write
(statements.CleanupCallerAllocated);
188
writer.
Write
(statements.Marshal);
189
writer.
Write
(statements.Pin);
192
writer.
Write
(statements.PinnedMarshal);
197
writer.
Write
(statements.InvokeStatement);
204
writer.
Write
(statements.NotifyForSuccessfulInvoke);
210
writer.
Write
(statements.ErrorUnmarshalCapture);
215
writer.
Write
(statements.ErrorUnmarshal);
221
writer.
Write
(statements.Unmarshal);
Marshalling\ElementsMarshalling.cs (3)
228
writer.
Write
(contentsWriter.ToString());
310
writer.
Write
(stagesWriter.ToString());
343
writer.
Write
(elementsWriter.ToString());
Marshalling\StatelessMarshallingStrategy.cs (2)
343
writer.
Write
(cleanupWriter.ToString());
368
writer.
Write
(cleanupWriter.ToString());
UnmanagedToManagedStubGenerator.cs (13)
84
writer.
Write
(declarations.Initializations);
85
writer.
Write
(declarations.Variables);
86
writer.
Write
(statements.Setup);
96
writer.
Write
(statements.ManagedExceptionCatchClauses);
102
writer.
Write
(statements.CleanupCallerAllocated);
120
writer.
Write
(statements.ErrorUnmarshalCapture);
121
writer.
Write
(statements.ErrorUnmarshal);
122
writer.
Write
(statements.GuaranteedUnmarshal);
123
writer.
Write
(statements.Unmarshal);
124
writer.
Write
(statements.InvokeStatement);
125
writer.
Write
(statements.NotifyForSuccessfulInvoke);
126
writer.
Write
(statements.Marshal);
127
writer.
Write
(statements.PinnedMarshal);