15 references to StringLiteral
Microsoft.Interop.JavaScript.JSImportGenerator (9)
JSExportGenerator.cs (6)
126
writer.WriteLine($"[{Constants.ModuleInitializerAttributeGlobal}, {Constants.DynamicDependencyAttributeGlobal}({Constants.DynamicallyAccessedMemberTypesGlobal}.PublicMethods | {Constants.DynamicallyAccessedMemberTypesGlobal}.NonPublicMethods, {CodeWriterHelpers.
StringLiteral
(GeneratedNamespace + "." + InitializerClass)}, {CodeWriterHelpers.
StringLiteral
(assemblyName)})]");
201
string registration = $"{Constants.JSFunctionSignatureGlobal}.{Constants.BindCSFunctionMethod}({CodeWriterHelpers.
StringLiteral
(signature.QualifiedMethodName)}, {signature.TypesHash.ToString(CultureInfo.InvariantCulture)}, {signatures});";
202
string attribute = $"{Constants.DynamicDependencyAttributeGlobal}({CodeWriterHelpers.
StringLiteral
(signature.WrapperName)}, {CodeWriterHelpers.
StringLiteral
(signature.StubTypeFullName)}, {CodeWriterHelpers.
StringLiteral
(signature.AssemblyName)})";
JSImportGenerator.cs (3)
181
writer.WriteLine($"[{Constants.SupportedOSPlatformAttribute}({CodeWriterHelpers.
StringLiteral
(Constants.BrowserPlatform)})]");
202
string functionName = CodeWriterHelpers.
StringLiteral
(jsImportData.FunctionName);
203
string moduleName = jsImportData.ModuleName is null ? "null" : CodeWriterHelpers.
StringLiteral
(jsImportData.ModuleName);
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
363
CodeWriterHelpers.
StringLiteral
(target.ModuleName),
364
$"{nameof(DllImportAttribute.EntryPoint)} = {CodeWriterHelpers.
StringLiteral
(target.EntryPoint ?? methodName)}",
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
309
CodeWriterHelpers.
StringLiteral
(target.ModuleName),
310
$"{nameof(DllImportAttribute.EntryPoint)} = {CodeWriterHelpers.
StringLiteral
(target.EntryPoint ?? methodName)}",
Microsoft.Interop.SourceGeneration (2)
SignatureContext.cs (2)
78
additionalAttrs.Add($"{TypeNames.GlobalAlias}{TypeNames.System_CodeDom_Compiler_GeneratedCodeAttribute}({CodeWriterHelpers.
StringLiteral
(generatorName)}, {CodeWriterHelpers.
StringLiteral
(generatorVersion)})");