1 write to _scanner
Microsoft.CodeAnalysis.VisualBasic (1)
Parser\Parser.vb (1)
62
_scanner
= scanner
46 references to _scanner
Microsoft.CodeAnalysis.VisualBasic (46)
Parser\ParseConditional.vb (7)
188
Dim regionKeyword =
_scanner
.MakeKeyword(DirectCast(CurrentToken, IdentifierTokenSyntax))
194
Dim externalSourceKeyword =
_scanner
.MakeKeyword(DirectCast(CurrentToken, IdentifierTokenSyntax))
261
Dim regionKeyword =
_scanner
.MakeKeyword(identifier)
274
Dim externalSourceKeyword =
_scanner
.MakeKeyword(identifier)
321
Dim externalChecksumKeyword =
_scanner
.MakeKeyword(identifier)
392
Dim enableOrDisableKeyword =
_scanner
.MakeKeyword(identifier)
454
Dim referenceKeyword =
_scanner
.MakeKeyword(identifier)
Parser\ParseExpression.vb (4)
1138
_scanner
.RescanTrailingColonAsToken(prevToken, currentToken)
1152
_scanner
.TransitionFromXmlToVB(trivia, toRemove, toAdd)
1167
_scanner
.TransitionFromVBToXml(state, trivia, toRemove, toAdd)
1395
Dim allowNonTrailingNamedArguments =
_scanner
.Options.LanguageVersion.AllowNonTrailingNamedArguments()
Parser\Parser.vb (24)
69
Me.
_scanner
.Dispose()
75
Return
_scanner
.Options.Kind = SourceCodeKind.Script
383
curSyntaxNode =
_scanner
.GetCurrentSyntaxNode()
401
Not
_scanner
.TryCrumbleOnce() Then
487
terminator =
_scanner
.RecoverFromMissingConditionalEnds(terminator, notClosedIfDirectives, notClosedRegionDirectives, haveRegionDirectives, notClosedExternalSourceDirective)
493
Dim restorePoint =
_scanner
.CreateRestorePoint()
2807
name = SyntaxFactory.IdentifierName(
_scanner
.MakeIdentifier(DirectCast(Start, KeywordSyntax)))
5245
optionalCustomKeyword =
_scanner
.MakeKeyword(DirectCast(CurrentToken, IdentifierTokenSyntax))
5412
Dim separatorTrivia = If(tokenLength > 2,
_scanner
.MakeWhiteSpaceTrivia(tokenText.Substring(1, tokenLength - 2)), Nothing)
5417
Dim lessThan =
_scanner
.MakePunctuationToken(
5422
Dim greaterThan =
_scanner
.MakePunctuationToken(
5972
Return
_scanner
.PeekToken(offset, state)
5979
Return
_scanner
.PeekNextToken(state)
5984
Return
_scanner
.PrevToken
5993
tk =
_scanner
.GetCurrentToken
6005
_scanner
.ResetCurrentToken(state)
6017
_scanner
.GetNextTokenInState(state)
6025
_scanner
.MoveToNextSyntaxNode()
6046
Return
_scanner
.TryIdentifierAsContextualKeyword(DirectCast(id, IdentifierTokenSyntax), k)
6051
If
_scanner
.TryTokenAsContextualKeyword(t, keyword) AndAlso keyword.Kind = kind Then
6060
Return
_scanner
.TryTokenAsContextualKeyword(t, k)
6098
Return CheckFeatureAvailability(feature, node,
_scanner
.Options.LanguageVersion)
6116
Return ReportFeatureUnavailable(feature, node,
_scanner
.Options.LanguageVersion)
6120
Return CheckFeatureAvailability(
_scanner
.Options.LanguageVersion, feature)
Parser\ParseStatement.vb (1)
1868
If lookahead.Kind <> SyntaxKind.EndOfFileToken OrElse
_scanner
.Options.Kind = SourceCodeKind.Regular Then
Parser\ParseTerminal.vb (2)
56
identifier =
_scanner
.MakeIdentifier(keyword)
118
identifier =
_scanner
.MakeIdentifier(keyword)
Parser\ParseXml.vb (8)
121
nodes(i) =
_scanner
.MakeKeyword(nameToken)
989
ElseIf Not Me.
_scanner
.IsScanningXmlDoc OrElse
1044
Debug.Assert(Me.
_scanner
.IsScanningXmlDoc)
1075
Dim restorePoint As Scanner.RestorePoint = Me.
_scanner
.CreateRestorePoint()
1298
Me.
_scanner
.MakeIdentifier(
1362
Debug.Assert(Me.
_scanner
.IsScanningXmlDoc)
1398
Dim restorePoint As Scanner.RestorePoint = Me.
_scanner
.CreateRestorePoint()
1406
identToken = Me.
_scanner
.MakeIdentifier(DirectCast(Me.CurrentToken, KeywordSyntax))