27 references to CodeWriterHelpers
Microsoft.Interop.ComInterfaceGenerator (7)
ComInterfaceGenerator.cs (5)
360CodeWriterHelpers.EscapeIdentifier(symbol.Name)), 725CodeWriterHelpers.EscapeIdentifier(name), 752: CodeWriterHelpers.AddModifier(syntax.Modifiers, "unsafe"); 783string propName = CodeWriterHelpers.EscapeIdentifier(IncrementalMethodStubGenerationContext.GetPropertyNameFromAccessor(accessorName)); 865string methodName = CodeWriterHelpers.EscapeIdentifier(shadow.MethodInfo.MethodName);
IncrementalMethodStubGenerationContext.cs (1)
126return CodeWriterHelpers.EscapeIdentifier(GetPropertyNameFromAccessor(templateName));
VtableIndexStubGenerator.cs (1)
373CodeWriterHelpers.EscapeIdentifier(symbol.Name));
Microsoft.Interop.JavaScript.JSImportGenerator (10)
JSExportGenerator.cs (6)
126writer.WriteLine($"[{Constants.ModuleInitializerAttributeGlobal}, {Constants.DynamicDependencyAttributeGlobal}({Constants.DynamicallyAccessedMemberTypesGlobal}.PublicMethods | {Constants.DynamicallyAccessedMemberTypesGlobal}.NonPublicMethods, {CodeWriterHelpers.StringLiteral(GeneratedNamespace + "." + InitializerClass)}, {CodeWriterHelpers.StringLiteral(assemblyName)})]"); 201string registration = $"{Constants.JSFunctionSignatureGlobal}.{Constants.BindCSFunctionMethod}({CodeWriterHelpers.StringLiteral(signature.QualifiedMethodName)}, {signature.TypesHash.ToString(CultureInfo.InvariantCulture)}, {signatures});"; 202string attribute = $"{Constants.DynamicDependencyAttributeGlobal}({CodeWriterHelpers.StringLiteral(signature.WrapperName)}, {CodeWriterHelpers.StringLiteral(signature.StubTypeFullName)}, {CodeWriterHelpers.StringLiteral(signature.AssemblyName)})";
JSImportGenerator.cs (3)
181writer.WriteLine($"[{Constants.SupportedOSPlatformAttribute}({CodeWriterHelpers.StringLiteral(Constants.BrowserPlatform)})]"); 202string functionName = CodeWriterHelpers.StringLiteral(jsImportData.FunctionName); 203string moduleName = jsImportData.ModuleName is null ? "null" : CodeWriterHelpers.StringLiteral(jsImportData.ModuleName);
JSSignatureContext.cs (1)
65string fullName = $"{method.ContainingType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)}.{CodeWriterHelpers.EscapeIdentifier(method.Name)}";
Microsoft.Interop.LibraryImportGenerator (3)
LibraryImportGenerator.cs (3)
331ImmutableArray<string> modifiers = CodeWriterHelpers.AddModifier(userDeclaredMethod.Modifiers, "extern"); 363CodeWriterHelpers.StringLiteral(target.ModuleName), 364$"{nameof(DllImportAttribute.EntryPoint)} = {CodeWriterHelpers.StringLiteral(target.EntryPoint ?? methodName)}",
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
DownlevelLibraryImportGenerator.cs (3)
277ImmutableArray<string> modifiers = CodeWriterHelpers.AddModifier(userDeclaredMethod.Modifiers, "extern"); 309CodeWriterHelpers.StringLiteral(target.ModuleName), 310$"{nameof(DllImportAttribute.EntryPoint)} = {CodeWriterHelpers.StringLiteral(target.EntryPoint ?? methodName)}",
Microsoft.Interop.SourceGeneration (4)
ContainingSyntaxContext.cs (1)
82ImmutableArray<string> modifiers = addUnsafe ? CodeWriterHelpers.AddModifier(syntax.Modifiers, "unsafe") : syntax.Modifiers;
SignatureContext.cs (2)
78additionalAttrs.Add($"{TypeNames.GlobalAlias}{TypeNames.System_CodeDom_Compiler_GeneratedCodeAttribute}({CodeWriterHelpers.StringLiteral(generatorName)}, {CodeWriterHelpers.StringLiteral(generatorVersion)})");
TypePositionInfo.cs (1)
91InstanceIdentifier = CodeWriterHelpers.EscapeIdentifier(paramSymbol.Name),