17 instantiations of Parser
Microsoft.CodeAnalysis.VisualBasic (15)
CommandLine\VisualBasicCommandLineParser.vb (1)
2074Using p = New InternalSyntax.Parser(SyntaxFactory.MakeSourceText(symbolList, offset), VisualBasicParseOptions.Default)
Parser\Parser.vb (1)
53MyClass.New(New Scanner(text, options))
Scanner\Directives.vb (1)
55Dim parser As New Parser(Me)
Scanner\XmlDocComments.vb (1)
71Dim parser As New Parser(Me)
Syntax\SyntaxNodeFactories.vb (9)
153Using parser = New InternalSyntax.Parser(MakeSourceText(text, offset), If(options, VisualBasicParseOptions.Default)) 178Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), VisualBasicParseOptions.Default) 199Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), If(DirectCast(options, VisualBasicParseOptions), VisualBasicParseOptions.Default)) 223Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), VisualBasicParseOptions.Default) 236Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), VisualBasicParseOptions.Default) 248Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), If(options, VisualBasicParseOptions.Default)) 259Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), VisualBasicParseOptions.Default) 272Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), VisualBasicParseOptions.Default) 295Dim parser = New InternalSyntax.Parser(scanner)
Syntax\VisualBasicSyntaxTree.vb (2)
129node = New Parser(scanner).ParseCompilationUnit() 292Using parser As New Parser(text, parseOptions, cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
SyntaxHelpers.vb (2)
164Using p = New InternalSyntax.Parser(scanner) 176Using p = New InternalSyntax.Parser(scanner)
92 references to Parser
Microsoft.CodeAnalysis.VisualBasic (92)
Binding\Binder_Attributes.vb (2)
490InternalSyntax.Parser.CheckFeatureAvailability(diagnostics, 803InternalSyntax.Parser.CheckFeatureAvailability(diagBag,
Binding\Binder_Expressions.vb (1)
2098InternalSyntax.Parser.CheckFeatureAvailability(diagnostics,
Binding\Binder_Invocation.vb (1)
2908InternalSyntax.Parser.CheckFeatureAvailability(diagnostics,
Binding\Binder_Statements.vb (1)
1935InternalSyntax.Parser.CheckFeatureAvailability(diagnostics,
Binding\Binder_Utils.vb (1)
225InternalSyntax.Parser.CheckFeatureAvailability(
Parser\BlockContexts\BlockContext.vb (10)
20Protected _parser As Parser 111beginStmt = Parser.ReportSyntaxError(beginStmt, errorId) 159Friend Property Parser As Parser 163Set(value As Parser) 374node = Parser.ReportSyntaxError(node, ERRID.ERR_BogusWithinLineIf) 451Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseNoMatchingIf)) 460Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseIfNoMatchingIf)) 477Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseNoSelect)) 483Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseElseNoSelect)) 509Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\CaseBlockContext.vb (1)
30node = Parser.ReportSyntaxError(node, ERRID.ERR_CaseAfterCaseElse)
Parser\BlockContexts\CompilationUnitContext.vb (6)
25Friend Sub New(parser As Parser) 148Private _parser As Parser 162parser As Parser) As CompilationUnitSyntax 413rewritten = Parser.ReportSyntaxError(rewritten, ERRID.ERR_LbExpectedEndIf) 425rewritten = Parser.ReportSyntaxError(rewritten, ERRID.ERR_ExpectedEndRegion) 518rewritten = Parser.ReportSyntaxError(rewritten, ERRID.ERR_ExpectedEndExternalSource)
Parser\BlockContexts\DeclarationContext.vb (17)
50node = Parser.ReportSyntaxError(node, ERRID.ERR_NamespaceNotAtNamespace) 61node = Parser.ReportSyntaxError(node, ERRID.ERR_ModuleNotAtNamespace) 88node = Parser.ReportSyntaxError(node, ERRID.ERR_MethodMustBeFirstStatementOnLine) 100node = Parser.ReportSyntaxError(node, ERRID.ERR_MethodMustBeFirstStatementOnLine) 106node = Parser.ReportSyntaxError(node, ERRID.ERR_OperatorDeclaredInModule) 147node = Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedDeclaration) 160node = Parser.ReportSyntaxError(eventDecl, ERRID.ERR_CustomEventRequiresAs) 168node = Parser.ReportSyntaxError(node, ERRID.ERR_AttributeStmtWrongOrder) 172node = Parser.ReportSyntaxError(node, ERRID.ERR_OptionStmtWrongOrder) 176node = Parser.ReportSyntaxError(node, ERRID.ERR_ImportsMustBeFirst) 183node = Parser.ReportSyntaxError(node, ERRID.ERR_BadInterfaceOrderOnInherits) 185node = Parser.ReportSyntaxError(node, ERRID.ERR_InheritsStmtWrongOrder) 191node = Parser.ReportSyntaxError(node, ERRID.ERR_ImplementsStmtWrongOrder) 225node = Parser.ReportSyntaxError(node, ERRID.ERR_InvOutsideProc) 239node = Parser.ReportSyntaxError(node, ERRID.ERR_ExecutableAsDeclaration) 348node = Parser.ReportSyntaxError(node, ERRID.ERR_ExecutableAsDeclaration) 461statement = Parser.ReportSyntaxError(statement, ErrorId)
Parser\BlockContexts\DoLoopBlockContext.vb (1)
39Dim keyword = Parser.ReportSyntaxError(whileUntilClause.WhileOrUntilKeyword, ERRID.ERR_LoopDoubleCondition)
Parser\BlockContexts\EnumDeclarationBlockContext.vb (2)
42Add(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEnum)) 46Return outerContext.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsEnum))
Parser\BlockContexts\EventBlockContext.vb (1)
48Return context.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsEvent))
Parser\BlockContexts\ExecutableStatementContext.vb (5)
26If Parser.IsDeclarationStatement(node.Kind) Then 48Return context.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsProc)) 51node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideBlock, SyntaxFacts.GetBlockName(BlockKind)) 72node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideProc) 75node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideBlock, SyntaxFacts.GetBlockName(BlockKind))
Parser\BlockContexts\FinallyPartBlock.vb (2)
30Add(Parser.ReportSyntaxError(node, ERRID.ERR_CatchAfterFinally)) 36Add(Parser.ReportSyntaxError(node, ERRID.ERR_FinallyAfterFinally))
Parser\BlockContexts\IfBlockContext.vb (1)
78begin = Parser.ReportSyntaxError(begin, ERRID.ERR_ExpectedEndIf)
Parser\BlockContexts\InterfaceDeclarationBlockContext.vb (8)
70node = Parser.ReportSyntaxError(node, ERRID.ERR_InterfaceMemberSyntax) 80Add(Parser.ReportSyntaxError(node, ERRID.ERR_NewInInterface)) 86eventStatement = Parser.ReportSyntaxError(eventStatement, ERRID.ERR_CustomEventInvInInterface) 103Add(Parser.ReportSyntaxError(node, ERRID.ERR_InterfaceMemberSyntax)) 106node = Parser.ReportSyntaxError(node, ERRID.ERR_InvOutsideProc) 127Add(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideInterface)) 139Return outerContext.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsInterface)) 142Add(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideInterface))
Parser\BlockContexts\MethodBlockContext.vb (2)
34node = Parser.ReportSyntaxError(node, ERRID.ERR_MethodBodyNotAtLineStart) 47node = Parser.ReportSyntaxError(node, ERRID.ERR_ExitPropNot)
Parser\BlockContexts\PropertyBlockContext.vb (3)
75node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsProperty) 131Parser.ReportSyntaxError(beginBlockStmt.ParameterList, ERRID.ERR_AutoPropertyCantHaveParams), 152propertyStatement = Parser.ReportSyntaxError(propertyStatement, ERRID.ERR_InitializedExpandedProperty)
Parser\BlockContexts\SelectBlockContext.vb (1)
49node = Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedCase)
Parser\BlockContexts\SingleLineElseContext.vb (1)
46Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\SingleLineIfBlockContext.vb (2)
38Add(Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedEOS)) 55Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\SingleLineLambdaContext.vb (3)
48lambdaExpr = Parser.ReportSyntaxError(lambdaExpr, ERRID.ERR_SubRequiresSingleStatement) 50lambdaExpr = Parser.ReportSyntaxError(lambdaExpr, ERRID.ERR_BadIteratorExpressionLambda) 81_statements(0) = Parser.ReportSyntaxError(_statements(0), ERRID.ERR_SubRequiresSingleStatement)
Parser\BlockContexts\TryBlockContext.vb (1)
76beginStmt = Parser.ReportSyntaxError(beginStmt, ERRID.ERR_ExpectedEndTry)
Parser\ParseExpression.vb (1)
1764value = Parser.ReportSyntaxError(value, ERRID.ERR_BadIteratorExpressionLambda)
Scanner\Directives.vb (12)
350statement = Parser.ReportSyntaxError(statement, err, value.ErrorArgs) 360statement = Parser.ReportSyntaxError(statement, ERRID.ERR_NestedExternalSource) 369statement = Parser.ReportSyntaxError(statement, ERRID.ERR_EndExternalSource) 384statement = Parser.ReportSyntaxError(statement, ERRID.ERR_EndRegionNoRegion) 405statement = Parser.ReportSyntaxError(statement, err, value.ErrorArgs) 421statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbBadElseif) 428statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbElseifAfterElse) 441statement = Parser.ReportSyntaxError(statement, err, value.ErrorArgs) 465statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbElseNoMatchingIf) 473statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbElseNoMatchingIf) 492statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbNoMatchingIf) 648eof = Parser.ReportSyntaxError(eof, ERRID.ERR_LbExpectedEndIf)
Scanner\Scanner.vb (2)
2484result = Parser.CheckFeatureAvailability(Feature.YearFirstDateLiterals, result, Options.LanguageVersion) 2585result = Parser.CheckFeatureAvailability(Feature.MultilineStringLiterals, result, Options.LanguageVersion)
Symbols\Source\ImplementsHelper.vb (1)
497Not InternalSyntax.Parser.CheckFeatureAvailability(diagBag, implementedMemberSyntax.GetLocation(),
Syntax\SyntaxFactory.vb (2)
8Imports Parser = Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.Parser 1115If Parser.CheckFeatureAvailability(languageVersion, Feature.MultilineStringLiterals) Then
Syntax\VisualBasicSyntaxTree.vb (1)
13Imports Parser = Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.Parser