1 write to _reader
Microsoft.Build.Tasks.Core (1)
CSharptokenEnumerator.cs (1)
30
_reader
= new CSharpTokenCharReader(binaryStream, forceANSI);
48 references to _reader
Microsoft.Build.Tasks.Core (48)
CSharptokenEnumerator.cs (48)
40
int startPosition =
_reader
.Position;
43
if (
_reader
.SinkMultipleWhiteSpace())
49
else if (
_reader
.Sink("//"))
52
_reader
.SinkToEndOfLine();
58
else if (
_reader
.Sink("/*"))
60
_reader
.SinkUntil("*/");
63
if (
_reader
.EndOfLines)
74
else if (
_reader
.Sink("\'"))
76
while (
_reader
.CurrentCharacter != '\'')
78
if (
_reader
.Sink("\\"))
91
_reader
.SinkCharacter();
94
if (
_reader
.SinkCharacter() != '\'')
102
else if (
_reader
.Sink("@\""))
107
while (
_reader
.Sink("\"\""))
111
while (!
_reader
.EndOfLines &&
_reader
.SinkCharacter() != '\"');
114
if (
_reader
.EndOfLines)
122
current.InnerText =
_reader
.GetCurrentMatchedString(startPosition).Substring(1);
126
else if (
_reader
.Sink("\""))
128
while (
_reader
.CurrentCharacter == '\\' ||
_reader
.MatchRegularStringLiteral())
131
if (
_reader
.SinkCharacter() == '\\')
134
if (
_reader
.SinkStringEscape())
143
_reader
.SinkCharacter();
151
if (TokenChar.IsNewLine(
_reader
.CurrentCharacter))
158
if (
_reader
.SinkCharacter() != '\"')
169
_reader
.CurrentCharacter == '@' ||
170
_reader
.MatchNextIdentifierStart())
172
if (
_reader
.CurrentCharacter == '@')
174
_reader
.SinkCharacter();
178
if (!
_reader
.SinkIdentifierStart())
185
while (
_reader
.SinkIdentifierPart())
188
string identifierOrKeyword =
_reader
.GetCurrentMatchedString(startPosition);
203
string identifier =
_reader
.GetCurrentMatchedString(startPosition);
223
else if (
_reader
.Sink("{"))
229
else if (
_reader
.Sink("}"))
235
else if (
_reader
.SinkIgnoreCase("0x"))
238
if (!
_reader
.SinkMultipleHexDigits())
245
_reader
.SinkLongIntegerSuffix();
251
else if (
_reader
.SinkMultipleDecimalDigits())
254
_reader
.SinkLongIntegerSuffix();
260
else if (
_reader
.SinkOperatorOrPunctuator())
266
else if (
_reader
.CurrentCharacter == '#')
268
if (
_reader
.Sink("#if"))
272
else if (
_reader
.Sink("#endif"))
281
_reader
.SinkToEndOfLine();
287
_reader
.SinkCharacter();
320
return
_reader
;