We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reposting the issue from google/summit-ast#53 here:
apex-parser doesn't support WITH USER_MODE and WITH SYSTEM_MODE when used in SOSL.
WITH USER_MODE
WITH SYSTEM_MODE
The Apex documentation is not clear, because:
You can indicate the mode of the operation by using WITH USER_MODE or WITH SYSTEM_MODE in your SOQL or SOSL query.
Is the following code valid Apex code?
public inherited sharing class soqlExample { public static String example(){ String SecondarySearchList = 'test'; List<List<SObject>> accountList = [ FIND :SecondarySearchList IN NAME FIELDS RETURNING Account(Id, Account.Name WHERE ID = '' LIMIT 100) WITH USER_MODE ]; } }
If yes, then someone needs to update the SOSL documentation and we probably need to enhance the parser:
apex-parser/antlr/ApexParser.g4
Lines 826 to 838 in 2f9160c
If no, then someone just needs to clarify the Apex documentation and remove the SOSL reference.
The text was updated successfully, but these errors were encountered:
That code can be deployed so think this is an issue that needs fixing. Thanks for highlighting this, will try and get a fix done this week.
Sorry, something went wrong.
Fix now available in v4.1.0 release, thanks for the report!
nawforce
Successfully merging a pull request may close this issue.
Reposting the issue from google/summit-ast#53 here:
apex-parser doesn't support
WITH USER_MODE
andWITH SYSTEM_MODE
when used in SOSL.The Apex documentation is not clear, because:
Is the following code valid Apex code?
If yes, then someone needs to update the SOSL documentation and we probably need to enhance the parser:
apex-parser/antlr/ApexParser.g4
Lines 826 to 838 in 2f9160c
If no, then someone just needs to clarify the Apex documentation and remove the SOSL reference.
The text was updated successfully, but these errors were encountered: