Skip to content

Commit c25c6c8

Browse files
author
Bart Koelman
committed
Review feedback: rename method
1 parent bcbf04a commit c25c6c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/JsonApiDotNetCore/Internal/Queries/Parsing/QueryTokenizer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public IEnumerable<Token> EnumerateTokens()
5454

5555
_isInQuotedSection = false;
5656

57-
Token literalToken = FlushTextBuffer(true);
57+
Token literalToken = ProduceTokenFromTextBuffer(true);
5858
yield return literalToken;
5959
}
6060
else
@@ -73,7 +73,7 @@ public IEnumerable<Token> EnumerateTokens()
7373

7474
if (singleCharacterTokenKind != null && !IsMinusInsideText(singleCharacterTokenKind.Value))
7575
{
76-
Token identifierToken = FlushTextBuffer(false);
76+
Token identifierToken = ProduceTokenFromTextBuffer(false);
7777

7878
if (identifierToken != null)
7979
{
@@ -101,7 +101,7 @@ public IEnumerable<Token> EnumerateTokens()
101101
throw new QueryParseException("' expected.");
102102
}
103103

104-
Token lastToken = FlushTextBuffer(false);
104+
Token lastToken = ProduceTokenFromTextBuffer(false);
105105

106106
if (lastToken != null)
107107
{
@@ -124,7 +124,7 @@ private bool IsMinusInsideText(TokenKind kind)
124124
return SingleCharacterToTokenKinds.ContainsKey(ch) ? (TokenKind?)SingleCharacterToTokenKinds[ch] : null;
125125
}
126126

127-
private Token FlushTextBuffer(bool isQuotedText)
127+
private Token ProduceTokenFromTextBuffer(bool isQuotedText)
128128
{
129129
if (isQuotedText || _textBuffer.Length > 0)
130130
{

0 commit comments

Comments
 (0)