-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure XslCompiledTransform works with TrimMode=link #45522
Conversation
Resolve ILLinker warnings in Xml.Xsl in order to make a basic Xslt scenario work. Fix dotnet#45393
mono windows x64 Debug failure is #45524 |
public static readonly MethodInfo XPPrecMergeNext = GetMethod(typeof(XPathPrecedingMergeIterator), "MoveNext"); | ||
public static readonly MethodInfo AncCreate = typeof(AncestorIterator).GetMethod("Create")!; | ||
public static readonly MethodInfo AncNext = typeof(AncestorIterator).GetMethod("MoveNext")!; | ||
public static readonly MethodInfo AncCurrent = typeof(AncestorIterator).GetMethod("get_Current")!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note here I needed to add a new field Current
for each Iterator type, so we could safely call get_Current
without the linker trimming it away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
src/libraries/System.Private.Xml/tests/TrimmingTests/XslCompiledTransformTests.cs
Show resolved
Hide resolved
src/libraries/System.Private.Xml/tests/TrimmingTests/XslCompiledTransformTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please make sure to run outerloop tests
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
The only outerloop failures are in RegularExpressions.Tests. Merging. |
Resolve ILLinker warnings in Xml.Xsl in order to make a basic Xslt scenario work.
Fix #45393