94 references to Value
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
134
static c => c.Utf16SequenceLength == 1 && (char)c.
Value
is '"' or '{' or '}'))
ConvertToRawString\ConvertToRawStringHelpers.cs (4)
33
=> ch.Rune.Utf16SequenceLength == 1 && SyntaxFacts.IsNewLine((char)ch.
Value
);
36
=> ch.Rune.Utf16SequenceLength == 1 && SyntaxFacts.IsWhitespace((char)ch.
Value
);
46
=> AllEscapesAre(sequence, static ch => ch.
Value
== '"');
97
if (ch.Span.Length > 1 && SyntaxFacts.IsNewLine((char)ch.
Value
))
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (6)
155
switch (((char)vc1.
Value
, (char)vc2.
Value
))
181
if ((vc3.
Value
== ']' && nestedAnonymousSpanCount > 0) ||
182
(vc3.
Value
== '}' && nestedNamedSpanCount > 0))
216
if (colonChar.
Value
== ':')
288
get => (char)_virtualChars[position].
Value
;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\RuneExtensions.cs (1)
13
=> TryGetEscapeCharacter(ch.
Value
, out escapedChar);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (5)
94
? c <= char.MaxValue ? $"'\\u{c.
Value
:X4}'" : $"'\\U{c.
Value
:X8}'"
95
: $"'{(char)c.
Value
}'";
99
if (c < (char)127 && char.IsLetterOrDigit((char)c.
Value
))
102
if (c.
Value
is '{' or '}' or ' ')
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EmbeddedLanguages\StackFrame\StackFrameParserTests.Utilities.cs (1)
127
var enumeratedString = new string([.. enumeratedParsedCharacters.Select(ch => (char)ch.
Value
)]);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (2)
EmbeddedLanguages\AspNetCoreVirtualChar.cs (2)
36
/// <inheritdoc cref="VirtualChar.
Value
"/>
37
public int Value => VirtualChar.
Value
;
Microsoft.CodeAnalysis.Features (58)
EmbeddedLanguages\Json\JsonLexer.cs (8)
63
return this.CurrentChar.
Value
switch
96
switch (currentCh.
Value
)
100
if (currentCh.
Value
== openChar.
Value
)
133
return currentCh.
Value
switch
162
=> c.
Value
is (>= '0' and <= '9') or
176
=> ch.
Value
switch
281
while (Position < Text.Length && this.CurrentChar.
Value
is not '\r' and not '\n')
EmbeddedLanguages\Json\JsonParser.cs (1)
544
=> ch.
Value
is >= '0' and <= '9';
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (3)
88
if (chars[1].
Value
is 'x' or 'X')
123
if (c.
Value
is not (>= '0' and <= '7'))
126
var charValue = c.
Value
- '0';
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (1)
93
switch (ch.
Value
)
EmbeddedLanguages\Json\LanguageServices\JsonBraceMatcher.cs (1)
65
return ch.
Value
is '{' or '[' or '(' or '}' or ']' or ')'
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexBraceMatcher.cs (1)
63
return ch.
Value
switch
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
256
if (escapeChar.
Value
is 'p' or 'P')
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (2)
193
if (r.
Value
> char.MaxValue)
196
var ch = (char)r.
Value
;
EmbeddedLanguages\RegularExpressions\RegexHelpers.cs (1)
41
=> ch.
Value
switch
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (9)
70
=> ch.
Value
switch
218
switch (ch.
Value
)
254
=> ch.
Value
is '-' or '_' or
278
var charVal = ch.
Value
- '0';
348
switch (ch.
Value
)
375
Debug.Assert(Text[beforeSlash + 1].
Value
is 'x' or 'u');
405
=> ch.
Value
is >= '0' and <= '9';
408
=> ch.
Value
is >= '0' and <= '7';
427
var octalVal = this.CurrentChar.
Value
- '0';
EmbeddedLanguages\RegularExpressions\RegexParser.cs (18)
1176
=> currentToken.Kind == RegexKind.TextToken && currentToken.VirtualChars.Length == 1 && currentToken.VirtualChars[0].
Value
== ch;
1184
switch (ch.
Value
)
1208
switch (ch.
Value
)
1344
ch = MapEscapeChar(escapeNode.TypeToken.VirtualChars[0]).
Value
;
1349
var controlCh = controlEscape.ControlToken.VirtualChars[0].
Value
;
1376
ch = ((RegexTextNode)component).TextToken.VirtualChars[0].
Value
;
1419
var temp = ch.
Value
- '0';
1423
temp = ch.
Value
- 'a';
1427
temp = ch.
Value
- 'A';
1480
switch (nextChar.
Value
)
1577
switch (_currentToken.VirtualChars[0].
Value
)
1629
if (ch.
Value
is '<' or '\'')
1635
if (ch.
Value
is >= '1' and <= '9')
1674
capVal += (ch.
Value
- '0');
1724
Debug.Assert(_lexer.Text[_lexer.Position].
Value
is '<' or '\'');
1813
if (ch.
Value
is >= '0' and <= '7')
1823
switch (ch.
Value
)
1886
var ch = _currentToken.VirtualChars[0].
Value
;
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (8)
51
if (c.
Value
== '\r' || c.
Value
== '\n')
92
if (!UnicodeCharacterUtilities.IsIdentifierStartCharacter((char)ch.
Value
))
107
while (UnicodeCharacterUtilities.IsIdentifierPartCharacter((char)ch.
Value
))
388
switch (ch.
Value
)
402
=> ch.
Value
is (>= 'a' and <= 'z') or (>= 'A' and <= 'Z');
507
=> ch.
Value
switch
538
=> ch.
Value
is >= '0' and <= '9';
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
283
var currentChar = _lexer.CurrentChar.
Value
;
SpellCheck\AbstractSpellCheckSpanService.cs (1)
200
return ch.
Value
switch
StackTraceExplorer\StackTraceAnalyzer.cs (1)
77
if (callstack[i].
Value
== '\n')
StackTraceExplorer\VSDebugCallstackParser.cs (1)
25
if (line[i].
Value
== '!')
Microsoft.CodeAnalysis.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (16)
107
=> ch1.
Value
== ch2;
141
=> this.
Value
- other.
Value
;
144
=> ch1.
Value
< ch2.
Value
;
147
=> ch1.
Value
<= ch2.
Value
;
150
=> ch1.
Value
> ch2.
Value
;
153
=> ch1.
Value
>= ch2.
Value
;
156
=> this.
Value
- other;
159
=> ch1.
Value
< ch2;
162
=> ch1.
Value
<= ch2;
165
=> ch1.
Value
> ch2;
168
=> ch1.
Value
>= ch2;