82 references to Value
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertToRawString\ConvertToRawStringHelpers.cs (3)
35
=> ch.Rune.Utf16SequenceLength == 1 && SyntaxFacts.IsNewLine((char)ch.
Value
);
38
=> ch.Rune.Utf16SequenceLength == 1 && SyntaxFacts.IsWhitespace((char)ch.
Value
);
48
=> AllEscapesAre(sequence, static ch => ch.
Value
== '"');
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
RuneExtensions.cs (1)
15
=> TryGetEscapeCharacter(ch.
Value
, out escapedChar);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (5)
95
? c <= char.MaxValue ? $"'\\u{c.
Value
:X4}'" : $"'\\U{c.
Value
:X8}'"
96
: $"'{(char)c.
Value
}'";
100
if (c < (char)127 && char.IsLetterOrDigit((char)c.
Value
))
103
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
).ToArray());
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (2)
EmbeddedLanguages\AspNetCoreVirtualChar.cs (2)
37
/// <inheritdoc cref="VirtualChar.
Value
"/>
38
public int Value => VirtualChar.
Value
;
Microsoft.CodeAnalysis.Features (54)
EmbeddedLanguages\Json\JsonLexer.cs (8)
64
return this.CurrentChar.
Value
switch
97
switch (currentCh.
Value
)
101
if (currentCh.
Value
== openChar.
Value
)
134
return currentCh.
Value
switch
163
=> c.
Value
is (>= '0' and <= '9') or
177
=> ch.
Value
switch
282
while (Position < Text.Length && this.CurrentChar.
Value
is not '\r' and not '\n')
EmbeddedLanguages\Json\JsonParser.cs (1)
545
=> ch.
Value
is >= '0' and <= '9';
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)
259
if (escapeChar.
Value
is 'p' or 'P')
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (2)
196
if (r.
Value
> char.MaxValue)
199
var ch = (char)r.
Value
;
EmbeddedLanguages\RegularExpressions\RegexHelpers.cs (1)
41
=> ch.
Value
switch
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (9)
72
=> ch.
Value
switch
220
switch (ch.
Value
)
261
=> ch.
Value
is '-' or
284
var charVal = ch.
Value
- '0';
354
switch (ch.
Value
)
381
Debug.Assert(Text[beforeSlash + 1].
Value
is 'x' or 'u');
411
=> ch.
Value
is >= '0' and <= '9';
414
=> ch.
Value
is >= '0' and <= '7';
433
var octalVal = this.CurrentChar.
Value
- '0';
EmbeddedLanguages\RegularExpressions\RegexParser.cs (18)
1175
=> currentToken.Kind == RegexKind.TextToken && currentToken.VirtualChars.Length == 1 && currentToken.VirtualChars[0].
Value
== ch;
1183
switch (ch.
Value
)
1207
switch (ch.
Value
)
1344
ch = MapEscapeChar(escapeNode.TypeToken.VirtualChars[0]).
Value
;
1349
var controlCh = controlEscape.ControlToken.VirtualChars[0].
Value
;
1382
ch = ((RegexTextNode)component).TextToken.VirtualChars[0].
Value
;
1425
var temp = ch.
Value
- '0';
1429
temp = ch.
Value
- 'a';
1433
temp = ch.
Value
- 'A';
1486
switch (nextChar.
Value
)
1613
switch (_currentToken.VirtualChars[0].
Value
)
1665
if (ch.
Value
is '<' or '\'')
1671
if (ch.
Value
is >= '1' and <= '9')
1710
capVal += (ch.
Value
- '0');
1760
Debug.Assert(_lexer.Text[_lexer.Position].
Value
is '<' or '\'');
1849
if (ch.
Value
is >= '0' and <= '7')
1859
switch (ch.
Value
)
1922
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
))
101
while (UnicodeCharacterUtilities.IsIdentifierPartCharacter((char)ch.
Value
))
383
switch (ch.
Value
)
397
=> ch.
Value
is (>= 'a' and <= 'z') or (>= 'A' and <= 'Z');
480
=> ch.
Value
switch
511
=> ch.
Value
is >= '0' and <= '9';
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
277
var currentChar = _lexer.CurrentChar.
Value
;
StackTraceExplorer\StackTraceAnalyzer.cs (1)
83
if (callstack[i].
Value
== '\n')
StackTraceExplorer\VSDebugCallstackParser.cs (1)
27
if (line[i].
Value
== '!')
Microsoft.CodeAnalysis.Workspaces (16)
VirtualChar.cs (16)
108
=> ch1.
Value
== ch2;
159
=> this.
Value
- other.
Value
;
162
=> ch1.
Value
< ch2.
Value
;
165
=> ch1.
Value
<= ch2.
Value
;
168
=> ch1.
Value
> ch2.
Value
;
171
=> ch1.
Value
>= ch2.
Value
;
174
=> this.
Value
- other;
177
=> ch1.
Value
< ch2;
180
=> ch1.
Value
<= ch2;
183
=> ch1.
Value
> ch2;
186
=> ch1.
Value
>= ch2;