Skip to content

Commit

Permalink
Update MasteryParseTreeWalker.java (#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Pamnani authored Dec 1, 2023
1 parent 3ffb11f commit f7c44ec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,13 @@ private Lambda visitLambdaWithFilter(String propertyName, MasteryParserGrammar.C
String inputFilter = ctx.getText().replaceAll(DOLLAR_SIGN, INPUT);
return domainParser.parseLambda(
format(PRECEDENCE_LAMBDA_WITH_FILTER, propertyName, inputFilter),
"", 0, 0, true);
"", 0, 0, walkerSourceInformation.getReturnSourceInfo());
}

private Lambda visitLambdaWithoutFilter(String propertyName)
{
return domainParser.parseLambda(format(SIMPLE_PRECEDENCE_LAMBDA, propertyName),
"", 0, 0, true);
"", 0, 0, walkerSourceInformation.getReturnSourceInfo());
}

private RuleScope visitRuleScopeWithoutPrecedence(MasteryParserGrammar.ScopeContext ctx, Set<String> uniqueScopes,PrecedenceRule precedenceRule)
Expand Down Expand Up @@ -748,7 +748,7 @@ private List<Lambda> visitQueryExpressions(MasteryParserGrammar.QueryExpressions

private Lambda visitLambda(MasteryParserGrammar.LambdaFunctionContext ctx)
{
return domainParser.parseLambda(ctx.getText(), "", 0, 0, true);
return domainParser.parseLambda(ctx.getText(), "", 0, 0, walkerSourceInformation.getReturnSourceInfo());
}

private ResolutionKeyType visitResolutionKeyType(MasteryParserGrammar.ResolutionQueryKeyTypeContext ctx)
Expand Down

0 comments on commit f7c44ec

Please sign in to comment.