Skip to content

Conversation

@dobladez
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Nov 18, 2020

Codecov Report

Merging #96 (1dc1eb8) into develop (883b15d) will increase coverage by 0.10%.
The diff coverage is 92.24%.

Impacted file tree graph

@@             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              
Flag Coverage Δ
language-server 97.50% <100.00%> (ø)
soql-builder-ui 92.62% <ø> (ø)
soql-model 95.14% <92.10%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...kages/soql-model/src/serialization/deserializer.ts 93.04% <92.10%> (+0.45%) ⬆️
packages/language-server/src/validator.ts 97.50% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 883b15d...1dc1eb8. Read the comment docs.

@dobladez dobladez marked this pull request as ready for review November 19, 2020 14:01
jgellin-sf
jgellin-sf previously approved these changes Nov 19, 2020
Copy link
Contributor

@jgellin-sf jgellin-sf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Comment on lines +223 to +227
/**
// If we want to use a proper Visitor:
class QueryVisitor
extends AbstractParseTreeVisitor<void>
implements SoqlParserVisitor<void> {
protected defaultResult(): void {}
visitSoqlFromExpr(ctx: Parser.SoqlFromExprContext): void {}
}
*/
Copy link
Contributor

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.

@dobladez
Copy link
Contributor Author

@jgellin-sf I should've kept this PR as DRAFT until you merged your jg/where branch (since this PR is based on it).
I'll wait on that to merge this one.

Comment on lines +1 to +5
{
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true
}
Copy link
Contributor Author

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.

jgellin-sf
jgellin-sf previously approved these changes Nov 20, 2020
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.
@dobladez dobladez merged commit 03415d4 into develop Dec 1, 2020
@dobladez dobladez deleted the antlr4ts_W-8432027_b branch December 1, 2020 18:53
dehru added a commit that referenced this pull request Jan 15, 2021
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants