1 write to _reader
Microsoft.Build.Tasks.Core (1)
VisualBasictokenEnumerator.cs (1)
29
_reader
= new VisualBasicTokenCharReader(binaryStream, forceANSI);
41 references to _reader
Microsoft.Build.Tasks.Core (41)
VisualBasictokenEnumerator.cs (41)
39
int startPosition =
_reader
.Position;
44
if (
_reader
.SinkWhiteSpace())
46
while (
_reader
.SinkWhiteSpace())
51
if (
_reader
.SinkLineContinuationCharacter()) // Line continuation is '_'
54
int savePosition =
_reader
.Position - 1;
57
while (
_reader
.SinkWhiteSpace())
64
while (
_reader
.SinkNewLine())
76
_reader
.Position = savePosition;
83
else if (
_reader
.SinkNewLine())
90
else if (
_reader
.SinkLineCommentStart())
93
_reader
.SinkToEndOfLine();
105
_reader
.CurrentCharacter == '[' ||
106
_reader
.MatchNextIdentifierStart())
109
if (
_reader
.CurrentCharacter == '[')
112
_reader
.SinkCharacter();
115
if (!
_reader
.SinkIdentifierStart())
123
while (
_reader
.SinkIdentifierPart())
130
if (!
_reader
.Sink("]"))
139
_reader
.SinkTypeCharacter(); // Type character is optional.
144
string identifierOrKeyword =
_reader
.GetCurrentMatchedString(startPosition);
180
else if (
_reader
.SinkHexIntegerPrefix())
182
if (!
_reader
.SinkMultipleHexDigits())
189
_reader
.SinkIntegerSuffix();
195
else if (
_reader
.SinkOctalIntegerPrefix())
197
if (!
_reader
.SinkMultipleOctalDigits())
204
_reader
.SinkIntegerSuffix();
210
else if (
_reader
.SinkMultipleDecimalDigits())
213
_reader
.SinkDecimalIntegerSuffix();
219
else if (
_reader
.CurrentCharacter == '#')
221
if (
_reader
.SinkIgnoreCase("#if"))
225
else if (
_reader
.SinkIgnoreCase("#end if"))
234
_reader
.SinkToEndOfLine();
239
else if (
_reader
.SinkSeparatorCharacter())
245
else if (
_reader
.SinkOperator())
251
else if (
_reader
.Sink("\""))
256
while (
_reader
.Sink("\"\""))
260
while (!
_reader
.EndOfLines &&
_reader
.SinkCharacter() != '\"');
263
if (
_reader
.EndOfLines)
275
_reader
.SinkCharacter();
327
return
_reader
;