Skip to content

Commit 6a6f00e

Browse files
authored
Merge pull request #252 from carlosms/semantic-uast
Parse UAST with semantic mode
2 parents e5a5259 + ecf22e2 commit 6a6f00e

File tree

144 files changed

+34202
-6838
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+34202
-6838
lines changed

Gopkg.lock

Lines changed: 40 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
[[constraint]]
4646
name = "gopkg.in/bblfsh/client-go.v2"
47-
version = "2.6.1"
47+
version = "2.8.4"
4848

4949
[[constraint]]
5050
name = "gopkg.in/DATA-DOG/go-sqlmock.v1"

server/handler/uast.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ func Parse(bbblfshServerURL string) RequestProcessFunc {
5252
Language(req.Language).
5353
Filename(req.Filename).
5454
Content(req.Content).
55+
Mode(bblfsh.Semantic).
5556
Do()
5657
if err != nil {
57-
if bblfshErr, ok := err.(bblfsh.FatalError); ok {
58-
return nil, serializer.NewHTTPError(http.StatusBadRequest, bblfshErr.Error())
59-
}
60-
61-
return nil, err
58+
return nil, serializer.NewHTTPError(http.StatusBadRequest, err.Error())
6259
}
6360

6461
if resp.Status == protocol.Error {

vendor/github.com/antchfx/xpath/LICENSE

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)