4 instantiations of LanguageParser
Microsoft.CodeAnalysis.CSharp (4)
Parser\LanguageParser_InterpolatedString.cs (1)
380using var tempParser = new LanguageParser(tempLexer, oldTree: null, changes: null);
Syntax\CSharpSyntaxTree.cs (2)
506using var parser = new InternalSyntax.LanguageParser(lexer, oldTree: null, changes: null, cancellationToken: cancellationToken); 572using var parser = new InternalSyntax.LanguageParser(lexer, oldTree?.GetRoot(), workingChanges);
Syntax\SyntaxFactory.cs (1)
1925return new InternalSyntax.LanguageParser(lexer, oldTree: null, changes: null);
52 references to LanguageParser
Microsoft.CodeAnalysis.CSharp (52)
Parser\DirectiveParser.cs (1)
446&& LanguageParser.NoTriviaBetween(token1, token2);
Parser\LanguageParser.cs (35)
207internal TNode ParseWithStackGuard<TNode>(Func<LanguageParser, TNode> parseFunc, Func<LanguageParser, TNode> createEmptyNodeFunc) where TNode : CSharpSyntaxNode 1174LanguageParser @this, ref SyntaxToken openBracket, SeparatedSyntaxListBuilder<AttributeSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 1229LanguageParser @this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<AttributeArgumentSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 2449static MemberDeclarationSyntax createEmptyNodeFunc(LanguageParser @this) 4090private readonly LanguageParser _parser; 4093public FieldKeywordContext(LanguageParser parser, bool isInFieldKeywordContext) 4245Func<LanguageParser, bool> isNotExpectedFunction, 4246Func<LanguageParser, SyntaxKind, bool> abortFunction, 4266Func<LanguageParser, bool> isNotExpectedFunction, 4267Func<LanguageParser, bool> abortFunction, 4287Func<LanguageParser, bool> isNotExpectedFunction, 4288Func<LanguageParser, SyntaxKind, bool> abortFunction, 4312Func<LanguageParser, bool> isNotExpectedFunction, 4313Func<LanguageParser, bool> abortFunction, 4335Func<LanguageParser, bool> isNotExpectedFunction, 4336Func<LanguageParser, SyntaxKind, bool> abortFunction, 4362Func<LanguageParser, bool> isNotExpectedFunction, 4363Func<LanguageParser, bool> abortFunction, 4610LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 5603LanguageParser @this, ref SyntaxToken openBrace, SeparatedSyntaxListBuilder<EnumMemberDeclarationSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 5806LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<TypeParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 9299LanguageParser @this, ref SyntaxToken startToken, SeparatedSyntaxListBuilder<ExpressionSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 12020LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ArgumentSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 12732LanguageParser @this, ref SyntaxToken openBracket, SeparatedSyntaxListBuilder<CollectionElementSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 12989LanguageParser @this, ref SyntaxToken startToken, SeparatedSyntaxListBuilder<T> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13107LanguageParser @this, ref SyntaxToken openBrace, SeparatedSyntaxListBuilder<ExpressionSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13379LanguageParser @this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13865LanguageParser parser, ref SyntaxToken openToken, SeparatedSyntaxListBuilder<TNode> builder, SyntaxKind expectedKind, SyntaxKind closeTokenKind) where TNode : GreenNode; 13899Func<LanguageParser, bool> isPossibleElement, 13900Func<LanguageParser, TNode> parseElement, 13921Func<LanguageParser, bool> isPossibleElement, 13922Func<LanguageParser, TNode> parseElement, 14046private readonly LanguageParser _languageParser; 14050public DisposableResetPoint(LanguageParser languageParser, bool resetOnDispose, ResetPoint resetPoint)
Parser\LanguageParser_InterpolatedString.cs (1)
380using var tempParser = new LanguageParser(tempLexer, oldTree: null, changes: null);
Parser\LanguageParser_Patterns.cs (1)
540LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<T> list, SyntaxKind expectedKind, SyntaxKind closeKind)
Syntax\CSharpSyntaxTree.cs (2)
506using var parser = new InternalSyntax.LanguageParser(lexer, oldTree: null, changes: null, cancellationToken: cancellationToken); 572using var parser = new InternalSyntax.LanguageParser(lexer, oldTree?.GetRoot(), workingChanges);
Syntax\SyntaxFactory.cs (12)
1693using (var parser = MakeParser(lexer)) 1717using (var parser = MakeParser(lexer)) 1736using (var parser = MakeParser(lexer)) 1755using (var parser = MakeParser(lexer)) 1775using (var parser = MakeParser(lexer)) 1800using (var parser = MakeParser(lexer)) 1818using (var parser = MakeParser(lexer)) 1837using (var parser = MakeParser(lexer)) 1856using (var parser = MakeParser(lexer)) 1875using (var parser = MakeParser(lexer)) 1894using var parser = MakeParser(lexer); 1923private static InternalSyntax.LanguageParser MakeParser(InternalSyntax.Lexer lexer)