Skip to content

Commit

Permalink
Add AggressiveInlining attribute to GetNextAvtLex to force test failu…
Browse files Browse the repository at this point in the history
…re as in dotnet#40607
  • Loading branch information
echesakov committed Aug 15, 2020
1 parent c67684b commit 0ae0a74
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Text;
Expand Down Expand Up @@ -905,6 +906,7 @@ private static void getXPathLex(string avt, ref int start, StringBuilder lex)
throw XsltException.Create(state == InExp ? SR.Xslt_OpenBracesAvt : SR.Xslt_OpenLiteralAvt, avt);
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool GetNextAvtLex(string avt, ref int start, StringBuilder lex, out bool isAvt)
{
Debug.Assert(start <= avt.Length);
Expand Down

0 comments on commit 0ae0a74

Please sign in to comment.