Skip to content

Commit 5b5883d

Browse files
committed
SOSL user mode and system mode support.
1 parent 11c5675 commit 5b5883d

File tree

7 files changed

+2580
-2519
lines changed

7 files changed

+2580
-2519
lines changed

.idea/material_theme_project_new.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apex-reflection-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cparra/apex-reflection",
3-
"version": "2.7.1",
3+
"version": "2.8.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

lib/src/antlr/grammars/apex/ApexParser.g4

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -792,17 +792,23 @@ soslLiteral
792792
soslClauses
793793
: (IN searchGroup)?
794794
(RETURNING fieldSpecList)?
795-
(WITH DIVISION ASSIGN StringLiteral)?
796-
(WITH DATA CATEGORY filteringExpression)?
797-
(WITH SNIPPET (LPAREN TARGET_LENGTH ASSIGN IntegerLiteral RPAREN)? )?
798-
(WITH NETWORK IN LPAREN networkList RPAREN)?
799-
(WITH NETWORK ASSIGN StringLiteral)?
800-
(WITH PRICEBOOKID ASSIGN StringLiteral)?
801-
(WITH METADATA ASSIGN StringLiteral)?
795+
soslWithClause*
802796
limitClause?
803797
(UPDATE updateList)?
804798
;
805799

800+
soslWithClause
801+
: WITH DIVISION ASSIGN StringLiteral
802+
| WITH DATA CATEGORY filteringExpression
803+
| WITH SNIPPET (LPAREN TARGET_LENGTH ASSIGN IntegerLiteral RPAREN)?
804+
| WITH NETWORK IN LPAREN networkList RPAREN
805+
| WITH NETWORK ASSIGN StringLiteral
806+
| WITH PRICEBOOKID ASSIGN StringLiteral
807+
| WITH METADATA ASSIGN StringLiteral
808+
| WITH USER_MODE
809+
| WITH SYSTEM_MODE
810+
;
811+
806812
searchGroup
807813
: (ALL|EMAIL|NAME|PHONE|SIDEBAR) FIELDS
808814
;

lib/src/antlr/lib/apex/ApexParser.dart

Lines changed: 2545 additions & 2509 deletions
Large diffs are not rendered by default.

lib/src/antlr/lib/apex/ApexParser.interp

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

lib/src/antlr/lib/apex/ApexParserBaseListener.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,14 @@ class ApexParserBaseListener implements ApexParserListener {
13861386
@override
13871387
void exitSoslClauses(SoslClausesContext ctx) {}
13881388

1389+
/// The default implementation does nothing.
1390+
@override
1391+
void enterSoslWithClause(SoslWithClauseContext ctx) {}
1392+
1393+
/// The default implementation does nothing.
1394+
@override
1395+
void exitSoslWithClause(SoslWithClauseContext ctx) {}
1396+
13891397
/// The default implementation does nothing.
13901398
@override
13911399
void enterSearchGroup(SearchGroupContext ctx) {}

lib/src/antlr/lib/apex/ApexParserListener.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,13 @@ abstract class ApexParserListener extends ParseTreeListener {
13011301
/// [ctx] the parse tree
13021302
void exitSoslClauses(SoslClausesContext ctx);
13031303

1304+
/// Enter a parse tree produced by [ApexParser.soslWithClause].
1305+
/// [ctx] the parse tree
1306+
void enterSoslWithClause(SoslWithClauseContext ctx);
1307+
/// Exit a parse tree produced by [ApexParser.soslWithClause].
1308+
/// [ctx] the parse tree
1309+
void exitSoslWithClause(SoslWithClauseContext ctx);
1310+
13041311
/// Enter a parse tree produced by [ApexParser.searchGroup].
13051312
/// [ctx] the parse tree
13061313
void enterSearchGroup(SearchGroupContext ctx);

0 commit comments

Comments
 (0)