63 references to ECMAScript
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (31)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_BasicTests.cs (27)
4603
""", RegexOptions.
ECMAScript
);
4629
""", RegexOptions.
ECMAScript
);
4652
""", RegexOptions.
ECMAScript
);
4675
""", RegexOptions.
ECMAScript
);
4701
""", RegexOptions.
ECMAScript
);
5054
""", RegexOptions.
ECMAScript
);
5083
""", RegexOptions.
ECMAScript
);
5112
""", RegexOptions.
ECMAScript
);
5138
""", RegexOptions.
ECMAScript
);
5164
""", RegexOptions.
ECMAScript
);
5190
""", RegexOptions.
ECMAScript
);
5216
""", RegexOptions.
ECMAScript
);
5245
""", RegexOptions.
ECMAScript
);
5902
""", RegexOptions.
ECMAScript
);
5925
""", RegexOptions.
ECMAScript
);
5948
""", RegexOptions.
ECMAScript
);
5974
""", RegexOptions.
ECMAScript
);
6000
""", RegexOptions.
ECMAScript
);
6026
""", RegexOptions.
ECMAScript
);
6051
""", RegexOptions.
ECMAScript
);
6079
""", RegexOptions.
ECMAScript
);
11689
""", RegexOptions.
ECMAScript
);
11715
""", RegexOptions.
ECMAScript
);
11744
""", RegexOptions.
ECMAScript
);
11776
""", RegexOptions.
ECMAScript
);
11808
""", RegexOptions.
ECMAScript
);
11894
""", RegexOptions.
ECMAScript
);
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_DotnetNegativeTests.cs (2)
5107
""", RegexOptions.
ECMAScript
);
5239
""", RegexOptions.
ECMAScript
);
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_ReferenceTests.cs (2)
5226
""", RegexOptions.
ECMAScript
);
5285
""", RegexOptions.
ECMAScript
);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexPatternDetectorTests.cs (5)
121
=> Match("lang=regex,ecmascript", RegexOptions.
ECMAScript
);
125
=> Match("lang=regex , ecmascript", RegexOptions.
ECMAScript
);
129
=> Match("lang=regex,ecmascript. Explanation", RegexOptions.
ECMAScript
);
133
=> Match("lang=regex,ecmascript,ignorecase. Explanation", RegexOptions.
ECMAScript
| RegexOptions.IgnoreCase);
137
=> Match("Language=Regexp,ECMAScript,IgnoreCase. Explanation", RegexOptions.
ECMAScript
| RegexOptions.IgnoreCase);
Microsoft.CodeAnalysis.Features (3)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
443
if (HasOption(options, RegexOptions.
ECMAScript
) && currentVal >= 0x20)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (2)
1682
return HasOption(_options, RegexOptions.
ECMAScript
)
1878
if (!HasOption(_options, RegexOptions.
ECMAScript
) && RegexCharClass.IsBoundaryWordChar(ch))
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\Converters\RegexConverter.cs (1)
20
return new Regex(reader.GetString(), RegexOptions.Compiled | RegexOptions.
ECMAScript
, matchTimeout: TimeSpan.FromMilliseconds(1000));
System.Text.RegularExpressions (23)
System\Text\RegularExpressions\Regex.cs (3)
151
((options & RegexOptions.
ECMAScript
) != 0 && (options & ~(RegexOptions.
ECMAScript
| RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Compiled | RegexOptions.CultureInvariant)) != 0) ||
152
((options & RegexOptions.NonBacktracking) != 0 && (options & (RegexOptions.
ECMAScript
| RegexOptions.RightToLeft)) != 0))
System\Text\RegularExpressions\RegexNode.cs (1)
2886
if ((Options & RegexOptions.
ECMAScript
) != 0) sb.Append("-E");
System\Text\RegularExpressions\RegexNodeKind.cs (2)
88
/// <summary>A word boundary anchor, e.g. `\b` in <see cref="RegexOptions.
ECMAScript
"/> mode.</summary>
90
/// <summary>Not a word boundary anchor, e.g. `\B` in <see cref="RegexOptions.
ECMAScript
"/> mode..</summary>
System\Text\RegularExpressions\RegexParser.cs (16)
564
if ((_options & RegexOptions.
ECMAScript
) != 0 && _pattern[_pos] == ']')
594
charClass!.AddDigit((_options & RegexOptions.
ECMAScript
) != 0, ch == 'D', _pattern, _pos);
606
charClass!.AddSpace((_options & RegexOptions.
ECMAScript
) != 0, ch == 'S');
619
charClass!.AddWord((_options & RegexOptions.
ECMAScript
) != 0, ch == 'W');
1096
new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.
ECMAScript
) != 0 ? RegexCharClass.ECMAWordClass : RegexCharClass.WordClass);
1101
new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.
ECMAScript
) != 0 ? RegexCharClass.NotECMAWordClass : RegexCharClass.NotWordClass);
1106
new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.
ECMAScript
) != 0 ? RegexCharClass.ECMASpaceClass : RegexCharClass.SpaceClass);
1111
new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.
ECMAScript
) != 0 ? RegexCharClass.NotECMASpaceClass : RegexCharClass.NotSpaceClass);
1116
new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.
ECMAScript
) != 0 ? RegexCharClass.ECMADigitClass : RegexCharClass.DigitClass);
1121
new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.
ECMAScript
) != 0 ? RegexCharClass.NotECMADigitClass : RegexCharClass.NotDigitClass);
1212
if ((_options & RegexOptions.
ECMAScript
) != 0)
1314
if (!angled && (_options & RegexOptions.
ECMAScript
) != 0)
1443
if ((_options & RegexOptions.
ECMAScript
) != 0 && i >= 0x20)
1609
if ((_options & RegexOptions.
ECMAScript
) == 0 && RegexCharClass.IsBoundaryWordChar(ch))
1656
'b' => (_options & RegexOptions.
ECMAScript
) != 0 ? RegexNodeKind.ECMABoundary : RegexNodeKind.Boundary,
1657
'B' => (_options & RegexOptions.
ECMAScript
) != 0 ? RegexNodeKind.NonECMABoundary : RegexNodeKind.NonBoundary,
System\Text\RegularExpressions\Symbolic\SymbolicRegexRunnerFactory.cs (1)
17
Debug.Assert((options & (RegexOptions.RightToLeft | RegexOptions.
ECMAScript
)) == 0);