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