Skip to content

Commit

Permalink
Readded param to method (#5473)
Browse files Browse the repository at this point in the history
* Readded param to method

Added docs

* Never code in a hurry
  • Loading branch information
cppwfs authored Sep 19, 2023
1 parent 10cc4cf commit 6337a00
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ else if (t.getKind() == TokenKind.PIPE) {
return null;
}

DestinationNode destinationNode = eatDestinationReference();
DestinationNode destinationNode = eatDestinationReference(false);
if (destinationNode == null) {
return null;
}
Expand All @@ -279,7 +279,7 @@ protected SinkDestinationNode eatSinkDestination() {
SinkDestinationNode SinkDestinationNode = null;
if (tokens.peek(TokenKind.GT)) {
Token gt = tokens.eat(TokenKind.GT);
DestinationNode destinationNode = eatDestinationReference();
DestinationNode destinationNode = eatDestinationReference(false);
if (destinationNode == null) {
return null;
}
Expand Down Expand Up @@ -315,9 +315,10 @@ protected String getTokenData(Token token) {
* Expected format: {@code ':' identifier [ '.' identifier ]*}
* <p>
*
* @param canDefault allows the user to peek ahead to parse a reference when working with colons in the syntax.
* @return {@code DestinationNode} representing the destination reference
*/
protected DestinationNode eatDestinationReference() {
protected DestinationNode eatDestinationReference(boolean canDefault) {
Tokens tokens = getTokens();
Token firstToken = tokens.next();
if (!firstToken.isKind(TokenKind.COLON)) {
Expand Down

0 comments on commit 6337a00

Please sign in to comment.