File tree 1 file changed +2
-2
lines changed
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ private static NamespaceDeclarationSyntax GenerateRegSource(
215
215
const string generatedNamespace = "System.Runtime.InteropServices.JavaScript" ;
216
216
const string initializerClass = "__GeneratedInitializer" ;
217
217
const string initializerName = "__Register_" ;
218
- const string selfInitName = "__Net7SelfInit_ " ;
218
+ const string trimmingPreserveName = "__TrimmingPreserve_ " ;
219
219
220
220
if ( methods . IsEmpty ) return NamespaceDeclaration ( IdentifierName ( generatedNamespace ) ) ;
221
221
@@ -242,7 +242,7 @@ private static NamespaceDeclarationSyntax GenerateRegSource(
242
242
. WithBody ( Block ( registerStatements ) ) ;
243
243
244
244
// HACK: protect the code from trimming with DynamicDependency attached to a ModuleInitializer
245
- MemberDeclarationSyntax initializerMethod = MethodDeclaration ( PredefinedType ( Token ( SyntaxKind . VoidKeyword ) ) , Identifier ( selfInitName ) )
245
+ MemberDeclarationSyntax initializerMethod = MethodDeclaration ( PredefinedType ( Token ( SyntaxKind . VoidKeyword ) ) , Identifier ( trimmingPreserveName ) )
246
246
. WithAttributeLists (
247
247
SingletonList < AttributeListSyntax > (
248
248
AttributeList (
You can’t perform that action at this time.
0 commit comments