4 instantiations of LanguageParser
Microsoft.CodeAnalysis.CSharp (4)
Parser\LanguageParser_InterpolatedString.cs (1)
380
using var tempParser = new
LanguageParser
(tempLexer, oldTree: null, changes: null);
Syntax\CSharpSyntaxTree.cs (2)
506
using var parser = new InternalSyntax.
LanguageParser
(lexer, oldTree: null, changes: null, cancellationToken: cancellationToken);
572
using var parser = new InternalSyntax.
LanguageParser
(lexer, oldTree?.GetRoot(), workingChanges);
Syntax\SyntaxFactory.cs (1)
1925
return 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)
208
internal TNode ParseWithStackGuard<TNode>(Func<
LanguageParser
, TNode> parseFunc, Func<
LanguageParser
, TNode> createEmptyNodeFunc) where TNode : CSharpSyntaxNode
1175
LanguageParser
@this, ref SyntaxToken openBracket, SeparatedSyntaxListBuilder<AttributeSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
1230
LanguageParser
@this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<AttributeArgumentSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
2450
static MemberDeclarationSyntax createEmptyNodeFunc(
LanguageParser
@this)
4091
private readonly
LanguageParser
_parser;
4094
public FieldKeywordContext(
LanguageParser
parser, bool isInFieldKeywordContext)
4246
Func<
LanguageParser
, bool> isNotExpectedFunction,
4247
Func<
LanguageParser
, SyntaxKind, bool> abortFunction,
4267
Func<
LanguageParser
, bool> isNotExpectedFunction,
4268
Func<
LanguageParser
, bool> abortFunction,
4288
Func<
LanguageParser
, bool> isNotExpectedFunction,
4289
Func<
LanguageParser
, SyntaxKind, bool> abortFunction,
4313
Func<
LanguageParser
, bool> isNotExpectedFunction,
4314
Func<
LanguageParser
, bool> abortFunction,
4336
Func<
LanguageParser
, bool> isNotExpectedFunction,
4337
Func<
LanguageParser
, SyntaxKind, bool> abortFunction,
4363
Func<
LanguageParser
, bool> isNotExpectedFunction,
4364
Func<
LanguageParser
, bool> abortFunction,
4611
LanguageParser
@this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
5601
LanguageParser
@this, ref SyntaxToken openBrace, SeparatedSyntaxListBuilder<EnumMemberDeclarationSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
5804
LanguageParser
@this, ref SyntaxToken open, SeparatedSyntaxListBuilder<TypeParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
9297
LanguageParser
@this, ref SyntaxToken startToken, SeparatedSyntaxListBuilder<ExpressionSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
11991
LanguageParser
@this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ArgumentSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
12756
LanguageParser
@this, ref SyntaxToken openBracket, SeparatedSyntaxListBuilder<CollectionElementSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
13013
LanguageParser
@this, ref SyntaxToken startToken, SeparatedSyntaxListBuilder<T> list, SyntaxKind expectedKind, SyntaxKind closeKind)
13131
LanguageParser
@this, ref SyntaxToken openBrace, SeparatedSyntaxListBuilder<ExpressionSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
13403
LanguageParser
@this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
13889
LanguageParser
parser, ref SyntaxToken openToken, SeparatedSyntaxListBuilder<TNode> builder, SyntaxKind expectedKind, SyntaxKind closeTokenKind) where TNode : GreenNode;
13923
Func<
LanguageParser
, bool> isPossibleElement,
13924
Func<
LanguageParser
, TNode> parseElement,
13945
Func<
LanguageParser
, bool> isPossibleElement,
13946
Func<
LanguageParser
, TNode> parseElement,
14070
private readonly
LanguageParser
_languageParser;
14074
public DisposableResetPoint(
LanguageParser
languageParser, bool resetOnDispose, ResetPoint resetPoint)
Parser\LanguageParser_InterpolatedString.cs (1)
380
using
var
tempParser = new LanguageParser(tempLexer, oldTree: null, changes: null);
Parser\LanguageParser_Patterns.cs (1)
540
LanguageParser
@this, ref SyntaxToken open, SeparatedSyntaxListBuilder<T> list, SyntaxKind expectedKind, SyntaxKind closeKind)
Syntax\CSharpSyntaxTree.cs (2)
506
using
var
parser = new InternalSyntax.LanguageParser(lexer, oldTree: null, changes: null, cancellationToken: cancellationToken);
572
using
var
parser = new InternalSyntax.LanguageParser(lexer, oldTree?.GetRoot(), workingChanges);
Syntax\SyntaxFactory.cs (12)
1693
using (
var
parser = MakeParser(lexer))
1717
using (
var
parser = MakeParser(lexer))
1736
using (
var
parser = MakeParser(lexer))
1755
using (
var
parser = MakeParser(lexer))
1775
using (
var
parser = MakeParser(lexer))
1800
using (
var
parser = MakeParser(lexer))
1818
using (
var
parser = MakeParser(lexer))
1837
using (
var
parser = MakeParser(lexer))
1856
using (
var
parser = MakeParser(lexer))
1875
using (
var
parser = MakeParser(lexer))
1894
using
var
parser = MakeParser(lexer);
1923
private static InternalSyntax.
LanguageParser
MakeParser(InternalSyntax.Lexer lexer)