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)
208internal TNode ParseWithStackGuard<TNode>(Func<LanguageParser, TNode> parseFunc, Func<LanguageParser, TNode> createEmptyNodeFunc) where TNode : CSharpSyntaxNode 1175LanguageParser @this, ref SyntaxToken openBracket, SeparatedSyntaxListBuilder<AttributeSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 1230LanguageParser @this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<AttributeArgumentSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 2450static MemberDeclarationSyntax createEmptyNodeFunc(LanguageParser @this) 4091private readonly LanguageParser _parser; 4094public FieldKeywordContext(LanguageParser parser, bool isInFieldKeywordContext) 4246Func<LanguageParser, bool> isNotExpectedFunction, 4247Func<LanguageParser, SyntaxKind, bool> abortFunction, 4267Func<LanguageParser, bool> isNotExpectedFunction, 4268Func<LanguageParser, bool> abortFunction, 4288Func<LanguageParser, bool> isNotExpectedFunction, 4289Func<LanguageParser, SyntaxKind, bool> abortFunction, 4313Func<LanguageParser, bool> isNotExpectedFunction, 4314Func<LanguageParser, bool> abortFunction, 4336Func<LanguageParser, bool> isNotExpectedFunction, 4337Func<LanguageParser, SyntaxKind, bool> abortFunction, 4363Func<LanguageParser, bool> isNotExpectedFunction, 4364Func<LanguageParser, bool> abortFunction, 4611LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 5601LanguageParser @this, ref SyntaxToken openBrace, SeparatedSyntaxListBuilder<EnumMemberDeclarationSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 5804LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<TypeParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 9297LanguageParser @this, ref SyntaxToken startToken, SeparatedSyntaxListBuilder<ExpressionSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 11991LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ArgumentSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 12756LanguageParser @this, ref SyntaxToken openBracket, SeparatedSyntaxListBuilder<CollectionElementSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13013LanguageParser @this, ref SyntaxToken startToken, SeparatedSyntaxListBuilder<T> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13131LanguageParser @this, ref SyntaxToken openBrace, SeparatedSyntaxListBuilder<ExpressionSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13403LanguageParser @this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind) 13889LanguageParser parser, ref SyntaxToken openToken, SeparatedSyntaxListBuilder<TNode> builder, SyntaxKind expectedKind, SyntaxKind closeTokenKind) where TNode : GreenNode; 13923Func<LanguageParser, bool> isPossibleElement, 13924Func<LanguageParser, TNode> parseElement, 13945Func<LanguageParser, bool> isPossibleElement, 13946Func<LanguageParser, TNode> parseElement, 14070private readonly LanguageParser _languageParser; 14074public 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)