using System.Threading;
using System.Collections;
using System.Reflection;
+#if !FULL_AOT_RUNTIME
using System.Reflection.Emit;
+#endif
using System.Globalization;
using System.Security.Permissions;
using System.Runtime.CompilerServices;
&& (options & ~(RegexOptions.ECMAScript |
RegexOptions.IgnoreCase |
RegexOptions.Multiline |
-#if !SILVERLIGHT || FEATURE_LEGACYNETCF
+#if !(SILVERLIGHT) || FEATURE_LEGACYNETCF
RegexOptions.Compiled |
#endif
RegexOptions.CultureInvariant
#endif
)) != 0)
throw new ArgumentOutOfRangeException("options");
-
+
ValidateMatchTimeout(matchTimeout);
// Try to look up this regex in the cache. We do this regardless of whether useCache is true since there's
refsInitialized = true;
}
-#if !SILVERLIGHT
+#if !(SILVERLIGHT || FULL_AOT_RUNTIME)
// if the compile option is set, then compile the code if it's not already
if (UseOptionC() && factory == null) {
factory = Compile(code, roptions);
} // private static TimeSpan InitDefaultMatchTimeout
#endif // !SILVERLIGHT
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !FULL_AOT_RUNTIME
/*
* This method is here for perf reasons: if the call to RegexCompiler is NOT in the
* Regex constructor, we don't load RegexCompiler and its reflection classes when
-#if !SILVERLIGHT
+#if !SILVERLIGHT || FULL_AOT_RUNTIME
/// <devdoc>
/// </devdoc>
#if !DISABLE_CAS_USE
return newcached;
}
-#if !SILVERLIGHT
+#if !(SILVERLIGHT||FULL_AOT_RUNTIME)
/*
* True if the O option was set
*/
// subclass of the RegexRunner type.
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !FULL_AOT_RUNTIME
namespace System.Text.RegularExpressions {
_typebuilder = null;
}
-#if SILVERLIGHT
+#if SILVERLIGHT
internal void GenerateCreateType<TKey>(Type myCollectionType, FieldInfo field, Dictionary<TKey,int> ht) {
MethodInfo addMethod = myCollectionType.GetMethod("Add", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
*/
internal bool IsOnlyTopOption(RegexOptions option) {
return(option == RegexOptions.RightToLeft
-#if !SILVERLIGHT
+#if !(SILVERLIGHT||FULL_AOT_RUNTIME)
|| option == RegexOptions.Compiled
#endif
|| option == RegexOptions.CultureInvariant
ch += (char)('a' - 'A');
switch (ch) {
-#if !SILVERLIGHT
+#if !(SILVERLIGHT||FULL_AOT_RUNTIME)
case 'c':
return RegexOptions.Compiled;
#endif
// </copyright>
//------------------------------------------------------------------------------
-using System.Reflection.Emit;
using System.Diagnostics;
using System.Security.Permissions;
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !FULL_AOT_RUNTIME
+using System.Reflection.Emit;
namespace System.Text.RegularExpressions {