-
Notifications
You must be signed in to change notification settings - Fork 6
Move from antlr4JS to antlr4TS #96
New issue
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #96 +/- ##
===========================================
+ Coverage 94.21% 94.32% +0.10%
===========================================
Files 42 42
Lines 1106 1127 +21
Branches 234 223 -11
===========================================
+ Hits 1042 1063 +21
Misses 62 62
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
jgellin-sf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
| /** | ||
| // If we want to use a proper Visitor: | ||
| class QueryVisitor | ||
| extends AbstractParseTreeVisitor<void> | ||
| implements SoqlParserVisitor<void> { | ||
| protected defaultResult(): void {} | ||
| visitSoqlFromExpr(ctx: Parser.SoqlFromExprContext): void {} | ||
| } | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have access to a visitor parent class, I think this is something we want to do. Maybe in a separate PR.
|
@jgellin-sf I should've kept this PR as DRAFT until you merged your |
2616d6a to
7e0437c
Compare
| { | ||
| "printWidth": 80, | ||
| "tabWidth": 2, | ||
| "singleQuote": true | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had a hard time rebasing this branch given the many lines modified by VSCode just due to formatting :-(.
That's why I'm adding a common .prettierrc, like we have on our SOQL extension repo.
The main reason we are doing this migration is to be able to leverage lib antlr-c3 for code-completion. Also: add a top-level prettierrc config file.
7e0437c to
3550a9d
Compare
* model WHERE clause (#68) * Remote SOQL Errors - Language Server Part (#93) * remove code builder (#92) * Move from antlr4JS to antlr4TS (#96) * SOQL code completion for SELECT fields (#99) * publish language server 0.2.9 (#102) * Fix LSP dependency (#104) * Disabled 'Running...' button while query running (#106) * Add basic code-completion for ORDER BY and other improvements (#107) * Dehru and JG telemetry - Send GDPR clean data to telemetry when errors/unsupported syntax present (#110) * Disable WHERE in model (#113) * Bump versions for publishing (#114) * Code-completion for WHERE clause expressions (#112) Co-authored-by: Jonathan Gellin <jgellin@salesforce.com> Co-authored-by: jgellin-sf <55159130+jgellin-sf@users.noreply.github.com> Co-authored-by: Chase McCarthy <charles.mccarthy@heroku.com> Co-authored-by: Jonny Hork <jhork@salesforce.com> Co-authored-by: Fernando Dobladez <fernandodobladez@salesforce.com> Co-authored-by: Jonathan Gellin <jgellin@salesforce.com>
What does this PR do?
Move from antlr4JS to antlr4TS
Note: this PR depends on the soql-parser from this pending PR: https://git.soma.salesforce.com/enterprise-api/soql-parser/pull/50
What issues does this PR fix or reference?
W-8432027